I tried this but it does not work.
local changedTeam = BrickColor.new("Really red"); local part = script.Parent; part.Touched:connect(function(hit) local plr = game.Players:GetPlayerFromCharacter(hit.Parent); if plr then plr.TeamColor = changedTeam; end end)
Closed as Non-Descriptive by JesseSong
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?