Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local WalkspeedChanger = Instance.new("ScreenGui")
- local OneFrame = Instance.new("Frame")
- local Walkspeed = Instance.new("TextBox")
- local Hotkey = Instance.new("TextBox")
- local Exit = Instance.new("TextButton")
- local Run = Instance.new("TextButton")
- WalkspeedChanger.Name = "WalkspeedChanger"
- WalkspeedChanger.Parent = game.CoreGui
- OneFrame.Name = "OneFrame"
- OneFrame.Parent = WalkspeedChanger
- OneFrame.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- OneFrame.BorderSizePixel = 0
- OneFrame.Position = UDim2.new(0.0237203501, 0, 0.708542705, 0)
- OneFrame.Size = UDim2.new(0, 183, 0, 102)
- -- Draggable Source
- OneFrame.Active = true
- OneFrame.Draggable = true
- -- End of Source
- Walkspeed.Name = "Walkspeed"
- Walkspeed.Parent = OneFrame
- Walkspeed.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Walkspeed.BorderSizePixel = 0
- Walkspeed.Position = UDim2.new(0.251366109, 0, 0.166666687, 0)
- Walkspeed.Size = UDim2.new(0, 90, 0, 29)
- Walkspeed.Font = Enum.Font.SourceSans
- Walkspeed.Text = "Walkspeed"
- Walkspeed.TextColor3 = Color3.new(1, 1, 1)
- Walkspeed.TextSize = 14
- Hotkey.Name = "Hotkey"
- Hotkey.Parent = OneFrame
- Hotkey.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Hotkey.BorderSizePixel = 0
- Hotkey.Position = UDim2.new(0.251366109, 0, 0.617647052, 0)
- Hotkey.Size = UDim2.new(0, 90, 0, 29)
- Hotkey.Font = Enum.Font.SourceSans
- Hotkey.PlaceholderColor3 = Color3.new(1, 1, 1)
- Hotkey.Text = "Hotkey"
- Hotkey.TextColor3 = Color3.new(1, 1, 1)
- Hotkey.TextSize = 14
- Exit.Name = "Exit"
- Exit.Parent = OneFrame
- Exit.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- Exit.BorderSizePixel = 0
- Exit.Size = UDim2.new(0, 18, 0, 17)
- Exit.Font = Enum.Font.SourceSans
- Exit.Text = "X"
- Exit.TextColor3 = Color3.new(0.713726, 0, 0)
- Exit.TextSize = 14
- Exit.MouseButton1Down:connect(function()
- WalkspeedChanger:Destroy()
- game.StarterGui:SetCore("SendNotification", {
- Title = "Thanks";
- Text = "Thank you for using my Gui! BFN#1711";
- })
- end)
- Run.Name = "Run"
- Run.Parent = OneFrame
- Run.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- Run.BorderSizePixel = 0
- Run.Position = UDim2.new(0.792349756, 0, 0, 0)
- Run.Size = UDim2.new(0, 38, 0, 18)
- Run.Font = Enum.Font.SourceSans
- Run.Text = "Run"
- Run.TextColor3 = Color3.new(1, 1, 1)
- Run.TextSize = 14
- Run.MouseButton1Down:connect(function()
- local shiftspeed = Walkspeed.Text
- local mouse = game.Players.LocalPlayer:GetMouse()
- local running = false
- mouse.KeyDown:connect(function (key)
- key = string.lower(key)
- if string.byte(key) == Hotkey.Text then
- running = true
- local keyConnection = mouse.KeyUp:connect(function (key)
- if string.byte(key) == Hotkey.Text then
- running = false
- end
- end)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = shiftspeed
- repeat wait () until running == false
- keyConnection:disconnect()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end
- end)
- end)
- wait(0.02)
- OneFrame:TweenPosition(UDim2.new(0.309, 0, 0.183, 0), "Out", "Bounce", 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement