Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб How to make a Shiftlock option for your obby or game (Works on studio lite and Roblox Studio) в хорошем качестве

How to make a Shiftlock option for your obby or game (Works on studio lite and Roblox Studio) 6 дней назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



How to make a Shiftlock option for your obby or game (Works on studio lite and Roblox Studio)

#roblox #robloxstudiotutorial (Add localScript in the shiftlock button) 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)

Comments