RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script that makes the player spin at all times unless they hit the g key"
-- local script local player = game.Players.LocalPlayer local spinning = false local function spin() if spinning then spinning = false player.Character.Humanoid.PlatformStand = false else spinning = true player.Character.Humanoid.PlatformStand = true player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(90), 0) end end game:GetService('UserInputService').InputBegan:Connect(function(inputObject) if inputObject.KeyCode == Enum.KeyCode.G then spin() end end)