First of all, you can add this line in the OnStart Function, just after Client.OnStart = function():
Pointer:Hide()
Then we will assign the freezing of the camera to the 3rd Action (the right click on the mouse)
I recommend to add this after the Action 1 and Action 2 functions:
Client.Action3 = function()
cameraFree = not cameraFree
if cameraFree then
Camera:SetModeFree()
UI.Crosshair = false
else
Camera:SetModeThirdPerson(Player)
UI.Crosshair = true
end
Pointer:Hide()
end
And just with this, you'll be able to freeze and unfreeze the camera when using the Action 3 🙂