Chaseycoil

SpeedG - Universal Speed Changer

Aug 19th, 2025
31,857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.70 KB | None | 0 0
  1. -- Persistent, Closable, Minimizable MoveGUI with Speed & Enable/Disable
  2.  
  3. local player = game.Players.LocalPlayer
  4. local PlayerGui = player:FindFirstChild("PlayerGui") or player:WaitForChild("PlayerGui")
  5.  
  6. -- Remove old GUI if exists
  7. if PlayerGui:FindFirstChild("MoveGUI") then
  8.     PlayerGui.MoveGUI:Destroy()
  9. end
  10.  
  11. -- Variables
  12. local walkSpeed = 16
  13. local enabled = true
  14.  
  15. -- Create GUI
  16. local screenGui = Instance.new("ScreenGui")
  17. screenGui.Name = "MoveGUI"
  18. screenGui.ResetOnSpawn = false
  19. screenGui.Parent = PlayerGui
  20.  
  21. -- Main Frame
  22. local frame = Instance.new("Frame")
  23. frame.Size = UDim2.new(0, 220, 0, 150)
  24. frame.Position = UDim2.new(0, 20, 0, 50)
  25. frame.BackgroundColor3 = Color3.fromRGB(30,30,30)
  26. frame.BorderSizePixel = 0
  27. frame.Active = true
  28. frame.Draggable = true
  29. frame.Parent = screenGui
  30.  
  31. -- Title
  32. local title = Instance.new("TextLabel")
  33. title.Size = UDim2.new(1,0,0,30)
  34. title.BackgroundTransparency = 1
  35. title.Text = "Walk Speed GUI"
  36. title.TextColor3 = Color3.fromRGB(255,255,255)
  37. title.Font = Enum.Font.SourceSansBold
  38. title.TextSize = 18
  39. title.Parent = frame
  40.  
  41. -- Close Button
  42. local closeBtn = Instance.new("TextButton")
  43. closeBtn.Size = UDim2.new(0,30,0,30)
  44. closeBtn.Position = UDim2.new(1,-35,0,5)
  45. closeBtn.Text = "X"
  46. closeBtn.Font = Enum.Font.SourceSansBold
  47. closeBtn.TextSize = 18
  48. closeBtn.TextColor3 = Color3.fromRGB(255,255,255)
  49. closeBtn.BackgroundColor3 = Color3.fromRGB(80,80,80)
  50. closeBtn.Parent = frame
  51. closeBtn.MouseButton1Click:Connect(function()
  52.     screenGui:Destroy()
  53. end)
  54.  
  55. -- Minimized Circle
  56. local minimizedCircle = Instance.new("TextButton")
  57. minimizedCircle.Size = UDim2.new(0,50,0,50)
  58. minimizedCircle.Position = UDim2.new(0, 20,0,50)
  59. minimizedCircle.BackgroundColor3 = Color3.fromRGB(50,50,50)
  60. minimizedCircle.BorderSizePixel = 0
  61. minimizedCircle.TextColor3 = Color3.fromRGB(255,255,255)
  62. minimizedCircle.Text = "Speed"
  63. minimizedCircle.Visible = false
  64. minimizedCircle.Active = true
  65. minimizedCircle.Draggable = true
  66. minimizedCircle.Parent = screenGui
  67.  
  68. -- Minimize Button
  69. local minimizeBtn = Instance.new("TextButton")
  70. minimizeBtn.Size = UDim2.new(0,30,0,30)
  71. minimizeBtn.Position = UDim2.new(1,-70,0,5)
  72. minimizeBtn.Text = "-"
  73. minimizeBtn.Font = Enum.Font.SourceSansBold
  74. minimizeBtn.TextSize = 18
  75. minimizeBtn.TextColor3 = Color3.fromRGB(255,255,255)
  76. minimizeBtn.BackgroundColor3 = Color3.fromRGB(80,80,80)
  77. minimizeBtn.Parent = frame
  78.  
  79. minimizeBtn.MouseButton1Click:Connect(function()
  80.     frame.Visible = false
  81.     minimizedCircle.Visible = true
  82. end)
  83.  
  84. minimizedCircle.MouseButton1Click:Connect(function()
  85.     frame.Visible = true
  86.     minimizedCircle.Visible = false
  87. end)
  88.  
  89. -- Enable/Disable Button
  90. local toggleBtn = Instance.new("TextButton")
  91. toggleBtn.Size = UDim2.new(0, 200, 0, 30)
  92. toggleBtn.Position = UDim2.new(0,10,0,40)
  93. toggleBtn.Text = "Disable"
  94. toggleBtn.Font = Enum.Font.SourceSans
  95. toggleBtn.TextSize = 16
  96. toggleBtn.TextColor3 = Color3.fromRGB(255,255,255)
  97. toggleBtn.BackgroundColor3 = Color3.fromRGB(50,50,50)
  98. toggleBtn.Parent = frame
  99.  
  100. toggleBtn.MouseButton1Click:Connect(function()
  101.     enabled = not enabled
  102.     local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  103.     if enabled then
  104.         toggleBtn.Text = "Disable"
  105.         if humanoid then humanoid.WalkSpeed = walkSpeed end
  106.     else
  107.         toggleBtn.Text = "Enable"
  108.         if humanoid then humanoid.WalkSpeed = 16 end
  109.     end
  110. end)
  111.  
  112. -- Speed Input
  113. local speedLabel = Instance.new("TextLabel")
  114. speedLabel.Size = UDim2.new(1,0,0,20)
  115. speedLabel.Position = UDim2.new(0,10,0,80)
  116. speedLabel.Text = "Set Speed (1-10000):"
  117. speedLabel.TextColor3 = Color3.fromRGB(255,255,255)
  118. speedLabel.BackgroundTransparency = 1
  119. speedLabel.Font = Enum.Font.SourceSans
  120. speedLabel.TextSize = 14
  121. speedLabel.Parent = frame
  122.  
  123. local speedBox = Instance.new("TextBox")
  124. speedBox.Size = UDim2.new(0, 200, 0, 25)
  125. speedBox.Position = UDim2.new(0,10,0,100)
  126. speedBox.Text = tostring(walkSpeed)
  127. speedBox.ClearTextOnFocus = true
  128. speedBox.TextColor3 = Color3.fromRGB(255,255,255)
  129. speedBox.BackgroundColor3 = Color3.fromRGB(50,50,50)
  130. speedBox.Parent = frame
  131.  
  132. speedBox.FocusLost:Connect(function(enter)
  133.     local val = tonumber(speedBox.Text)
  134.     if val then
  135.         if val < 1 then val = 1 end
  136.         if val > 10000 then val = 10000 end
  137.         walkSpeed = val
  138.         if enabled then
  139.             local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  140.             if humanoid then humanoid.WalkSpeed = walkSpeed end
  141.         end
  142.         speedBox.Text = tostring(walkSpeed)
  143.     end
  144. end)
  145.  
  146. -- Apply speed on respawn
  147. player.CharacterAdded:Connect(function(char)
  148.     local humanoid = char:WaitForChild("Humanoid")
  149.     if enabled then humanoid.WalkSpeed = walkSpeed end
  150. end)
  151.  
Advertisement
Add Comment
Please, Sign In to add comment