Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- By:ArfiAkbar
- -- Version: 1.1
- -- Instances:
- local Main = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- --Properties:
- Main.Name = "Main"
- Main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Frame.Parent = Main
- Frame.BackgroundColor3 = Color3.new(1, 0, 1)
- Frame.Position = UDim2.new(0, 0, 0.718023241, 0)
- Frame.Size = UDim2.new(0, 226, 0, 200)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0, 1, 0)
- TextLabel.Position = UDim2.new(0, 0, -0.194999993, 0)
- TextLabel.Size = UDim2.new(0, 226, 0, 39)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "TheStreet"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextSize = 14
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.Position = UDim2.new(0.143239245, 0, 0.0869185925, 0)
- TextButton.Size = UDim2.new(0, 162, 0, 34)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Speed [q]"
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextSize = 14
- TextButton.MouseButton1Down:connect(function()
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local hum = char:FindFirstChild("HumanoidRootPart")
- local speed = 3
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- loop = true
- while loop do
- hum.CFrame = hum.CFrame + hum.CFrame.lookVector * speed
- wait()
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "q" then
- loop = false
- end
- end)
- end)
Add Comment
Please, Sign In to add comment