SebTDZ

Local Fly

Jul 11th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. local velo = Instance.new("BodyVelocity", game.Players.LocalPlayer)
  2. velo.MaxForce = Vector3.new(0,math.huge,0)
  3. velo.Velocity = Vector3.new(0,60,0)
  4.  
  5. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  6.     if key == "e" then
  7.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  8.         velo.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  9.     elseif key == "q" then
  10.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  11.         velo.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  12.         velo.Velocity = Vector3.new(0,0.001,0)
  13.     end
  14. end)
  15.  
  16. game.Players.LocalPlayer:GetMouse().KeyUp:Connect(function(key)
  17.     if key == "e" then
  18.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  19.         velo.Parent = game.Players.LocalPlayer
  20.     elseif key == "q" then
  21.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  22.         velo.Parent = game.Players.LocalPlayer
  23.         velo.Velocity = Vector3.new(0,60,0)
  24.     end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment