I have developed a camera-changing system with 3 parts. A green part once hit will update all player’s cameras to the CFrame of the blue part. The red part once hit will revert their cameras back to their respective players.
The green and red parts are in this model
The value is the objectvalue to the blue part for the camera variable
The localscript contains functions that will be triggered by remote-events
The problem is in the local script, where the green/red parts will be touched, but it won’t fire the remote events and no errors show up.
wait(0.2)
local cam=workspace.CurrentCamera
local player=game.Players.LocalPlayer
local Cam = script.Parent.CameraPart
Is the local script is within the model in workspace? If so then it will not run at all, so move it to where it will run in these players:
A LocalScript will only run Lua code if it is a descendant of one of the following objects:
A Player’s Backpack, such as a child of a Tool
A Player’s character model
A Player’s PlayerGui
A Player’s PlayerScripts.
The ReplicatedFirst service
In my perspective the model with the local script inside is probably inside of Workspace. The local script doesn’t run in Workspace. You can try moving the local script as the post above, says on where local scripts run at.
You should be using the local script that changes the camera in StarterGui, and not inside of the model. Use RemoteEvents to fire it between the server and client.