Advertisement
ForlornW46

Universal speed gui

Nov 11th, 2022 (edited)
5,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  2.  
  3. local X = Material.Load({
  4. Title = "Forlorn Hub",
  5. Style = 1,
  6. SizeX = 500,
  7. SizeY = 350,
  8. Theme = "Dark",
  9. })
  10.  
  11. local Y = X.New({
  12. Title = "Universal Boost Changer"
  13. })
  14.  
  15. local C = Y.Slider({
  16. Text = "Boost Slider [LeftShift]",
  17. Callback = function(Value)
  18. local UserInputService = game:GetService("UserInputService")
  19. local GuiService = game:GetService("GuiService")
  20. local LocalPlayer = game:GetService("Players").LocalPlayer
  21.  
  22. local intens = (Value)
  23. game:GetService("RunService").Stepped:Connect(function()
  24. if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
  25. local Humanoid = workspace.CurrentCamera.CameraSubject;
  26. if Humanoid:IsA("Humanoid") then
  27. Humanoid.SeatPart:ApplyImpulse(Humanoid.SeatPart.CFrame.LookVector * Vector3.new(intens, intens, intens))
  28. elseif Humanoid:IsA("BasePart") then
  29. Humanoid:ApplyImpulse(Humanoid.CFrame.LookVector * Vector3.new(intens, intens, intens))
  30. end
  31. end
  32. end)
  33. end,
  34. Min = 0,
  35. Max = 100,
  36. Def = 0
  37. })
  38.  
  39. local C = Y.Slider({
  40. Text = "Boost Slider [W]",
  41. Callback = function(Value)
  42. local UserInputService = game:GetService("UserInputService")
  43. local GuiService = game:GetService("GuiService")
  44. local LocalPlayer = game:GetService("Players").LocalPlayer
  45.  
  46. local intens = (Value)
  47. game:GetService("RunService").Stepped:Connect(function()
  48. if UserInputService:IsKeyDown(Enum.KeyCode.W) then
  49. local Humanoid = workspace.CurrentCamera.CameraSubject;
  50. if Humanoid:IsA("Humanoid") then
  51. Humanoid.SeatPart:ApplyImpulse(Humanoid.SeatPart.CFrame.LookVector * Vector3.new(intens, intens, intens))
  52. elseif Humanoid:IsA("BasePart") then
  53. Humanoid:ApplyImpulse(Humanoid.CFrame.LookVector * Vector3.new(intens, intens, intens))
  54. end
  55. end
  56. end)
  57. end,
  58. Min = 0,
  59. Max = 100,
  60. Def = 0
  61. })
  62.  
  63. local C = Y.Slider({
  64. Text = "Boost Slider BackWards [S]",
  65. Callback = function(Value)
  66. local UserInputService = game:GetService("UserInputService")
  67. local GuiService = game:GetService("GuiService")
  68. local LocalPlayer = game:GetService("Players").LocalPlayer
  69.  
  70. local intens = (Value)
  71. game:GetService("RunService").Stepped:Connect(function()
  72. if UserInputService:IsKeyDown(Enum.KeyCode.S) then
  73. local Humanoid = workspace.CurrentCamera.CameraSubject;
  74. if Humanoid:IsA("Humanoid") then
  75. Humanoid.SeatPart:ApplyImpulse(Humanoid.SeatPart.CFrame.LookVector * Vector3.new(intens, intens, intens))
  76. elseif Humanoid:IsA("BasePart") then
  77. Humanoid:ApplyImpulse(Humanoid.CFrame.LookVector * Vector3.new(intens, intens, intens))
  78. end
  79. end
  80. end)
  81. end,
  82. Min = -100,
  83. Max = 1,
  84. Def = -20
  85. })
  86.  
  87. local U = Y.Button({
  88. Text = "WIP [A Little OP]"
  89. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement