the error says
Workspace.PlayerJoin.JoinCam:5 attempt to index upvalue 'player' (a nil value)
**heres my script : **
local camera = game.Workspace.CurrentCamera local Player = game:GetService("Players").LocalPlayer local found = Player.Character if found then print'character has loaded' else while not Player.Character do wait() end end game.Players.PlayerAdded:connect(function(plr) Player.Character.Humanoid.WalkSpeed = 0 wait(5) camera.CameraType = "Scriptable" camera.CoordinateFrame = CFrame.new(84.8, 5, -17.2) Player.PlayerGui.Character.Frame.Visible = true wait() end)
Because the current camera can only be accessed from local scripts.
Also, you forgot brackets around the 'character has loaded' :3