How do I make a fly script using the camera?

I want to know how to make a Fly Script using the camera since I cant use bodymovers to stop hackers from using them against me if someone could help me make a fly script that would be great!

This is how far I GOT

local Players = game:GetService("Players")

local LocalPlayer = Players.LocalPlayer

local Camera = workspace.Camera

local UserInputService = game:GetService("UserInputService")

local WNumber = 10

UserInputService.InputBegan:Connect(function(InputBegan)

if InputBegan.KeyCode == Enum.KeyCode.W then

Camera.CFrame = Camera.CFrame.LookVector + WNumber

end

end)

Try workspace.CurrentCamera on your workspace.Camera

dont know much about camera thats why I aksed

1 Like