Advertisement
A_GUES

Speed script by GPT-4 & Google Bard

Aug 6th, 2023
1,661
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.55 KB | None | 0 0
  1.  
  2. -- Variables
  3. local speedValue = 16 -- Default speed value
  4.  
  5. -- Create GUI
  6. local gui = Instance.new("ScreenGui")
  7. gui.Name = "JN HH Gaming"
  8. gui.Parent = game.Players.LocalPlayer.PlayerGui
  9.  
  10. local frame = Instance.new("Frame")
  11. frame.Name = "SpeedFrame"
  12. frame.Size = UDim2.new(0, 200, 0, 100)
  13. frame.Position = UDim2.new(0, 10, 0, 10)
  14. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  15. frame.BackgroundTransparency = 0.5
  16. frame.Parent = gui
  17.  
  18. local speedLabel = Instance.new("TextLabel")
  19. speedLabel.Name = "SpeedLabel"
  20. speedLabel.Size = UDim2.new(0, 180, 0, 30)
  21. speedLabel.Position = UDim2.new(0, 10, 0, 10)
  22. speedLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  23. speedLabel.TextColor3 = Color3.new(1, 1, 1)
  24. speedLabel.TextSize = 18
  25. speedLabel.Text = "Speed: " .. speedValue
  26. speedLabel.Parent = frame
  27.  
  28. local decreaseButton = Instance.new("TextButton")
  29. decreaseButton.Name = "DecreaseButton"
  30. decreaseButton.Size = UDim2.new(0, 50, 0, 30)
  31. decreaseButton.Position = UDim2.new(0, 10, 0, 50)
  32. decreaseButton.BackgroundColor3 = Color3.new(0, 1, 0)
  33. decreaseButton.TextColor3 = Color3.new(1, 1, 1)
  34. decreaseButton.TextSize = 14
  35. decreaseButton.Text = "-"
  36. decreaseButton.Parent = frame
  37.  
  38. local increaseButton = Instance.new("TextButton")
  39. increaseButton.Name = "IncreaseButton"
  40. increaseButton.Size = UDim2.new(0, 50, 0, 30)
  41. increaseButton.Position = UDim2.new(0, 140, 0, 50)
  42. increaseButton.BackgroundColor3 = Color3.new(0, 1, 0)
  43. increaseButton.TextColor3 = Color3.new(1, 1, 1)
  44. increaseButton.TextSize = 14
  45. increaseButton.Text = "+"
  46. increaseButton.Parent = frame
  47.  
  48. -- Functions
  49. local function updateSpeedLabel()
  50.     speedLabel.Text = "Speed: " .. speedValue
  51. end
  52.  
  53. local function decreaseSpeed()
  54.     if speedValue > 1 then
  55.         speedValue = speedValue - 1
  56.         updateSpeedLabel()
  57.     end
  58. end
  59.  
  60. local function increaseSpeed()
  61.     speedValue = speedValue + 1
  62.     updateSpeedLabel()
  63. end
  64.  
  65. local function onDecreaseButtonClicked()
  66.     decreaseSpeed()
  67. end
  68.  
  69. local function onIncreaseButtonClicked()
  70.     increaseSpeed()
  71. end
  72.  
  73. -- Event connections
  74. decreaseButton.MouseButton1Click:Connect(onDecreaseButtonClicked)
  75. increaseButton.MouseButton1Click:Connect(onIncreaseButtonClicked)
  76.  
  77. -- Main loop
  78. while true do
  79.     -- Modify the speed of the character (you need to replace this with the appropriate code for your specific game)
  80.     if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  81.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speedValue
  82.     end
  83.     wait(0.1) -- Adjust the wait time as desired
  84. end
  85.  
Advertisement
Comments
  • prashant0695
    1 year
    # text 0.30 KB | 1 0
    1. You can set the frame height by adding the CSS value 'height:100px;' for example:
    2. <iframe src="https://pastebin.com/embed_iframe/wqJtLb3e" style="border:none;width:100%"></iframe>
    3. Enable dark theme:
    4. <iframe src="https://pastebin.com/embed_iframe/wqJtLb3e?theme=dark" style="border:none;width:100%"></iframe>
  • 404Coder
    1 year
    # text 0.02 KB | 0 0
    1. thx for the info
Add Comment
Please, Sign In to add comment
Advertisement