RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"when a player clicks e on there keyboard they will get 10000 walkspeed for 20 seconds"
-- local script local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local function onKeyPress(input) if input.KeyCode == Enum.KeyCode.E then humanoid.WalkSpeed = 10000 wait(20) humanoid.WalkSpeed = 16 end end game:GetService("UserInputService").InputBegan:Connect(onKeyPress)