Advertisement
GIN0912

Untitled

Apr 16th, 2025
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.20 KB | Gaming | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local gui = Instance.new("ScreenGui", plr:WaitForChild("PlayerGui"))
  3. gui.Name = "AutoJumpUI"
  4.  
  5. local frame = Instance.new("Frame", gui)
  6. frame.Size = UDim2.new(0, 220, 0, 160)
  7. frame.Position = UDim2.new(0.5, -110, 0.5, -80)
  8. frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  9. frame.Active, frame.Draggable = true, true
  10.  
  11. local title = Instance.new("TextLabel", frame)
  12. title.Size = UDim2.new(1, 0, 0, 30)
  13. title.BackgroundTransparency = 1
  14. title.Text = "AutoJump"
  15. title.TextColor3 = Color3.new(1,1,1)
  16. title.Font = Enum.Font.SourceSansBold
  17. title.TextSize = 20
  18.  
  19. local input = Instance.new("TextBox", frame)
  20. input.Size = UDim2.new(0.8, 0, 0, 30)
  21. input.Position = UDim2.new(0.1, 0, 0.3, 0)
  22. input.Text = "3"
  23. input.PlaceholderText = "Jump interval"
  24. input.BackgroundColor3 = Color3.new(1,1,1)
  25. input.TextColor3 = Color3.new(0,0,0)
  26. input.Font = Enum.Font.SourceSans
  27. input.TextSize = 18
  28.  
  29. local toggle = Instance.new("TextButton", frame)
  30. toggle.Size = UDim2.new(0.8, 0, 0, 30)
  31. toggle.Position = UDim2.new(0.1, 0, 0.55, 0)
  32. toggle.Text = "Stop AutoJump"
  33. toggle.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
  34. toggle.TextColor3 = Color3.new(1,1,1)
  35. toggle.Font = Enum.Font.SourceSansBold
  36. toggle.TextSize = 18
  37.  
  38. local countLbl = Instance.new("TextLabel", frame)
  39. countLbl.Size = UDim2.new(0.8, 0, 0, 30)
  40. countLbl.Position = UDim2.new(0.1, 0, 0.8, 0)
  41. countLbl.BackgroundTransparency = 1
  42. countLbl.Text = "Jumps: 0"
  43. countLbl.TextColor3 = Color3.new(1,1,1)
  44. countLbl.Font = Enum.Font.SourceSansBold
  45. countLbl.TextSize = 18
  46.  
  47. -- Logic
  48. local jumping, count, interval = true, 0, 3
  49. toggle.MouseButton1Click:Connect(function()
  50.     jumping = not jumping
  51.     toggle.Text = jumping and "Stop AutoJump" or "Start AutoJump"
  52. end)
  53.  
  54. input.FocusLost:Connect(function()
  55.     local val = tonumber(input.Text)
  56.     if val and val > 0 then interval = val else input.Text = ""; input.PlaceholderText = "Invalid!" end
  57. end)
  58.  
  59. task.spawn(function()
  60.     while true do
  61.         if jumping and plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") then
  62.             plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  63.             count += 1
  64.             countLbl.Text = "Jumps: " .. count
  65.         end
  66.         task.wait(interval)
  67.     end
  68. end)
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement