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: Delete Model/Union if Touches Certain Brick

Previous Thread :: Next Thread 
iLordOfAviation is not online. iLordOfAviation
Joined: 23 Mar 2012
Total Posts: 1325
12 Jul 2016 04:56 PM
I want to make a system that if a model/union called "Suitcase" touches a brick, it gets deleted, but I don't know how to detect if it touches a brick,

In case that isn't specific or something, this is kinda what I want but not in correct scripting stuff

if script.Parent touched and touched.name == "Suitcase" then
touched:Remove()
end

or something like that, can anyone please help me?


Report Abuse
JohnnyThunder2 is not online. JohnnyThunder2
Joined: 11 Apr 2009
Total Posts: 1043
12 Jul 2016 05:48 PM
Okay, so this would go in the brick. So Suitcase is a model and not a tool?

script.Parent.Touched:connect(function(who)
if who.Name == "Suitcase" then
who:remove()
end
end)
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