RUDEAlex

silverhubspeed

May 19th, 2022 (edited)
1,010
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.64 KB | None | 0 0
  1. --Silver Hub Widget (WS)
  2.  
  3. -- Instances:
  4.  
  5. local WalkspeedUI = Instance.new("ScreenGui")
  6. local WalkspeedFrame = Instance.new("Frame")
  7. local MainBar1 = Instance.new("Frame")
  8. local MainBar2 = Instance.new("Frame")
  9. local InputBox = Instance.new("TextBox")
  10. local UICorner = Instance.new("UICorner")
  11. local jumppowerbutton = Instance.new("TextButton")
  12. local UICorner_2 = Instance.new("UICorner")
  13. local walkspeedbutton = Instance.new("TextButton")
  14. local UICorner_3 = Instance.new("UICorner")
  15. local exitbutton = Instance.new("TextButton")
  16.  
  17. --Properties:
  18.  
  19. WalkspeedUI.Name = "WalkspeedUI"
  20. WalkspeedUI.Parent = game.CoreGui
  21. WalkspeedUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. WalkspeedFrame.Name = "WalkspeedFrame"
  24. WalkspeedFrame.Parent = WalkspeedUI
  25. WalkspeedFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  26. WalkspeedFrame.BorderColor3 = Color3.fromRGB(15, 15, 15)
  27. WalkspeedFrame.Position = UDim2.new(0.381424159, 0, 0.346964061, 0)
  28. WalkspeedFrame.Size = UDim2.new(0, 383, 0, 246)
  29. WalkspeedFrame.Selectable = true
  30. WalkspeedFrame.Active = true
  31. WalkspeedFrame.Draggable = true
  32.  
  33. MainBar1.Name = "MainBar1"
  34. MainBar1.Parent = WalkspeedFrame
  35. MainBar1.BackgroundColor3 = Color3.fromRGB(47, 0, 148)
  36. MainBar1.BorderColor3 = Color3.fromRGB(47, 0, 148)
  37. MainBar1.Position = UDim2.new(0, 0, 0.0369992144, 0)
  38. MainBar1.Size = UDim2.new(0, 383, 0, 6)
  39.  
  40. MainBar2.Name = "MainBar2"
  41. MainBar2.Parent = WalkspeedFrame
  42. MainBar2.BackgroundColor3 = Color3.fromRGB(68, 0, 204)
  43. MainBar2.BorderColor3 = Color3.fromRGB(68, 0, 204)
  44. MainBar2.Size = UDim2.new(0, 383, 0, 10)
  45.  
  46. InputBox.Name = "InputBox"
  47. InputBox.Parent = WalkspeedFrame
  48. InputBox.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  49. InputBox.BorderColor3 = Color3.fromRGB(18, 18, 18)
  50. InputBox.Position = UDim2.new(0.0887728482, 0, 0.239837408, 0)
  51. InputBox.Size = UDim2.new(0, 315, 0, 33)
  52. InputBox.Font = Enum.Font.SourceSansLight
  53. InputBox.PlaceholderText = "input value here"
  54. InputBox.Text = ""
  55. InputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. InputBox.TextSize = 30.000
  57.  
  58. UICorner.Parent = InputBox
  59.  
  60. jumppowerbutton.Name = "jumppowerbutton"
  61. jumppowerbutton.Parent = WalkspeedFrame
  62. jumppowerbutton.BackgroundColor3 = Color3.fromRGB(47, 0, 148)
  63. jumppowerbutton.BorderColor3 = Color3.fromRGB(47, 0, 148)
  64. jumppowerbutton.Position = UDim2.new(0.271540463, 0, 0.447154522, 0)
  65. jumppowerbutton.Size = UDim2.new(0, 175, 0, 46)
  66. jumppowerbutton.Font = Enum.Font.SourceSansLight
  67. jumppowerbutton.Text = "Change Jump Power"
  68. jumppowerbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. jumppowerbutton.TextSize = 21.000
  70.  
  71. UICorner_2.Parent = jumppowerbutton
  72.  
  73. walkspeedbutton.Name = "walkspeedbutton"
  74. walkspeedbutton.Parent = WalkspeedFrame
  75. walkspeedbutton.BackgroundColor3 = Color3.fromRGB(47, 0, 148)
  76. walkspeedbutton.BorderColor3 = Color3.fromRGB(47, 0, 148)
  77. walkspeedbutton.Position = UDim2.new(0.271540463, 0, 0.707317114, 0)
  78. walkspeedbutton.Size = UDim2.new(0, 175, 0, 46)
  79. walkspeedbutton.Font = Enum.Font.SourceSansLight
  80. walkspeedbutton.Text = "Change Walk Speed"
  81. walkspeedbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. walkspeedbutton.TextSize = 21.000
  83.  
  84. UICorner_3.Parent = walkspeedbutton
  85.  
  86. exitbutton.Name = "exitbutton"
  87. exitbutton.Parent = WalkspeedFrame
  88. exitbutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  89. exitbutton.BackgroundTransparency = 1.000
  90. exitbutton.Position = UDim2.new(0.942558765, 0, 0.0613894574, 0)
  91. exitbutton.Size = UDim2.new(0, 22, 0, 32)
  92. exitbutton.Font = Enum.Font.SourceSansLight
  93. exitbutton.Text = "X"
  94. exitbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  95. exitbutton.TextSize = 27.000
  96.  
  97.  
  98. -- functions
  99.  
  100. exitbutton.MouseButton1Down:Connect(function()
  101.     WalkspeedUI:Destroy()
  102. end)
  103.  
  104.  
  105. walkspeedbutton.MouseButton1Down:Connect(function()
  106.     local sound = Instance.new("Sound")
  107.     sound.SoundId = 177266782
  108.     sound:Play()
  109.     wait(0.14)
  110.     sound:Destroy()
  111.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = InputBox.Text
  112.     if InputBox.Text == "" then
  113.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  114.     end
  115. end)
  116.  
  117.  
  118. jumppowerbutton.MouseButton1Down:Connect(function()
  119.     local sound = Instance.new("Sound")
  120.     sound.SoundId = 177266782
  121.     sound:Play()
  122.     wait(0.14)
  123.     sound:Destroy()
  124.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = InputBox.Text
  125.     if InputBox.Text == " " then
  126.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  127.     end
  128. end)
  129.  
  130.  
  131.  
  132. local uis = game:GetService("UserInputService")
  133. local rp = game:GetService("ReplicatedStorage")
  134.  
  135. uis.InputBegan:Connect(function(input)
  136.     if input.KeyCode == Enum.KeyCode.RightShift then
  137.         if WalkspeedFrame.Visible == false then
  138.             WalkspeedFrame.Visible = true else
  139.             WalkspeedFrame.Visible = false
  140.         end
  141.         end
  142.  
  143.     end)
Add Comment
Please, Sign In to add comment