Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i make start packs for a game with 2 teams?

Asked by 10 years ago

I tried putting weapons in my starter pack but i it only shows up on one of the team's tools. Someone help please!

2 answers

Log in to vote
1
Answered by 10 years ago

Probably try adding a starter pack to the teams.

1
but exactly how do i do that? LordOfTheSea122 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

Click the link below for the instructions: Click Here

function onRespawn(character,player)
teamColor=player.TeamColor
for count,a in pairs(game.Teams:GetChildren()) do
if a.TeamColor=teamColor then
team=a
end
end
if team==nil then return end
weps=game.Lighting.TeamsStarterpack:findFirstChild(team.Name)
if weps==nil then return end
for count,a in pairs(weps:GetChildren()) do
weps:clone().Parent=player.Backpack
end
end
workspace.ChildAdded:connect(function(character) player=game.Players:GetPlayerFromCharacter(character) if player~=nil then onRespawn(character,player) end end)

Answer this question