Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui = Instance.new("ScreenGui")
- gui.Name = "SpeedGUI"
- gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 150, 0, 50)
- frame.Position = UDim2.new(0, 10, 0, 10)
- frame.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
- frame.Parent = gui
- local speedLabel = Instance.new("TextLabel")
- speedLabel.Size = UDim2.new(1, -10, 0, 20)
- speedLabel.Position = UDim2.new(0, 5, 0, 5)
- speedLabel.Text = "Walkspeed: " .. tostring(game.Players.LocalPlayer.Character.Humanoid.WalkSpeed)
- speedLabel.TextColor3 = Color3.new(1, 1, 1)
- speedLabel.BackgroundTransparency = 1
- speedLabel.Parent = frame
- local increaseButton = Instance.new("TextButton")
- increaseButton.Size = UDim2.new(0.4, -5, 0, 20)
- increaseButton.Position = UDim2.new(0, 5, 0, 30)
- increaseButton.Text = "+"
- increaseButton.Parent = frame
- local decreaseButton = Instance.new("TextButton")
- decreaseButton.Size = UDim2.new(0.4, -5, 0, 20)
- decreaseButton.Position = UDim2.new(0.6, 0, 0, 30)
- decreaseButton.Text = "-"
- decreaseButton.Parent = frame
- increaseButton.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 5
- speedLabel.Text = "Walkspeed: " .. tostring(game.Players.LocalPlayer.Character.Humanoid.WalkSpeed)
- end)
- decreaseButton.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed - 5
- speedLabel.Text = "Walkspeed: " .. tostring(game.Players.LocalPlayer.Character.Humanoid.WalkSpeed)
- end)
Advertisement
Add Comment
Please, Sign In to add comment