|
| 25 Jul 2014 03:59 PM |
i want the script too like copy like 1-15 zombies and put it in workspace for every 1 person. Halp please?
function plyrsazomb () nums = math.random(1,15) p = game.Players.NumPlayers zombie = game.Lighting.Zombie:Clone() if p = 1 then repeat nums zombie.parent = Game.Workspace end end elseif p = 2 then repeat nums + nums zombie.parent = Game.Workspace end end
while true do plyrsazomb () end
|
|
|
| Report Abuse |
|
|
tery215
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 3879 |
|
|
| 25 Jul 2014 04:02 PM |
well, one
you used repeat end instead of for .. do .. end and then you made a loop with no waits and didn't capitalize .Parent |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2014 04:11 PM |
function plyrsazomb() nums = math.random(1,15) p = game.Players.NumPlayers zombie = game.Lighting.Zombie:Clone()
for i=1,nums*p do zombie:clone().Parent = workspace end
end
plyrsazomb()
|
|
|
| Report Abuse |
|
|