generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Random Number of Zoms

Previous Thread :: Next Thread 
tweetytime is not online. tweetytime
Joined: 19 Apr 2008
Total Posts: 397
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 is not online. 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
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image