My script I made works perfectly in studio, but no in-game,I know its some sort of server-client thing but I can't figure out how to fix it!
The code runs when I execute a bindable event from a script in ServerScriptService, and this script is localscript inside StarterPlayerScripts.
camera = workspace.CurrentCamera
game.ReplicatedStorage.camera.camera1.Event:Connect(function()
local target = workspace.Cameras.cam1
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0, 6.25, 0)
* CFrame.new(0, 0, 0)
end)
game.ReplicatedStorage.camera.camera3.Event:Connect(function()
local target = workspace.Cameras.cam3
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0, 6.25, 0)
* CFrame.new(0, 0, 0)
end)

2 comments
if you want todo this locally you dont need an event
I've tried not locally with the same results