ok so. the title is vague but it is an actual question of mine, team StarterGUIs. Ex. Blue team has a GUI that says "You're on blue!" Red team has its own GUI that says "You're on red!". So far i have this code but it dont work gud, so naturally i came here, here is the code...
view source
01 function teamFromColor(color) 02 for _,t in pairs(game:GetService("Teams"):GetChildren()) do 03 if t.TeamColor==color then return t end 04 end 05 return nil 06 end 07 08 function onSpawned(plr) 09 local tools = teamFromColor(plr.TeamColor):GetChildren() 10 for _,c in pairs(tools) do 11 c:Clone().Parent = plr.PlayerGui 12 end 13 end 14 15 function onChanged(prop,plr) 16 if prop=="Character" then 17 onSpawned(plr) 18 end 19 end 20 21 function onAdded(plr) 22 plr.Changed:connect(function(prop) 23 onChanged(prop,plr) 24 end) 25 end 26 27 game.Players.PlayerAdded:connect(onAdded) any ideas?
