https://gyazo.com/4fc9934b05615bbd05d1f13d041c6edf.png
https://gyazo.com/26897e5fad60b7d871ec6ee906ed18f6.png
prints it only once, why?
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.
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.
team.Name == “police” works, thanks. I can’t believe I was so dumb to not try it!