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 |
|
|
| 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
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 10294 |
|
| |