Advertisement
AlphaWolf536791

SpeedGui Script

Dec 24th, 2020
2,711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.65 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local SpeedGui = Instance.new("ScreenGui")
  7. local Container = Instance.new("Frame")
  8. local SetSpeed = Instance.new("TextButton")
  9. local Speed = Instance.new("TextBox")
  10. local ResetSpeed = Instance.new("TextButton")
  11.  
  12. --Properties:
  13.  
  14. SpeedGui.Name = "SpeedGui"
  15. SpeedGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16.  
  17. Container.Name = "Container"
  18. Container.Parent = SpeedGui
  19. Container.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  20. Container.BackgroundTransparency = 0.500
  21. Container.Position = UDim2.new(0.330609202, 0, 0.758418739, 0)
  22. Container.Size = UDim2.new(0, 455, 0, 125)
  23.  
  24. SetSpeed.Name = "SetSpeed"
  25. SetSpeed.Parent = Container
  26. SetSpeed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  27. SetSpeed.BackgroundTransparency = 0.750
  28. SetSpeed.Position = UDim2.new(0.0351648368, 0, 0.119999997, 0)
  29. SetSpeed.Size = UDim2.new(0, 197, 0, 36)
  30. SetSpeed.Font = Enum.Font.SourceSans
  31. SetSpeed.Text = "Set Player Speed"
  32. SetSpeed.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. SetSpeed.TextSize = 14.000
  34.  
  35. Speed.Name = "Speed"
  36. Speed.Parent = Container
  37. Speed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  38. Speed.BackgroundTransparency = 0.750
  39. Speed.Position = UDim2.new(0.0351648368, 0, 0.527999997, 0)
  40. Speed.Size = UDim2.new(0, 424, 0, 46)
  41. Speed.Font = Enum.Font.SourceSans
  42. Speed.Text = ""
  43. Speed.TextColor3 = Color3.fromRGB(255, 255, 255)
  44. Speed.TextSize = 14.000
  45.  
  46. ResetSpeed.Name = "ResetSpeed"
  47. ResetSpeed.Parent = Container
  48. ResetSpeed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  49. ResetSpeed.BackgroundTransparency = 0.750
  50. ResetSpeed.Position = UDim2.new(0.534065962, 0, 0.119999997, 0)
  51. ResetSpeed.Size = UDim2.new(0, 197, 0, 36)
  52. ResetSpeed.Font = Enum.Font.SourceSans
  53. ResetSpeed.Text = "Reset Player Speed"
  54. ResetSpeed.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. ResetSpeed.TextSize = 14.000
  56.  
  57. -- Scripts:
  58.  
  59. local function GDSZV_fake_script() -- Container.GuiHandler
  60.     local script = Instance.new('LocalScript', Container)
  61.  
  62.     local frame = script.Parent
  63.     local player = game.Players.LocalPlayer
  64.     local character = player.Character
  65.     local humanoid = character:WaitForChild("Humanoid")
  66.    
  67.     frame.SetSpeed.MouseButton1Click:connect(function()
  68.         humanoid.WalkSpeed = tonumber(frame.Speed.Text)
  69.         NotifyUser("New WalkSpeed", "WalkSpeed has been set to: "..tostring(humanoid.WalkSpeed))
  70.     end)
  71.     frame.ResetSpeed.MouseButton1Click:connect(function()
  72.         humanoid.WalkSpeed = 16
  73.         NotifyUser("WalkSpeed Reset", "WalkSpeed has been reset to: 16")
  74.     end)
  75.    
  76.     function NotifyUser(Title, Message)
  77.         game.StarterGui:SetCore("SendNotification", {
  78.             Text = Message,
  79.             Title = Title
  80.         })
  81.     end
  82. end
  83. coroutine.wrap(GDSZV_fake_script)()
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement