When a player, joins, this localscript is put into their backpack
cam = game.Workspace.CurrentCamera cam.CameraSubject = game.Workspace.Focus cam.CameraType = "Attach"
This works, but how would I make it so you can't move the camera up, down, left, right and you cant zoom in or out? Attach is the closest to that. Thanks for all help :)
local cam = game.Workspace.CurrentCamera cam.CameraType = "Scriptable" cam.CFrame = CFrame.new(pos1,pos2) -- Pos1 is the position of the camera (Where do you want it to be) -- Pos2 is the position of where the camera is looking at
Try this. =]
local cam = game.Workspace.CurrentCamera cam.CameraSubject = game.Workspace.Focus cam.CameraType = "Attach" wait(.1) cam.CameraType = "Scriptable" cam.FieldOfView = 70