I'm trying to set everyone to OccludeAll everytime they respawn. It's not working. Any help appreciated
game.Players.PlayerAdded:connect(function(player) game.Players.player:GetCharacterFromPlayer("Humanoid").NameOcclusion = Enum.NameOcclusion.OccludeAll end)
Your problem is on Line 2. You attempt to access game.Players.player
, which searches the Players for someone named "player" rather than using the parameter and checking that.
You don't need to search for the player, as it is already set in the parameter. Change line 2 to this:
player.Character.Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll end)
Make a loop
Also you never executed that function, it is just sitting there