|
| 23 Nov 2012 05:03 PM |
Heres the script... whats wrong with it?...
local boom = false
function createExplosion(position)
explosion = Instance.new("Explosion") explosion.Position = position explosion.BlastRadius = 12 explosion.Parent = game.Workspace
end
function onTouch(part) if boom == true then return end if (part.Name == "Rocket") or (part.Name == "Safe") or (part.Parent.Parent.Parent == script.Parent) or (part.Parent:findFirstChild("Humanoid")) then return end if (script.Parent.Parts.Tip.Velocity.x > 100) or (script.Parent.Parts.Tip.Velocity.x < -50) or (script.Parent.Parts.Tip.Velocity.z > 50) or (script.Parent.Parts.Tip.Velocity.z < -50) then boom = true createExplosion(script.Parent.Parts.Engine.Position) script.Parent:BreakJoints() scrip.Parent.Parts.Human.Health = 0
local stuff = script.Parent:children() for i=1,#stuff do if stuff[i].Name == "BodyKit" or stuff[i].Name == "Parts" then local parts = stuff[i]:children() for p = 1, #parts do if parts[p].className == "Part" then local velo = Instance.new("BodyVelocity") velo.maxForce = Vector3.new(9.9e+036, 9.9e+036, 9.9e+036) velo.velocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) velo.Parent = parts[p] end end end end wait(4) end end
script.Parent.Parts.Tip.Touched:connect(onTouch)
|
|
|
| Report Abuse |
|
|
| 23 Nov 2012 05:07 PM |
It means Humanoid doesn't exist.
Want a script? Send me a PM and we'll work out a deal! |
|
|
| Report Abuse |
|
|
| 23 Nov 2012 05:17 PM |
| Nah the system i have is really disorganized and hard to explain but thanks for the offer. |
|
|
| Report Abuse |
|