Algarnr

Roblox Walkspeed set to 30 enjoy!

May 27th, 2025
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. local player = game.Players.LocalPlayer
  4. local gui = Instance.new("ScreenGui")
  5. gui.Name = "WalkSpeedToggleGUI"
  6. gui.Parent = player.PlayerGui
  7.  
  8. local frame = Instance.new("Frame")
  9. frame.Size = UDim2.new(0, 200, 0, 100)
  10. frame.Position = UDim2.new(0, 10, 0, 10)
  11. frame.BackgroundTransparency = 0.5
  12. frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  13. frame.Parent = gui
  14.  
  15. local toggleButton = Instance.new("TextButton")
  16. toggleButton.Size = UDim2.new(0, 180, 0, 50)
  17. toggleButton.Position = UDim2.new(0, 10, 0, 10)
  18. toggleButton.Text = "Toggle WalkSpeed"
  19. toggleButton.Parent = frame
  20.  
  21. local dragButton = Instance.new("TextButton")
  22. dragButton.Size = UDim2.new(0, 20, 0, 20)
  23. dragButton.Position = UDim2.new(1, -20, 1, -20)
  24. dragButton.Text = "+"
  25. dragButton.Parent = frame
  26.  
  27. local walkspeedEnabled = false
  28.  
  29. local function toggleWalkspeed()
  30.     local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
  31.     if humanoid then
  32.         if walkspeedEnabled then
  33.             humanoid.WalkSpeed = 16
  34.         else
  35.             humanoid.WalkSpeed = 30
  36.         end
  37.         walkspeedEnabled = not walkspeedEnabled
  38.     end
  39. end
  40.  
  41. local function enableDragging()
  42.     local dragger = Instance.new("UIDragDetector")
  43.     dragger.Parent = frame
  44. end
  45.  
  46. toggleButton.MouseButton1Click:Connect(toggleWalkspeed)
  47. dragButton.MouseButton1Click:Connect(enableDragging)
  48.  
Advertisement
Add Comment
Please, Sign In to add comment