I have no clue if I'm even starting this in the right direction. Here's the script I'm trying and more information at bottom.
SP = script.Parent
SP.Touched:connect(function(hit)
local info = Parent.Parent.Players.LocalPlayer.TeamColor
--local team =
if hit.info == "Br. yellowish green" then
hit.info = "Bright yellow"
end
end)
It was in a Local script, But turns out a touch interest would not form so this is in a Script. Yes, I know that I cannot use LocalPlayer for regular scripts. What I mean to do is check the players team, if they are in a certain team, then change their team to a different one. But, say you finished the obby, the script wouldn't work backwards or to change your team at all. Please help, At the least push me in the right direction? Is there a way to look for the name of the players team so I don't have a max of 64 spawns instead of looking for team color with a max of 64 spawns?

1 comment
Thanks, my bad. Typos for everyone! Half off!