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: Why am I getting this error? It used to work...

Previous Thread :: Next Thread 
jatl8 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. jatl8
Joined: 07 Aug 2009
Total Posts: 17439
17 Feb 2014 07:45 PM
I could uee some help.
Report Abuse
jatl8 is not online. jatl8
Joined: 07 Aug 2009
Total Posts: 17439
17 Feb 2014 07:48 PM
.
Report Abuse
jatl8 is not online. jatl8
Joined: 07 Aug 2009
Total Posts: 17439
17 Feb 2014 07:51 PM
:l
Report Abuse
jd678 is not online. 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 is not online. jatl8
Joined: 07 Aug 2009
Total Posts: 17439
18 Feb 2014 03:47 PM
I did.. Thre is no tip?
Report Abuse
Hazania is not online. 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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
18 Feb 2014 03:52 PM
script.Parent.Parts:WaitForChild("Tip").Touched:connect(onTouch)

possibly?


#nerdsunited
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