Help with a simple issue please

https://gyazo.com/4fc9934b05615bbd05d1f13d041c6edf.png

https://gyazo.com/26897e5fad60b7d871ec6ee906ed18f6.png

prints it only once, why?

Try print(#team). There might be weird spaces/other characters making it not be police but still looking like it.

1 Like


https://gyazo.com/b5c0abb0f0a777876e6b37cbbd7a7cd3

I don’t think a team is a value…

That’s your issue. team is a userdata, so of course it’s not the same as the string “police”. Try if team.Name == "police" instead.

3 Likes

team.Name == “police” works, thanks. I can’t believe I was so dumb to not try it!

1 Like