RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a roblox script that lets you sit when you press q"
-- local script local UserInputService = game:GetService("UserInputService") local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local function onInputBegan(input, gameProcessed) if input.KeyCode == Enum.KeyCode.Q and not gameProcessed then if humanoid.Sit then humanoid.Sit = false else humanoid.Sit = true end end end UserInputService.InputBegan:Connect(onInputBegan)