So I'm currently am working on a Rank system that runs off a Level system, and I have that already made, but I'm trying to make it where when a player joins another team the Rank changes to that team's equivalent of the rank. I tried using GetPropertChangedSignal but had no luck, and I got an error. (The resulting error will be given soon.) I understand the error but I just don't know any other way to detect a change.
GetPropertChangedSignal is not a valid member of Player "Players.vincentthecat1"(Does not appear anymore, but the code still does not work.)
--//USRankTeamChange\\--
game.Players.PlayerAdded:Connect(function(player)
player:GetPropertyChangedSignal("TeamColor"):Connect(function() ---Wont Work.
player:WaitForChild("leaderstats").Rank.Value = USRankHandler.Rank(player:WaitForChild("leaderstats2").Level.Value)
end)
end)
Is something like this simply not possible, or is it, and I am just using the GetPropertyChangedSignal wrong?

3 comments
I still get the error. When copying the code I accidentally deleted the "y".
Wait no it was an error in the code it's self, but It still does not change, but the error is gone.
Wait it does work sorry.