How to add shiftlock in studio lite 2024

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 157

  • @Luci_Bs37
    @Luci_Bs37 2 місяці тому +37

    LocalScript inside the ShiftLockButton
    local player = game.Players.LocalPlayer
    local camera = game.Workspace.CurrentCamera
    local userInputService = game:GetService("UserInputService")
    local runService = game:GetService("RunService")
    local shiftLockActive = false
    local shiftLockButton = script.Parent -- Refers to the TextButton
    -- Toggle shift lock function
    local function toggleShiftLock()
    shiftLockActive = not shiftLockActive
    if shiftLockActive then
    -- Shift Lock active
    shiftLockButton.Text = "Shift Lock: ON"
    else
    -- Disable Shift Lock, back to normal mode
    shiftLockButton.Text = "Shift Lock: OFF"
    end
    end
    -- Function to handle camera and character movement in shift lock mode
    runService.RenderStepped:Connect(function()
    if shiftLockActive and player.Character then
    local character = player.Character
    local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
    -- Allow the camera to move freely, but rotate the player to face the camera's direction
    local cameraLookDirection = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).unit
    humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + cameraLookDirection)
    end
    end)

  • @SeverinaC-i5l
    @SeverinaC-i5l 21 день тому +4

    LocalScript inside the ShiftLockButton local player = game.Players.LocalPlayer local camera = game.Workspace.CurrentCamera local userInputService = game:GetService("UserInputService") local runService = game:GetService("RunService") local shiftLockActive = false local shiftLockButton = script.Parent -- Refers to the TextButton -- Toggle shift lock function local function toggleShiftLock() shiftLockActive = not shiftLockActive if shiftLockActive then -- Shift Lock active shiftLockButton.Text = "Shift Lock: ON" else -- Disable Shift Lock, back to normal mode shiftLockButton.Text = "Shift Lock: OFF" end end -- Function to handle camera and character movement in shift lock mode runService.RenderStepped:Connect(function() if shiftLockActive and player.Character then local character = player.Character local humanoidRootPart = character:WaitForChild("HumanoidRootPart") -- Allow the camera to move freely, but rotate the player to face the camera's direction local cameraLookDirection = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).unit humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + cameraLookDirection) end end)

  • @JaypeeTumimbang
    @JaypeeTumimbang 2 місяці тому +2

    Can u teach next on how too make item gamepass?

  • @Thedumguy-10k
    @Thedumguy-10k 2 місяці тому

    You should get more subscribers than 29. Keep making those teaching videos!

  • @waleedanimates324
    @waleedanimates324 2 місяці тому +2

    How do i add a button to spawn a part?

  • @Ahmed-sh2rz
    @Ahmed-sh2rz 2 місяці тому

    Can u make a video about how to make stage selector or skip stage?

  • @Grom_RealDev
    @Grom_RealDev 2 місяці тому +1

    Can you make a Tutorial "How to make a Door" plsss

  • @yobxnes
    @yobxnes 27 днів тому

    How do you make it to where shiftlock toggles whenever you press buttonL2? Thats left trigger on controller

  • @elijahklarkespartero3105
    @elijahklarkespartero3105 Місяць тому

    Thx alot bro!

  • @tomitheclownlol
    @tomitheclownlol 2 місяці тому

    W person, he's born for the right reason. making tutorials

  • @PouAndPoulina1
    @PouAndPoulina1 2 місяці тому +1

    can you make a tutiorail for adding text to parts

    • @SLNStars
      @SLNStars Місяць тому

      In the part Insert a billgboradgui and Insert a text

  • @ANIMEtagdub-123
    @ANIMEtagdub-123 2 місяці тому

    Can you make leaderstat playtime

  • @I_likecheese861
    @I_likecheese861 2 місяці тому

    Can u do how to delete saves

  • @RodriRBLX
    @RodriRBLX 2 місяці тому

    Can you make a tutorial to make a main menu plz?

  • @PRACHALKHADKA
    @PRACHALKHADKA Місяць тому

    Hwo to dd image?

  • @memorykeeper83
    @memorykeeper83 2 місяці тому

    Bro can you make a script for the aim icon when you're holding a gun

  • @NadiaAsif-t4g
    @NadiaAsif-t4g 2 місяці тому

    New sub!

  • @Thedumguy-10k
    @Thedumguy-10k 2 місяці тому

    How do i make my screen zoom in

  • @noobButbetter.
    @noobButbetter. Місяць тому +1

    Yoo thx bro

  • @abnalarbya
    @abnalarbya 2 місяці тому +2

    Animation PLSSSSS

    • @YepImAura
      @YepImAura 2 місяці тому +1

      FR DAWG, What's ur game?

    • @abnalarbya
      @abnalarbya 2 місяці тому

      @@YepImAura mini games if you want to play it search for
      Dev_abnalarbya

    • @abnalarbya
      @abnalarbya Місяць тому +1

      ​@@YepImAuraneed only Shiftlock and I back to get it again

    • @abnalarbya
      @abnalarbya Місяць тому +1

      ​@@YepImAura+nvm i finish The Game

  • @Gojo-sigmalol123
    @Gojo-sigmalol123 2 місяці тому

    Not work

  • @tomitheclownlol
    @tomitheclownlol 2 місяці тому +1

    next tutorial: how to make cutecenes using scripts

    • @TykonRBX
      @TykonRBX 2 місяці тому

      U can't, u need to animate which unfortunately studio lite doesnt have

  • @Teh_epik_paperguy
    @Teh_epik_paperguy 2 місяці тому

    Can you add the script in comments or description?!?

    • @RealDonateKingP
      @RealDonateKingP 2 місяці тому +2

      -- LocalScript inside the ShiftLockButton
      local player = game.Players.LocalPlayer
      local camera = game.Workspace.CurrentCamera
      local userInputService = game:GetService("UserInputService")
      local runService = game:GetService("RunService")
      local shiftLockActive = false
      local shiftLockButton = script.Parent -- Refers to the TextButton
      -- Toggle shift lock function
      local function toggleShiftLock()
      shiftLockActive = not shiftLockActive
      if shiftLockActive then
      -- Shift Lock active
      shiftLockButton.Text = "Shift Lock: ON"
      else
      -- Disable Shift Lock, back to normal mode
      shiftLockButton.Text = "Shift Lock: OFF"
      end
      end
      -- Function to handle camera and character movement in shift lock mode
      runService.RenderStepped:Connect(function()
      if shiftLockActive and player.Character then
      local character = player.Character
      local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
      -- Allow the camera to move freely, but rotate the player to face the camera's direction
      local cameraLookDirection = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).unit
      humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + cameraLookDirection)
      end
      end)
      -- Connect the button click to toggle Shift Lock
      shiftLockButton.MouseButton1Click:Connect(toggleShiftLock)

    • @StudioLiteTutorial
      @StudioLiteTutorial 2 місяці тому

      @@RealDonateKingPI CANT COPY THE TEXT :(

    • @Luci_Bs37
      @Luci_Bs37 2 місяці тому

      ​@@StudioLiteTutorialuse chrome and try

    • @djmahandrim5324
      @djmahandrim5324 Місяць тому

      /Copy

    • @AzozAlharbi-ye1fu
      @AzozAlharbi-ye1fu 13 днів тому

      @@StudioLiteTutorialoh hi bro did you copy this video lol

  • @minecraftcraft6238
    @minecraftcraft6238 Місяць тому

    add a music

  • @Brsaite_stresh
    @Brsaite_stresh 2 місяці тому

    Eat tool?

  • @MasOGaming-x8y
    @MasOGaming-x8y 2 місяці тому

    Bro can u add script in description 😊

    • @RealDonateKingP
      @RealDonateKingP 2 місяці тому

      -- LocalScript inside the ShiftLockButton
      local player = game.Players.LocalPlayer
      local camera = game.Workspace.CurrentCamera
      local userInputService = game:GetService("UserInputService")
      local runService = game:GetService("RunService")
      local shiftLockActive = false
      local shiftLockButton = script.Parent -- Refers to the TextButton
      -- Toggle shift lock function
      local function toggleShiftLock()
      shiftLockActive = not shiftLockActive
      if shiftLockActive then
      -- Shift Lock active
      shiftLockButton.Text = "Shift Lock: ON"
      else
      -- Disable Shift Lock, back to normal mode
      shiftLockButton.Text = "Shift Lock: OFF"
      end
      end
      -- Function to handle camera and character movement in shift lock mode
      runService.RenderStepped:Connect(function()
      if shiftLockActive and player.Character then
      local character = player.Character
      local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
      -- Allow the camera to move freely, but rotate the player to face the camera's direction
      local cameraLookDirection = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).unit
      humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + cameraLookDirection)
      end
      end)
      -- Connect the button click to toggle Shift Lock
      shiftLockButton.MouseButton1Click:Connect(toggleShiftLock)

  • @Teleport2345
    @Teleport2345 2 місяці тому

    how add global leaderboard

  • @StudioLiteTutorial
    @StudioLiteTutorial 2 місяці тому +3

    Lying beacuse I don’t see script :(

    • @RealDonateKingP
      @RealDonateKingP 2 місяці тому +7

      -- LocalScript inside the ShiftLockButton
      local player = game.Players.LocalPlayer
      local camera = game.Workspace.CurrentCamera
      local userInputService = game:GetService("UserInputService")
      local runService = game:GetService("RunService")
      local shiftLockActive = false
      local shiftLockButton = script.Parent -- Refers to the TextButton
      -- Toggle shift lock function
      local function toggleShiftLock()
      shiftLockActive = not shiftLockActive
      if shiftLockActive then
      -- Shift Lock active
      shiftLockButton.Text = "Shift Lock: ON"
      else
      -- Disable Shift Lock, back to normal mode
      shiftLockButton.Text = "Shift Lock: OFF"
      end
      end
      -- Function to handle camera and character movement in shift lock mode
      runService.RenderStepped:Connect(function()
      if shiftLockActive and player.Character then
      local character = player.Character
      local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
      -- Allow the camera to move freely, but rotate the player to face the camera's direction
      local cameraLookDirection = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).unit
      humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + cameraLookDirection)
      end
      end)
      -- Connect the button click to toggle Shift Lock
      shiftLockButton.MouseButton1Click:Connect(toggleShiftLock)

    • @StudioLiteTutorial
      @StudioLiteTutorial 2 місяці тому

      @@RealDonateKingPI CANT COPY THE TEXT BRO L UA-cam

    • @RealDonateKingP
      @RealDonateKingP 2 місяці тому

      @@StudioLiteTutorial u can copy it in Google UA-cam LOL

    • @StudioLiteTutorial
      @StudioLiteTutorial 2 місяці тому +1

      @@RealDonateKingPno worries xd i alr have it in my game

    • @StudioLiteTutorial
      @StudioLiteTutorial 2 місяці тому +1

      Also if you want to join me game username III and click creations and join my game please

  • @Brsaite_stresh
    @Brsaite_stresh 2 місяці тому

    Badge items

  • @isinyarandomlek
    @isinyarandomlek Місяць тому

    Good

  • @dianleksono
    @dianleksono 3 дні тому

    ua-cam.com/video/BFNSwVHYDW8/v-deo.html&lc=UgzholXwaUeuQ1YJ2_F4AaABAg&si=5e-Y7aPYZGKTJb-T

  • @KetutCikri
    @KetutCikri 2 місяці тому

    Where is the script You are lying?

    • @RealDonateKingP
      @RealDonateKingP 2 місяці тому

      -- LocalScript inside the ShiftLockButton
      local player = game.Players.LocalPlayer
      local camera = game.Workspace.CurrentCamera
      local userInputService = game:GetService("UserInputService")
      local runService = game:GetService("RunService")
      local shiftLockActive = false
      local shiftLockButton = script.Parent -- Refers to the TextButton
      -- Toggle shift lock function
      local function toggleShiftLock()
      shiftLockActive = not shiftLockActive
      if shiftLockActive then
      -- Shift Lock active
      shiftLockButton.Text = "Shift Lock: ON"
      else
      -- Disable Shift Lock, back to normal mode
      shiftLockButton.Text = "Shift Lock: OFF"
      end
      end
      -- Function to handle camera and character movement in shift lock mode
      runService.RenderStepped:Connect(function()
      if shiftLockActive and player.Character then
      local character = player.Character
      local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
      -- Allow the camera to move freely, but rotate the player to face the camera's direction
      local cameraLookDirection = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).unit
      humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + cameraLookDirection)
      end
      end)
      -- Connect the button click to toggle Shift Lock
      shiftLockButton.MouseButton1Click:Connect(toggleShiftLock)

  • @Brsaite_stresh
    @Brsaite_stresh 2 місяці тому

    Script

  • @DoraeWonChannel
    @DoraeWonChannel 2 місяці тому +2

    LocalScript inside the ShiftLockButton
    local player = game.Players.LocalPlayer
    local camera = game.Workspace.CurrentCamera
    local userInputService =
    game:GetService("UserInputService")
    local runService = game:GetService("RunService")
    local shiftLockActive = false
    local shiftLockButton = script.Parent -- Refers to the TextButton
    -- Toggle shift lock function
    local funtion toggleShiftLock()
    shiftLockActive = not shiftLockActive
    if shiftLockActive then
    -- Shift Lock active
    shiftLockButton.Text = "Shift Lock: ON" else
    -- Disable Shift Lock, back to norma