I am having a weird error related to my attribute?

So I am basically creating a tycoon game.

The part where I am having trouble is when a player touches the “Owner part” from another team they don’t die.

Instead the server pulls out this error.
Could anyone please explain to me how I should fix this and why my method didn’t work?

Thanks a lot in advance.

is teamColor a string? the parameter to getattribute needs to be a string and plr.TeamColor should be thesame type as the value of the attribute

I just noticed that I wrote teamColor instead of TeamColor haha, my bad.

Thanks for helping me lol.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.