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 » Scripters
Home Search
 

Re: y no worky :((((

Previous Thread :: Next Thread 
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
07 Sep 2015 11:08 AM
function destroy()
local humvee = script.Parent
for i,v in pairs(humvee)do
if v.ClassName == "Part" then
v.ChildRemoved:connect(function()
print("yey a weld was removed")
end)

end
end
end


it doesn't print anything, and no errors in output
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
07 Sep 2015 11:11 AM
Do you ever run the function?

destroy()
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
07 Sep 2015 11:12 AM
ohohohoh


I see

sorry its early in the morning for me I wasn't focused ;=;
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
07 Sep 2015 11:12 AM
those last three ends all need to be shifted in one
are you ever making a call to "destroy"?
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
07 Sep 2015 11:17 AM
well I tried making a call to "destroy" in multiple ways

still doesn't work
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
07 Sep 2015 11:19 AM
Oh.

change the line
for i,v in pairs(humvee) do
to
for i,v in pairs(humvee:GetChildren()) do

In addition, this isn't necessary, but you can change the line
if v.ClassName == "Part" then
to
if v:IsA("Part") then
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
07 Sep 2015 12:00 PM
it still doesn't work :/
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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