I'm making a fnaf type of game so I'm using camera manipulation to keep the player in the lobby but when I wrote the code it won't work even though there are no errors, Can anyone help?

My code

local cam = workspace.CurrentCamera
local camPart = workspace:FindFirstChild("LobbyCamPart")

cam.CameraType = Enum.CameraType.Scriptable

cam.CFrame = camPart.CFrame

2 comments

0

Fixed because I tried it on server side

0

It can only be client side