RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a time stop effect when ever the player presses z key"
-- local script local player = game.Players.LocalPlayer local character = player.Character local timeStop = false game:GetService("UserInputService").InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Z then if timeStop then timeStop = false game.TimeService.TimeScale = 1 else timeStop = true game.TimeService.TimeScale = 0 end end end)