#attempt to index 'nil' with 'Name' help

5 messages · Page 1 of 1 (latest)

arctic hound
#

Trying to find if the player's team is "Red Team" to run an if then statement, instead getting an error.

local player = GetServPlayer.LocalPlayer

if player.Team.Name == "RedTeam" then -- ...```
reef halo
#

Just try

#
plr.Team == blahblah then
coral beacon
#

Check if your player is on that team, if it is, then check if in the server, you see the player in the team. If both are true then we can move on to the next solution

arctic hound
#

for whatever reason, it's saying that player.Team = nil, every time I try to make the script work for some reason it has the player's team as nil and I'm not sure why.