ok so. the title is vague but it is an actual question of mine, team StarterGUIs. so far i have this code but it dont work gud, so naturally i came here, here is the code...
function teamFromColor(color) for _,t in pairs(game:GetService("Teams"):GetChildren()) do if t.TeamColor==color then return t end end return nil end function onSpawned(plr) local tools = teamFromColor(plr.TeamColor):GetChildren() for _,c in pairs(tools) do c:Clone().Parent = plr.PlayerGui end end function onChanged(prop,plr) if prop=="Character" then onSpawned(plr) end end function onAdded(plr) plr.Changed:connect(function(prop) onChanged(prop,plr) end) end game.Players.PlayerAdded:connect(onAdded)
any ideas?
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?