FAXFR

SPEEDHACK V2

Jan 5th, 2026
153
0
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. -- SERVICES
  2. local Players = game:GetService("Players")
  3. local UserInputService = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local player = Players.LocalPlayer
  7.  
  8. -- CHARACTER
  9. local function getHumanoid()
  10. local character = player.Character or player.CharacterAdded:Wait()
  11. return character:WaitForChild("Humanoid")
  12. end
  13.  
  14. -- SPEED SETTINGS
  15. local MIN_SPEED = 50
  16. local MAX_SPEED = 500
  17. local currentSpeed = 50
  18.  
  19. -- GUI
  20. local gui = Instance.new("ScreenGui")
  21. gui.Name = "SpeedGui"
  22. gui.ResetOnSpawn = false
  23. gui.Parent = player:WaitForChild("PlayerGui")
  24.  
  25. local frame = Instance.new("Frame")
  26. frame.Size = UDim2.new(0, 220, 0, 120)
  27. frame.Position = UDim2.new(0, 10, 0.4, 0)
  28. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  29. frame.BackgroundTransparency = 0.1
  30. frame.BorderSizePixel = 0
  31. frame.Parent = gui
  32.  
  33. -- TITLE BAR (DRAG ONLY HERE)
  34. local title = Instance.new("TextLabel")
  35. title.Size = UDim2.new(1, 0, 0, 30)
  36. title.BackgroundTransparency = 1
  37. title.Text = "Speed Slider"
  38. title.TextColor3 = Color3.new(1,1,1)
  39. title.Font = Enum.Font.SourceSansBold
  40. title.TextSize = 20
  41. title.Parent = frame
  42.  
  43. -- SLIDER BAR
  44. local sliderBar = Instance.new("Frame")
  45. sliderBar.Size = UDim2.new(0, 180, 0, 6)
  46. sliderBar.Position = UDim2.new(0, 20, 0, 45)
  47. sliderBar.BackgroundColor3 = Color3.fromRGB(80,80,80)
  48. sliderBar.BorderSizePixel = 0
  49. sliderBar.Parent = frame
  50.  
  51. -- SLIDER
  52. local slider = Instance.new("Frame")
  53. slider.Size = UDim2.new(0, 10, 0, 16)
  54. slider.Position = UDim2.new(0, 0, -0.8, 0)
  55. slider.BackgroundColor3 = Color3.fromRGB(255,255,255)
  56. slider.BorderSizePixel = 0
  57. slider.Parent = sliderBar
  58.  
  59. -- SPEED BOX
  60. local speedBox = Instance.new("TextBox")
  61. speedBox.Size = UDim2.new(0, 180, 0, 30)
  62. speedBox.Position = UDim2.new(0, 20, 0, 75)
  63. speedBox.Text = tostring(currentSpeed)
  64. speedBox.ClearTextOnFocus = false
  65. speedBox.TextColor3 = Color3.new(1,1,1)
  66. speedBox.BackgroundColor3 = Color3.fromRGB(50,50,50)
  67. speedBox.Font = Enum.Font.SourceSans
  68. speedBox.TextSize = 18
  69. speedBox.BorderSizePixel = 0
  70. speedBox.Parent = frame
  71.  
  72. -- APPLY SPEED
  73. local function setSpeed(value)
  74. currentSpeed = value
  75. local humanoid = getHumanoid()
  76. humanoid.WalkSpeed = value
  77. speedBox.Text = tostring(value)
  78. end
  79.  
  80. -- SLIDER LOGIC (NO GUI MOVEMENT)
  81. local sliding = false
  82.  
  83. slider.InputBegan:Connect(function(input)
  84. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  85. sliding = true
  86. end
  87. end)
  88.  
  89. UserInputService.InputEnded:Connect(function(input)
  90. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  91. sliding = false
  92. end
  93. end)
  94.  
  95. UserInputService.InputChanged:Connect(function(input)
  96. if sliding and input.UserInputType == Enum.UserInputType.MouseMovement then
  97. local x = math.clamp(
  98. input.Position.X - sliderBar.AbsolutePosition.X,
  99. 0,
  100. sliderBar.AbsoluteSize.X
  101. )
  102.  
  103. local percent = x / sliderBar.AbsoluteSize.X
  104. local speed = math.floor(MIN_SPEED + (MAX_SPEED - MIN_SPEED) * percent)
  105.  
  106. slider.Position = UDim2.new(
  107. 0,
  108. x - slider.AbsoluteSize.X / 2,
  109. -0.8,
  110. 0
  111. )
  112.  
  113. setSpeed(speed)
  114. end
  115. end)
  116.  
  117. -- TEXTBOX INPUT
  118. speedBox.FocusLost:Connect(function()
  119. local num = tonumber(speedBox.Text)
  120. if num then
  121. setSpeed(num)
  122. end
  123. end)
  124.  
  125. -- FORCE SPEED (ANTI RESET)
  126. RunService.Heartbeat:Connect(function()
  127. local humanoid = getHumanoid()
  128. if humanoid.WalkSpeed ~= currentSpeed then
  129. humanoid.WalkSpeed = currentSpeed
  130. end
  131. end)
  132.  
  133. -- DRAGGABLE GUI (TITLE BAR ONLY)
  134. local draggingGui = false
  135. local dragStart
  136. local startPos
  137.  
  138. title.InputBegan:Connect(function(input)
  139. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  140. draggingGui = true
  141. dragStart = input.Position
  142. startPos = frame.Position
  143. end
  144. end)
  145.  
  146. UserInputService.InputEnded:Connect(function(input)
  147. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  148. draggingGui = false
  149. end
  150. end)
  151.  
  152. UserInputService.InputChanged:Connect(function(input)
  153. if draggingGui and input.UserInputType == Enum.UserInputType.MouseMovement then
  154. local delta = input.Position - dragStart
  155. frame.Position = UDim2.new(
  156. startPos.X.Scale,
  157. startPos.X.Offset + delta.X,
  158. startPos.Y.Scale,
  159. startPos.Y.Offset + delta.Y
  160. )
  161. end
  162. end)
  163.  
  164. -- DEFAULT SPEED
  165. setSpeed(currentSpeed)
  166.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment