For a recent commision, I’ve had to have a billboard gui display your rank in a group based on a certain team. I’ve had it detect the player’s team but once I change the team, it still thinks the player is on the team it was on before. Any Ideas?
EDIT: I’ve also tried this on some of my other team detection scripts and I’ve tried changing the team through the server. I still get the same issue.
Changed fires for objects, not properties: if the Team property changes, it will fire the Changed event for the Player, not their team. You can correct this, as some mentioned earlier up, by using GetPropertyChangedSignal(“Team”) against the player. This’ll also make it so that you’re only making the function get called when Team changes rather than anything else of the player.
Player.Team.Changed:Connect -- Changes this to the below