#RobloxStudioTutorials
---- ★ Songs ★ ----
Intro Song Link: chill anthem - BROCKBEATS: • chill anthem
Outro Song Link: Sweetest - Murat Uslu: (The song got deleted for some reason so here is the link to his youtube channel): / @muratuslu4013
Background Music: LuKremBo - boba tea: • lukrembo - boba tea
---- ★ Friend's Game Link! ★ ----
https://web.roblox.com/games/56477165...
---- ★ Profile Link! ★ ----
https://web.roblox.com/users/97907289...
---- ★ Script ★ ----
----- SCRIPT WAS MADE BY @armyboy1133 ON YOUTUBE
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.Backpack
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)