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: what does humanoid is not a valid member of model mean?

Previous Thread :: Next Thread 
squirrelterritory is not online. squirrelterritory
Joined: 17 Sep 2011
Total Posts: 276
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
squirrelterritory is not online. squirrelterritory
Joined: 17 Sep 2011
Total Posts: 276
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
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