Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I detect a change in "TeamColor"?

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?

1 answer

✓ Accepted answer

GetPropertyChangedSignal*

3 comments

0

I still get the error. When copying the code I accidentally deleted the "y".

0

Wait no it was an error in the code it's self, but It still does not change, but the error is gone.

0

Wait it does work sorry.

This discussion is preserved as it was. New answers, comments, and votes are closed.