RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script that gives the player the ability to time stop whenever they press z"
-- local script local player = game.Players.LocalPlayer local timeStop = false local function timeStopFunction() if timeStop then timeStop = false game.Workspace.Gravity = 196.2 game.Workspace.CurrentCamera.CameraSubject = player.Character else timeStop = true game.Workspace.Gravity = 0 game.Workspace.CurrentCamera.CameraSubject = nil end end game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.Z then timeStopFunction() end end)