Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Changing CFrame of a camera on client wont work but will on the server?

So I just tried changing the camera of a client, Mine you know the Camera in workspace

I did this in Local Script

game.Workspace.Camera.CFrame = CFrame.new(Vector3.new(555,55,0))


When I tried this the camera wasn't clearly at 555,55,0 it was more like 0,0,0

But when I tried this in the server

game.Workspace.Camera.CFrame = CFrame.new(Vector3.new(555,55,0))

it went really far away and It worked unlike the client can anyone explain this behavior?

1 answer

thats a simple fix if you want to change the camera for the client you don't use workspace.Camera you use workspace.CurrentCamera like this

game.Workspace.CurrentCamera.CFrame = CFrame.new(Vector3.new(555,55,0))

This discussion is preserved as it was. New answers, comments, and votes are closed.