I have been making a remake of the undead coming, since it's broken but I got a error in my script, saying attempt to index nil with 'Clone'.
Please help me...
Here's the script:
01 | function giveWeapons() |
02 | local player = game.Players:GetChildren() |
03 | if (#player> 0 ) then |
04 | for p = 1 , #player do |
05 | if (player [ p ] .TeamColor = = hum_team.TeamColor) then |
06 | weapons.Pistol.Value:Clone().Parent = player [ p ] .Backpack |
07 | end |
08 | end |
09 | end |
10 | end |
Thanks a lot, notreallysupernova