Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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))
Ad

Answer this question