Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Lua script for flying in Roblox games
- -- Function to enable flying
- local function enableFlying()
- game:GetService("Players").LocalPlayer.Character.Humanoid:ChangeState(8)
- end
- -- Bind a key to enable flying
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.Space then
- enableFlying()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement