Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local velo = Instance.new("BodyVelocity", game.Players.LocalPlayer)
- velo.MaxForce = Vector3.new(0,math.huge,0)
- velo.Velocity = Vector3.new(0,60,0)
- game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
- if key == "e" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- velo.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- elseif key == "q" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- velo.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- velo.Velocity = Vector3.new(0,0.001,0)
- end
- end)
- game.Players.LocalPlayer:GetMouse().KeyUp:Connect(function(key)
- if key == "e" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
- velo.Parent = game.Players.LocalPlayer
- elseif key == "q" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
- velo.Parent = game.Players.LocalPlayer
- velo.Velocity = Vector3.new(0,60,0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment