Chaseycoil

Jump Control - universal Jump controller

Aug 15th, 2025
71,580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.69 KB | Source Code | 0 0
  1. --Hey! This jump controller has, Infinite jump, Auto jump, and Change jump power! With a closeable and minimizable UI!
  2. print ("Jump controller loaded in!")
  3.  
  4. --// Services
  5. local Players = game:GetService("Players")
  6. local RunService = game:GetService("RunService")
  7. local UIS = game:GetService("UserInputService")
  8.  
  9. local player = Players.LocalPlayer
  10. local character = player.Character or player.CharacterAdded:Wait()
  11. local humanoid = character:WaitForChild("Humanoid")
  12.  
  13. --// Variables
  14. local jumpHeight = 50
  15. local infiniteJumpEnabled = false
  16. local autoJumpEnabled = false
  17. local minimized = false
  18. local MinFrame = nil
  19.  
  20. --// Functions
  21. -- Infinite Jump
  22. UIS.JumpRequest:Connect(function()
  23.     if infiniteJumpEnabled then
  24.         humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  25.     end
  26. end)
  27.  
  28. -- Auto-jump (ground-only)
  29. RunService.RenderStepped:Connect(function()
  30.     if autoJumpEnabled and humanoid.FloorMaterial ~= Enum.Material.Air then
  31.         humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  32.     end
  33. end)
  34.  
  35. -- Apply jump power constantly to all jumps
  36. RunService.RenderStepped:Connect(function()
  37.     if humanoid then
  38.         humanoid.JumpPower = jumpHeight
  39.     end
  40. end)
  41.  
  42. --// GUI
  43. local ScreenGui = Instance.new("ScreenGui")
  44. ScreenGui.Name = "JumpGUI"
  45. ScreenGui.ResetOnSpawn = false
  46. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  47.  
  48. -- Main Frame
  49. local Frame = Instance.new("Frame")
  50. Frame.Size = UDim2.new(0, 300, 0, 200)
  51. Frame.Position = UDim2.new(0.5, -150, 0.5, -100)
  52. Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  53. Frame.Active = true
  54. Frame.Draggable = true
  55. Frame.Parent = ScreenGui
  56.  
  57. -- Title
  58. local Title = Instance.new("TextLabel")
  59. Title.Size = UDim2.new(1, 0, 0, 30)
  60. Title.BackgroundTransparency = 1
  61. Title.Text = "Jump Control"
  62. Title.TextColor3 = Color3.fromRGB(255,255,255)
  63. Title.Font = Enum.Font.SourceSansBold
  64. Title.TextSize = 20
  65. Title.Parent = Frame
  66.  
  67. -- Infinite Jump Toggle
  68. local IJToggle = Instance.new("TextButton")
  69. IJToggle.Size = UDim2.new(0, 140, 0, 40)
  70. IJToggle.Position = UDim2.new(0, 10, 0, 50)
  71. IJToggle.BackgroundColor3 = Color3.fromRGB(50,50,50)
  72. IJToggle.Text = "Infinite Jump: OFF"
  73. IJToggle.TextColor3 = Color3.fromRGB(255,255,255)
  74. IJToggle.Parent = Frame
  75.  
  76. IJToggle.MouseButton1Click:Connect(function()
  77.     infiniteJumpEnabled = not infiniteJumpEnabled
  78.     IJToggle.Text = "Infinite Jump: " .. (infiniteJumpEnabled and "ON" or "OFF")
  79. end)
  80.  
  81. -- Auto Jump Toggle
  82. local AJToggle = Instance.new("TextButton")
  83. AJToggle.Size = UDim2.new(0, 140, 0, 40)
  84. AJToggle.Position = UDim2.new(0, 150, 0, 50)
  85. AJToggle.BackgroundColor3 = Color3.fromRGB(50,50,50)
  86. AJToggle.Text = "Auto Jump: OFF"
  87. AJToggle.TextColor3 = Color3.fromRGB(255,255,255)
  88. AJToggle.Parent = Frame
  89.  
  90. AJToggle.MouseButton1Click:Connect(function()
  91.     autoJumpEnabled = not autoJumpEnabled
  92.     AJToggle.Text = "Auto Jump: " .. (autoJumpEnabled and "ON" or "OFF")
  93. end)
  94.  
  95. -- Jump Height Slider
  96. local SliderLabel = Instance.new("TextLabel")
  97. SliderLabel.Size = UDim2.new(0, 280, 0, 20)
  98. SliderLabel.Position = UDim2.new(0, 10, 0, 100)
  99. SliderLabel.BackgroundTransparency = 1
  100. SliderLabel.Text = "Jump Height: " .. jumpHeight
  101. SliderLabel.TextColor3 = Color3.fromRGB(255,255,255)
  102. SliderLabel.Font = Enum.Font.SourceSans
  103. SliderLabel.TextSize = 16
  104. SliderLabel.Parent = Frame
  105.  
  106. local Slider = Instance.new("TextBox")
  107. Slider.Size = UDim2.new(0, 280, 0, 30)
  108. Slider.Position = UDim2.new(0, 10, 0, 130)
  109. Slider.BackgroundColor3 = Color3.fromRGB(50,50,50)
  110. Slider.TextColor3 = Color3.fromRGB(255,255,255)
  111. Slider.Text = tostring(jumpHeight)
  112. Slider.ClearTextOnFocus = false
  113. Slider.Parent = Frame
  114.  
  115. Slider.FocusLost:Connect(function()
  116.     local val = tonumber(Slider.Text)
  117.     if val and val >= 50 and val <= 500 then
  118.         jumpHeight = val
  119.         SliderLabel.Text = "Jump Height: " .. jumpHeight
  120.     else
  121.         Slider.Text = tostring(jumpHeight)
  122.     end
  123. end)
  124.  
  125. -- Minimize/Close Buttons
  126. local MinimizeBtn = Instance.new("TextButton")
  127. MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
  128. MinimizeBtn.Position = UDim2.new(1, -35, 0, 5)
  129. MinimizeBtn.Text = "▼"
  130. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(70,70,70)
  131. MinimizeBtn.TextColor3 = Color3.fromRGB(255,255,255)
  132. MinimizeBtn.Parent = Frame
  133.  
  134. local CloseBtn = Instance.new("TextButton")
  135. CloseBtn.Size = UDim2.new(0, 30, 0, 30)
  136. CloseBtn.Position = UDim2.new(1, -70, 0, 5)
  137. CloseBtn.Text = "X"
  138. CloseBtn.BackgroundColor3 = Color3.fromRGB(70,70,70)
  139. CloseBtn.TextColor3 = Color3.fromRGB(255,255,255)
  140. CloseBtn.Parent = Frame
  141.  
  142. -- Minimize Function
  143. MinimizeBtn.MouseButton1Click:Connect(function()
  144.     if not minimized then
  145.         Frame.Visible = false
  146.         minimized = true
  147.  
  148.         -- Create minimized frame
  149.         MinFrame = Instance.new("TextButton")
  150.         MinFrame.Size = UDim2.new(0, 50, 0, 50)
  151.         -- Start minimized at current frame position
  152.         MinFrame.Position = Frame.Position + UDim2.new(0, Frame.Size.X.Offset/2 - 25, 0, Frame.Size.Y.Offset/2 - 25)
  153.         MinFrame.BackgroundColor3 = Color3.fromRGB(30,30,30)
  154.         MinFrame.Text = "▲"
  155.         MinFrame.TextColor3 = Color3.fromRGB(255,255,255)
  156.         MinFrame.Font = Enum.Font.SourceSansBold
  157.         MinFrame.TextSize = 24
  158.         MinFrame.Active = true
  159.         MinFrame.Draggable = true
  160.         MinFrame.Parent = ScreenGui
  161.  
  162.         MinFrame.MouseButton1Click:Connect(function()
  163.             -- Restore main GUI to minimized frame's position
  164.             Frame.Position = MinFrame.Position - UDim2.new(0, Frame.Size.X.Offset/2 - 25, 0, Frame.Size.Y.Offset/2 - 25)
  165.             MinFrame:Destroy()
  166.             Frame.Visible = true
  167.             minimized = false
  168.         end)
  169.     end
  170. end)
  171.  
  172. -- Close Button
  173. CloseBtn.MouseButton1Click:Connect(function()
  174.     ScreenGui:Destroy()
  175. end)
  176.  
Add Comment
Please, Sign In to add comment