RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a shift to sprint and explain where to put it"
-- local script local player = game:GetService("Players").LocalPlayer local sprinting = false local function sprint() if sprinting then sprinting = false player.Character.Humanoid.WalkSpeed = 16 else sprinting = true player.Character.Humanoid.WalkSpeed = 50 end end game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent) if input.KeyCode == Enum.KeyCode.LeftShift then sprint() end end) -- -- make a GUI button that teleports the player to a specific location -- local script local button = script.Parent local function teleport() local player = game:GetService("Players").LocalPlayer player.Character:MoveTo(Vector3.new(0,50,0)) end button.MouseButton1Click:Connect(teleport)