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: How can I remove an object if one object is missing

Previous Thread :: Next Thread 
logan999999999999 is not online. logan999999999999
Joined: 24 Nov 2012
Total Posts: 3769
24 May 2016 05:36 PM
So if I have an object fall out of a map it will remove the object that goes with it.
Report Abuse
lululukas is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
24 May 2016 06:07 PM
object= Path to object

game.Workspace.ChildRemoved:connect(function(instance)
if instance.Name=="YOUROBJECTNAME" then
object:Destroy()
end
end)
Report Abuse
logan999999999999 is not online. logan999999999999
Joined: 24 Nov 2012
Total Posts: 3769
24 May 2016 06:32 PM
What if the object is not there at all?
Report Abuse
killerbot29003 is not online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
24 May 2016 06:41 PM
if not workspace:FindFirstChild("Part1") then
print('Part 1 is not there!!!!!')
end


This siggy is copyrighted ©
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