jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
|
| 17 Feb 2014 07:28 PM |
17:25:57.558 - Tip is not a valid member of Model 17:25:57.558 - Script 'Workspace.Plane 1.Plane 12.Station1.Plane.Scri', Line 39 17:25:57.559 - stack end
--- Script:
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 > 50) 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() 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) script.Parent:remove() end end
script.Parent.Parts.Tip.Touched:connect(onTouch) ---
Error: I use the tool. It's not working at all. Nothing works.
Any help?
|
|
|
| Report Abuse |
|
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
|
| 17 Feb 2014 07:29 PM |
| BTW, Line 39 is the very last line. |
|
|
| Report Abuse |
|
|
shooter06
|
  |
| Joined: 13 Jan 2011 |
| Total Posts: 7443 |
|
|
| 17 Feb 2014 07:30 PM |
Do u even has a part named "Tip"? And if not, make one.
Scrubbags :D |
|
|
| Report Abuse |
|
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
|
| 17 Feb 2014 07:35 PM |
Ok correct me if I'm wrong.
There is no part called Tip. This is a script in the actual plane that shoots missiles. Whatever is touched by that missile it breaks the joints.
With that being said maybe the part or property "Tip" was deleted.
Can anyone help? |
|
|
| Report Abuse |
|
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
|
| 17 Feb 2014 07:38 PM |
| My doubt is that if Tip is a part or not |
|
|
| Report Abuse |
|
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
| |
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
| |
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
| |
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
|
| 17 Feb 2014 08:00 PM |
"script.Parent.Parts.Tip.Touched:connect (onTouch)"
Make sure Tip exists and make sure you pathed it CORRECTLY |
|
|
| Report Abuse |
|
|
jatl8
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 17439 |
|
| |
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
|
| 18 Feb 2014 03:48 PM |
| if there is no tip why is it in the connection line.... |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2014 03:49 PM |
I think he wants it to run only if the front is hit,no "Tip"is not a valid member'... and I got no idea how to do this,just pointing out the tip thing |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2014 03:52 PM |
script.Parent.Parts:WaitForChild("Tip").Touched:connect(onTouch)
possibly?
#nerdsunited |
|
|
| Report Abuse |
|
|