Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Weird fly script lol
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- wait()
- if not char:FindFirstChild(script.Parent) then
- local s = script.Parent
- s.Disabled = false
- s.Parent = char
- end
- end)
- end)
- local UserInputService = game:GetService("UserInputService")
- local fly = false
- local plr = game.Players.LocalPlayer
- UserInputService.InputBegan:Connect(function(input)
- if not fly then
- fly = true
- if input.KeyCode == Enum.KeyCode.F then
- while fly do
- plr.Character.Humanoid.Sit = true
- plr.Character.Head.Velocity = workspace.CurrentCamera.CFrame.LookVector*60 + Vector3.new(0,10,0)
- wait()
- end
- end
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.F then
- fly = false
- plr.Character.Humanoid.Sit = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement