TermColor = game.Workspace.TermPart
team1 = TermColor.Defenders
team2 = TermColor.Raiders
player = game.Players.LocalPlayer
script.Parent.Touched:connect(function(hit))
if not hit.Parent:findFirstChild("Humanoid") then return end
if hit.Parent:findFirstChild("Humanoid") then
TeamColor.BrickColor = BrickColor.new(player.TeamColor)
end
end
)end
TermColor.Touched:connect(changecolor)
it's supposed to change the color of the part to the color of whatever team the player is on
eg: if a red team member stands on it, it turns red. if a blue team member stands on it, it turns blue |