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: spawning a boss in my game

Previous Thread :: Next Thread 
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
04 Apr 2013 07:22 PM
I happen to be making a boss battle arena game and i need to know how i can spawn the bosses without having the highly dangerous creatures sitting right under the map waiting to be cloned. can i insert them from my models using a script?

please help!!!
Report Abuse
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
05 Apr 2013 07:27 AM
anyone?
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
05 Apr 2013 08:25 AM
You could use InsertService and then MoveTo but it needs to be in YOUR models
Report Abuse
lawl60ftw is not online. lawl60ftw
Joined: 30 May 2009
Total Posts: 3973
05 Apr 2013 08:32 AM
Let me guess, you don't know how to script?


Place all your models in Lighting and create an event to copy them into your place with x,y coordinates so they don't spawn at the center.
Add a deadline event or time limit and remove the models when the time limit is reached or the deadline event runs.
Report Abuse
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
05 Apr 2013 09:18 AM
okay, thanks.

and i do know how to do a few things with lua ( really simple things) like make a hatchet (sadly that you cant swing XD), a door that disapears when you touch it then reappears afterwards, and i can use it to do math.

im looking to make it like rounds from one to ten

so then, if i put it in lighting then cloned it would it look something like this?

B = game.Lighting.("Boss Name Here"):Clone()
B.Parent = game.Workspace.CurrentArenaBoss
if B.Humanoida.Health = 0 then
B:Remove()
wait(5) -- to give enough time for the eliminated players to be teleported back to the arena
B2 = game.Lighting.("Boss Name Here"):Clone()
B2.Parent = game.Workspace.CurentArenaBoss

and so on
Report Abuse
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
05 Apr 2013 09:21 AM
wait so i need to put x,y coordinates?

i have never done that before. Can you give me an example? (a simple cloning one that shows me how to put the coordinates into my script)
Report Abuse
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
05 Apr 2013 09:29 AM
oops i made a mistake

in the beginning of that script should there be something that says

ArenaFloor:onTouched(hit)
hit.Parent.FindFirstChild:("Humanoid")
if (hit.Parent.Humanoid ~= nil) then
wait(5) -- teleporting players to the arena

rest of the script
Report Abuse
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
05 Apr 2013 09:32 AM
alright now i think i just confuzed myself.

if im right ill need x,y coordinates to teleport the characters to the arena floor
ill need to use that in part of the script too. i think ill need a bit more help before this forum is done
Report Abuse
tastefulbobo is not online. tastefulbobo
Joined: 14 May 2010
Total Posts: 166
05 Apr 2013 06:27 PM
can anyone give me an example of using x,y coordinates to spawn something?
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