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: Explosion Script

Previous Thread :: Next Thread 
multrimax is not online. multrimax
Joined: 25 Dec 2009
Total Posts: 10294
24 May 2012 05:31 PM
Right here I have a Script Builder script that is supposed to generate a nuke that explodes once it touches the base. Here is the script:

local rocketMesh = Instance.new("SpecialMesh")
rocketMesh.Parent = game.Workspace
rocketMesh.Position = Vector3.new(0,0,0)
rocketMesh.MeshId = "http://www.roblox.com/asset/?id=31601976"
rocketMesh.TextureId = "http://www.roblox.com/asset/?id=31601599"
wait(0.25)
explosion = Instance.new("Explosion")
explosion.Parent = game.Workspace
explosion.Position = Vector3.new(0,0,0)
explosion.BlastRadius = 100
explosion.BlastPressure = 5.4356e+012
wait(5)
explosion:remove()

Now, the problem is that it doesn't generate the nuke, just a blank mesh. Here is the Output of it if you need it:

18:27:01 - Mesh should not be a child of Workspace
18:27:01 - Position is not a valid member of SpecialMesh
18:27:01 - Script "Workspace.Script", Line 3
18:27:01 - stack end

All I need help on is how to position the mesh so it lands there, but as stated in the Output, the Mesh can't be a child of Workspace. Any help?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
24 May 2012 05:45 PM
Instead of putting the mesh in Workspace, put it in a brick in Workspace. A mesh can only work in a brick, I think...
Report Abuse
multrimax is not online. multrimax
Joined: 25 Dec 2009
Total Posts: 10294
24 May 2012 06:05 PM
Bump.
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