Advertisement
Sufferrrrrr

speed and jump changer roblox script

Jan 13th, 2024 (edited)
1,278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. -- Insert a Script into StarterPlayer -> StarterPlayerScripts
  5.  
  6. local player = game.Players.LocalPlayer
  7. local gui = player.PlayerGui
  8.  
  9. -- Function to create a notification
  10. local function createNotification(message)
  11. local notification = Instance.new("ScreenGui")
  12. notification.Name = "Notification"
  13. notification.Parent = gui
  14.  
  15. local frame = Instance.new("Frame")
  16. frame.Size = UDim2.new(0, 200, 0, 50)
  17. frame.Position = UDim2.new(0.5, -100, 0, 10)
  18. frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  19. frame.BorderSizePixel = 2
  20. frame.Parent = notification
  21.  
  22. local textLabel = Instance.new("TextLabel")
  23. textLabel.Text = message
  24. textLabel.Size = UDim2.new(1, 0, 1, 0)
  25. textLabel.TextScaled = true
  26. textLabel.Parent = frame
  27.  
  28. wait(5) -- Display the notification for 5 seconds
  29. notification:Destroy()
  30. end
  31.  
  32. -- GUI for speed and walk changer
  33. local speedWalkGui = Instance.new("ScreenGui")
  34. speedWalkGui.Parent = gui
  35. speedWalkGui.IgnoreGuiInset = true -- Ensure the GUI is not affected by mobile safe zones
  36. speedWalkGui.Enabled = true
  37.  
  38. local frame = Instance.new("Frame")
  39. frame.Size = UDim2.new(0, 200, 0, 140)
  40. frame.Position = UDim2.new(0.5, -100, 0, 10)
  41. frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  42. frame.BorderSizePixel = 2
  43. frame.Parent = speedWalkGui
  44.  
  45. local walkSpeedTextBox = Instance.new("TextBox")
  46. walkSpeedTextBox.Position = UDim2.new(0, 10, 0, 10)
  47. walkSpeedTextBox.Size = UDim2.new(0, 80, 0, 20)
  48. walkSpeedTextBox.Parent = frame
  49.  
  50. local jumpPowerTextBox = Instance.new("TextBox")
  51. jumpPowerTextBox.Position = UDim2.new(0, 120, 0, 10)
  52. jumpPowerTextBox.Size = UDim2.new(0, 80, 0, 20)
  53. jumpPowerTextBox.Parent = frame
  54.  
  55. local applyButton = Instance.new("TextButton")
  56. applyButton.Text = "Apply Changes"
  57. applyButton.Position = UDim2.new(0.5, -80, 0, 40)
  58. applyButton.Size = UDim2.new(0, 160, 0, 20)
  59. applyButton.Parent = frame
  60.  
  61. local resetButton = Instance.new("TextButton")
  62. resetButton.Text = "Reset Speed & Jump"
  63. resetButton.Position = UDim2.new(0.5, -80, 0, 70)
  64. resetButton.Size = UDim2.new(0, 160, 0, 20)
  65. resetButton.Parent = frame
  66.  
  67. local toggleButton = Instance.new("TextButton")
  68. toggleButton.Text = "Close GUI"
  69. toggleButton.Position = UDim2.new(0.5, -80, 0, 110)
  70. toggleButton.Size = UDim2.new(0, 160, 0, 20)
  71. toggleButton.Parent = frame
  72.  
  73. -- Function to handle button click
  74. applyButton.MouseButton1Click:Connect(function()
  75. local walkSpeed = tonumber(walkSpeedTextBox.Text) or 16
  76. local jumpPower = tonumber(jumpPowerTextBox.Text) or 50
  77.  
  78. local character = player.Character
  79. if character and character:FindFirstChildOfClass("Humanoid") then
  80. character:FindFirstChildOfClass("Humanoid").WalkSpeed = walkSpeed
  81. character:FindFirstChildOfClass("Humanoid").JumpPower = jumpPower
  82. end
  83.  
  84. createNotification("Changes applied!")
  85. end)
  86.  
  87. -- Function to handle reset button click
  88. resetButton.MouseButton1Click:Connect(function()
  89. walkSpeedTextBox.Text = ""
  90. jumpPowerTextBox.Text = ""
  91.  
  92. local character = player.Character
  93. if character and character:FindFirstChildOfClass("Humanoid") then
  94. character:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
  95. character:FindFirstChildOfClass("Humanoid").JumpPower = 50
  96. end
  97.  
  98. createNotification("Speed and Jump reset!")
  99. end)
  100.  
  101. -- Function to handle toggle button click
  102. toggleButton.MouseButton1Click:Connect(function()
  103. speedWalkGui.Enabled = not speedWalkGui.Enabled
  104. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement