Advertisement
Syahrul_Gibran

Jump and speed changer

May 14th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. -- https://scriptblox.com/script/Universal-Script-Speed-and-Jump-Changer-36329
  2.  
  3. local player = game.Players.LocalPlayer
  4. local TweenService = game:GetService("TweenService")
  5.  
  6. -- Create GUI
  7. local screenGui = Instance.new("ScreenGui")
  8. screenGui.Name = "SpeedGui"
  9. screenGui.ResetOnSpawn = false
  10. screenGui.Parent = player:WaitForChild("PlayerGui")
  11.  
  12. -- Toggle Button
  13. local toggleBtn = Instance.new("TextButton")
  14. toggleBtn.Name = "ToggleButton"
  15. toggleBtn.Size = UDim2.new(0, 60, 0, 30)
  16. toggleBtn.Position = UDim2.new(0, 10, 0, 10)
  17. toggleBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  18. toggleBtn.Text = "Menu"
  19. toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  20. toggleBtn.Font = Enum.Font.SourceSansBold
  21. toggleBtn.TextSize = 16
  22. toggleBtn.Parent = screenGui
  23.  
  24. -- Create Main Frame
  25. local frame = Instance.new("Frame")
  26. frame.Name = "SpeedFrame"
  27. frame.Size = UDim2.new(0, 200, 0, 180)
  28. frame.Position = UDim2.new(0.5, -100, 0.5, -90) -- Initial position
  29. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  30. frame.Active = true
  31. frame.Draggable = true
  32. frame.Visible = true
  33. frame.Parent = screenGui
  34.  
  35. local tweenInfo = TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  36.  
  37. -- Store original position
  38. local lastPosition = frame.Position
  39.  
  40. -- Toggle Logic with Tween and remember position
  41. local isVisible = true
  42. toggleBtn.MouseButton1Click:Connect(function()
  43. if isVisible then
  44. lastPosition = frame.Position
  45. local tweenOut = TweenService:Create(frame, tweenInfo, {Position = UDim2.new(lastPosition.X.Scale, lastPosition.X.Offset, 1, 0)})
  46. tweenOut:Play()
  47. tweenOut.Completed:Wait()
  48. frame.Visible = false
  49. else
  50. frame.Position = UDim2.new(lastPosition.X.Scale, lastPosition.X.Offset, 1, 0)
  51. frame.Visible = true
  52. local tweenIn = TweenService:Create(frame, tweenInfo, {Position = lastPosition})
  53. tweenIn:Play()
  54. end
  55. isVisible = not isVisible
  56. end)
  57.  
  58. -- GUI Elements (same as before, just shortened comment-wise for clarity)
  59. local madeBy = Instance.new("TextLabel", frame)
  60. madeBy.Size = UDim2.new(1, 0, 0, 16)
  61. madeBy.Position = UDim2.new(0, 0, 0, 0)
  62. madeBy.BackgroundTransparency = 1
  63. madeBy.Text = "Made By: 2xBJ"
  64. madeBy.TextColor3 = Color3.fromRGB(200, 200, 200)
  65. madeBy.Font = Enum.Font.SourceSansItalic
  66. madeBy.TextSize = 13
  67.  
  68. local title = Instance.new("TextLabel", frame)
  69. title.Size = UDim2.new(1, 0, 0, 20)
  70. title.Position = UDim2.new(0, 0, 0, 14)
  71. title.BackgroundTransparency = 1
  72. title.Text = "Set Speed & Jump"
  73. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. title.Font = Enum.Font.SourceSansBold
  75. title.TextSize = 18
  76.  
  77. local speedBox = Instance.new("TextBox", frame)
  78. speedBox.PlaceholderText = "WalkSpeed"
  79. speedBox.Size = UDim2.new(0.8, 0, 0, 24)
  80. speedBox.Position = UDim2.new(0.1, 0, 0.32, 0)
  81. speedBox.Font = Enum.Font.SourceSans
  82. speedBox.TextSize = 16
  83. speedBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  84. speedBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  85.  
  86. local jumpBox = Instance.new("TextBox", frame)
  87. jumpBox.PlaceholderText = "JumpPower"
  88. jumpBox.Size = UDim2.new(0.8, 0, 0, 24)
  89. jumpBox.Position = UDim2.new(0.1, 0, 0.52, 0)
  90. jumpBox.Font = Enum.Font.SourceSans
  91. jumpBox.TextSize = 16
  92. jumpBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  93. jumpBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  94.  
  95. local continueBtn = Instance.new("TextButton", frame)
  96. continueBtn.Text = "Set"
  97. continueBtn.Size = UDim2.new(0.4, -2, 0, 24)
  98. continueBtn.Position = UDim2.new(0.1, 0, 0.75, 0)
  99. continueBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  100. continueBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. continueBtn.Font = Enum.Font.SourceSansBold
  102. continueBtn.TextSize = 16
  103.  
  104. local resetBtn = Instance.new("TextButton", frame)
  105. resetBtn.Text = "Reset"
  106. resetBtn.Size = UDim2.new(0.4, -2, 0, 24)
  107. resetBtn.Position = UDim2.new(0.5, 2, 0.75, 0)
  108. resetBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  109. resetBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  110. resetBtn.Font = Enum.Font.SourceSansBold
  111. resetBtn.TextSize = 16
  112.  
  113. -- Button logic
  114. continueBtn.MouseButton1Click:Connect(function()
  115. local speed = tonumber(speedBox.Text)
  116. local jump = tonumber(jumpBox.Text)
  117. local character = player.Character or player.CharacterAdded:Wait()
  118. local humanoid = character:FindFirstChildWhichIsA("Humanoid")
  119. if humanoid then
  120. if speed and speed >= 0 then humanoid.WalkSpeed = speed end
  121. if jump and jump >= 0 then humanoid.JumpPower = jump end
  122. end
  123. end)
  124.  
  125. resetBtn.MouseButton1Click:Connect(function()
  126. local character = player.Character or player.CharacterAdded:Wait()
  127. local humanoid = character:FindFirstChildWhichIsA("Humanoid")
  128. if humanoid then
  129. humanoid.WalkSpeed = 16
  130. humanoid.JumpPower = 50
  131. end
  132. speedBox.Text = ""
  133. jumpBox.Text = ""
  134. end)
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement