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: spawn object every 1 second

Previous Thread :: Next Thread 
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
17 Jun 2013 01:07 PM
hello im working on a zombie game
and i want the model(zombie) clone every ... lets say 1 second
could anyone help me make this script?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
17 Jun 2013 01:07 PM
while wait(1) do
zombie:Clone().Parent = game.Workspace
end


Edit it to the index of the zombie model.
Report Abuse
zackeryjerrypowers is not online. zackeryjerrypowers
Joined: 01 Aug 2008
Total Posts: 1515
17 Jun 2013 01:08 PM
zombie = game.Lighting.zombie

while true do
wait(1)
zom = zombie:Clone().Parent = Workspace
zom.CFrame = CFrame.new(x,y,z)
end
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
17 Jun 2013 01:17 PM
you can explain a bit more?
it doest work right now
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
17 Jun 2013 01:22 PM
Where do you have the "original" zombie placed? (The one which you want cloned)

Is the Zombie somewhere in the game, or is it placed in Lighting?
Report Abuse
Wujus is not online. Wujus
Joined: 02 Sep 2008
Total Posts: 117
17 Jun 2013 01:23 PM
while true do --loop
wait(1) --The time the script waits before creating a new zombie
zom = zombie:Clone().Parent = Workspace --Where the new zombie will apear
zom.CFrame = CFrame.new(x,y,z) --x,y,z are the coordinates the new zombie will be spawned on (for example (0,5,0)
end
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
17 Jun 2013 01:24 PM
in workplace
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
17 Jun 2013 01:25 PM
zom = zombie:Clone().Parent = Workspace
error in this line
unexpected symbol near '='
Report Abuse
zackeryjerrypowers is not online. zackeryjerrypowers
Joined: 01 Aug 2008
Total Posts: 1515
17 Jun 2013 01:27 PM
zombie = game.Lighting.zombie

while true do
wait(1)
zom = zombie:Clone()
zom.Parent = Workspace --Sorry, for got you couldn't define two things like that.
zom.CFrame = CFrame.new(x,y,z)
end
Report Abuse
zackeryjerrypowers is not online. zackeryjerrypowers
Joined: 01 Aug 2008
Total Posts: 1515
17 Jun 2013 01:28 PM
Forgot*

T-T
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
17 Jun 2013 01:31 PM
how do i found x,y,z of a specific place?
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
17 Jun 2013 02:01 PM
How to find x,y,z of a place?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
17 Jun 2013 03:26 PM
object.Position
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
18 Jun 2013 05:50 AM
its wont work
i dont know why
can you explain more?
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
18 Jun 2013 06:28 AM
never mind it works thanks!!!
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