Advertisement
Vzurxy

Untitled

Aug 3rd, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. local WalkspeedChanger = Instance.new("ScreenGui")
  2. local OneFrame = Instance.new("Frame")
  3. local Walkspeed = Instance.new("TextBox")
  4. local Hotkey = Instance.new("TextBox")
  5. local Exit = Instance.new("TextButton")
  6. local Run = Instance.new("TextButton")
  7.  
  8. WalkspeedChanger.Name = "WalkspeedChanger"
  9. WalkspeedChanger.Parent = game.CoreGui
  10.  
  11. OneFrame.Name = "OneFrame"
  12. OneFrame.Parent = WalkspeedChanger
  13. OneFrame.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  14. OneFrame.BorderSizePixel = 0
  15. OneFrame.Position = UDim2.new(0.0237203501, 0, 0.708542705, 0)
  16. OneFrame.Size = UDim2.new(0, 183, 0, 102)
  17.  
  18. -- Draggable Source
  19. OneFrame.Active = true
  20. OneFrame.Draggable = true
  21. -- End of Source
  22.  
  23.  
  24. Walkspeed.Name = "Walkspeed"
  25. Walkspeed.Parent = OneFrame
  26. Walkspeed.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  27. Walkspeed.BorderSizePixel = 0
  28. Walkspeed.Position = UDim2.new(0.251366109, 0, 0.166666687, 0)
  29. Walkspeed.Size = UDim2.new(0, 90, 0, 29)
  30. Walkspeed.Font = Enum.Font.SourceSans
  31. Walkspeed.Text = "Walkspeed"
  32. Walkspeed.TextColor3 = Color3.new(1, 1, 1)
  33. Walkspeed.TextSize = 14
  34.  
  35. Hotkey.Name = "Hotkey"
  36. Hotkey.Parent = OneFrame
  37. Hotkey.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  38. Hotkey.BorderSizePixel = 0
  39. Hotkey.Position = UDim2.new(0.251366109, 0, 0.617647052, 0)
  40. Hotkey.Size = UDim2.new(0, 90, 0, 29)
  41. Hotkey.Font = Enum.Font.SourceSans
  42. Hotkey.PlaceholderColor3 = Color3.new(1, 1, 1)
  43. Hotkey.Text = "Hotkey"
  44. Hotkey.TextColor3 = Color3.new(1, 1, 1)
  45. Hotkey.TextSize = 14
  46.  
  47. Exit.Name = "Exit"
  48. Exit.Parent = OneFrame
  49. Exit.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  50. Exit.BorderSizePixel = 0
  51. Exit.Size = UDim2.new(0, 18, 0, 17)
  52. Exit.Font = Enum.Font.SourceSans
  53. Exit.Text = "X"
  54. Exit.TextColor3 = Color3.new(0.713726, 0, 0)
  55. Exit.TextSize = 14
  56.  
  57. Exit.MouseButton1Down:connect(function()
  58. WalkspeedChanger:Destroy()
  59. game.StarterGui:SetCore("SendNotification", {
  60. Title = "Thanks";
  61. Text = "Thank you for using my Gui! BFN#1711";
  62. })
  63. end)
  64.  
  65. Run.Name = "Run"
  66. Run.Parent = OneFrame
  67. Run.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  68. Run.BorderSizePixel = 0
  69. Run.Position = UDim2.new(0.792349756, 0, 0, 0)
  70. Run.Size = UDim2.new(0, 38, 0, 18)
  71. Run.Font = Enum.Font.SourceSans
  72. Run.Text = "Run"
  73. Run.TextColor3 = Color3.new(1, 1, 1)
  74. Run.TextSize = 14
  75. Run.MouseButton1Down:connect(function()
  76.  
  77. local shiftspeed = Walkspeed.Text
  78. local mouse = game.Players.LocalPlayer:GetMouse()
  79. local running = false
  80.  
  81.  
  82. mouse.KeyDown:connect(function (key)
  83. key = string.lower(key)
  84. if string.byte(key) == Hotkey.Text then
  85. running = true
  86. local keyConnection = mouse.KeyUp:connect(function (key)
  87. if string.byte(key) == Hotkey.Text then
  88. running = false
  89. end
  90. end)
  91. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = shiftspeed
  92. repeat wait () until running == false
  93. keyConnection:disconnect()
  94. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  95. end
  96. end)
  97. end)
  98.  
  99. wait(0.02)
  100. OneFrame:TweenPosition(UDim2.new(0.309, 0, 0.183, 0), "Out", "Bounce", 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement