I want to set the player's camera to a part when joining, but the script isn't working.
start = "while " local p = "game.Players.LocalPlayer" cam1 = "true " local cam = "Camera" local part = game.Workspace.Tram.Camera cam = cam.."CameraType" string = "do " cam = cam.."Part" loadstring(start..cam1..string.."end")()
As TheAlphaStigma mentioned, client-side loadstring is now disabled. Additionally, this is a really bad way of doing things.
Just add a LocalScript to StarterGui:
local camera = game.Workspace.CurrentCamera local part = game.Workspace.Tram.Camera -- part to focus on camera.CameraSubject = part