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)

8 comments
Oh and you do player.Character when it should be plr.Character
it is a localscript
Then don't do a game.Players.PlayerAdded just do Player = game.Players.LocalPlayer or Plr = game.Players.LocalPlayer Character = Player.Character?
that won't help me though
Why not? That would allow you to access the player, and you could keep Camera = game.Workspace.CurrentCamera
I'll try it and see
Okay I fixed it to what you said but now it doesn't even set the characters camera
Make sure all the variables are spelled right, etc