Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Fly = Instance.new("BodyForce")
- local Torso = Player.Character:FindFirstChild("HumanoidRootPart")
- Fly.force = Vector3.new(0, 0, 0)
- Fly.Parent = Torso
- local function start()
- local vel = Instance.new("BodyVelocity")
- vel.velocity = Vector3.new(0, 50, 0)
- vel.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- vel.Parent = Torso
- repeat wait()
- if not Player.Character or not Player.Character:FindFirstChild("HumanoidRootPart") then break end
- Fly.force = Vector3.new(0, 7500, 0)
- Torso.CFrame = Torso.CFrame * CFrame.new(0, 0, -1)
- until not Fly or not Torso or not Player.Character or not Player.Character:FindFirstChild("HumanoidRootPart")
- end
- local function stop()
- Fly.force = Vector3.new(0, 0, 0)
- Torso.Velocity = Vector3.new(0, 0, 0)
- end
- Mouse.KeyDown:connect(function(key)
- if key == "f" then
- start()
- elseif key == "x" then
- stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement