function teamFromColor(color) 
for _,t in pairs(game:GetService("Nightmare"):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("Fang Of Anansi").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) 

5 comments

2

Sir, what's the output error? And I might be wrong, but I have seen a person reach a -20 reputation and had their account suspended, please read the blog article linked in the ask a question section of the site to review how to post a good question and/or answer.

0

well how bout someone helps me out here and how bout you stop deducting points

0

and whats wrong with this it has Lua and its a question and its not a spam

0

OK ill do that