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

camera manipulation bug? how do i fix this

Asked by 3 years ago

i am making a round based game in roblox studio where at the end of the intermission it loads in a random map and it's supposed to change the Camera so its facing the map... except it doesn't face the map. there's no errors in the output here's the camera script

workspace.Camera.CameraType = Enum.CameraType.Scriptable
workspace.Camera.CFrame = randomMap.MapCamera.CFrame

the script isn't a local script how do i make it so that everyone's camera faces the map?

1 answer

Log in to vote
0
Answered by 3 years ago

It needs to be a local script for the code to work because Cameras are unique to each player. This can be solved with :FireAllClients() and a remote event.

Ad

Answer this question