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: remove an instance via script

Previous Thread :: Next Thread 
FangandCircaStudios is not online. FangandCircaStudios
Joined: 10 Apr 2013
Total Posts: 5
25 Jun 2015 09:08 PM
I know hot to add one
Instance.new(blahblah gdl;vdsklgdfs)

but how do I remove lets say a message through the script
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
25 Jun 2015 09:09 PM
instance:Destroy()
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
25 Jun 2015 09:09 PM
local Instance = workspace.Message

Instance:Destroy()
Report Abuse
FangandCircaStudios is not online. FangandCircaStudios
Joined: 10 Apr 2013
Total Posts: 5
25 Jun 2015 09:11 PM
oh thanks :D i knew it was something like that
im a little rust
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
25 Jun 2015 09:13 PM
it will also help you a lot in the future to know the difference between :remove() and :destroy()

http://wiki.roblox.com/index.php?title=API:Class/Instance/Destroy

http://wiki.roblox.com/index.php?title=Remove

if you want an effect similar to remove you are just better off setting the parent to nil
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