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

My script s wrong help,I AM TRYING TO GIVE THE KILLER (KNIGHTMARE) A weopen?

Asked by 9 years ago
function teamFromColor(color) 
for _,t in pairs(game:GetService("Teams"):GetChildren()) do 
if t.TeamColor==color then return "Crescendo, The Soul Stealer"  end 
end 
return nil 
end 

function onSpawned(plr) 
local tools = teamFromColor(plr.TeamColor):GetChildren() 
for _,c in pairs(tools) do 
c:Clone(Crescendo, The Soul Stealer).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) 
1
Please put this into a Code Block. SlickPwner 534 — 9y
0
how? iiThunderStrike24 0 — 9y
0
nvm ik how iiThunderStrike24 0 — 9y

Answer this question