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: Need help making a script that allows me to delete decals.

Previous Thread :: Next Thread 
Londinensi is not online. Londinensi
Joined: 24 Jan 2012
Total Posts: 39
18 Aug 2016 09:36 AM
Since I am very new at scripting, I need some help on making a tool that allows people (who acquire the tool) to delete decals and not bricks.


Report Abuse
WrightPhillips99 is not online. WrightPhillips99
Joined: 27 Jun 2015
Total Posts: 667
18 Aug 2016 09:41 AM
game.Workspace.Part.ClickDetector.MouseClick:connect(function()
if part:FindFirstChild('decal') then
decal:Remove()
hope this help
Report Abuse
Londinensi is not online. Londinensi
Joined: 24 Jan 2012
Total Posts: 39
18 Aug 2016 10:39 AM
Doesn't work. May be an error on my part. Im trying to replace the script currently on a delete model hammer. Do I use a local script or a script?
Report Abuse
WrightPhillips99 is not online. WrightPhillips99
Joined: 27 Jun 2015
Total Posts: 667
18 Aug 2016 10:40 AM
regular script since we are not dealing with local players unless u r
Report Abuse
WrightPhillips99 is not online. WrightPhillips99
Joined: 27 Jun 2015
Total Posts: 667
18 Aug 2016 10:41 AM
don't copy and paste my code do It with the variables changed to what they need to be.
Report Abuse
Londinensi is not online. Londinensi
Joined: 24 Jan 2012
Total Posts: 39
18 Aug 2016 10:43 AM
Problem is there aren't specific variables. It is meant to delete NSFW decals in certain games.
Report Abuse
WrightPhillips99 is not online. WrightPhillips99
Joined: 27 Jun 2015
Total Posts: 667
18 Aug 2016 10:50 AM
well then do
local child = game.Workspace.Part:FindFirstChild()
if child.className == 'Decal' then
child:Remove()
Report Abuse
Londinensi is not online. Londinensi
Joined: 24 Jan 2012
Total Posts: 39
18 Aug 2016 12:15 PM
Here is what I did:

local child = game.Workspace.Part:FindFirstChild('Decal')
if child.className == 'Decal' then
child:Remove('Decal')


I'm not the smartest person in the world. I make lots of mistakes, lol.

Report Abuse
WrightPhillips99 is not online. WrightPhillips99
Joined: 27 Jun 2015
Total Posts: 667
18 Aug 2016 12:16 PM
That is exactly what I told u except I forgot to tell it what name to remove
Report Abuse
Londinensi is not online. Londinensi
Joined: 24 Jan 2012
Total Posts: 39
18 Aug 2016 12:21 PM
What name do I remove then?
Report Abuse
Londinensi is not online. Londinensi
Joined: 24 Jan 2012
Total Posts: 39
18 Aug 2016 08:08 PM
bump


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
18 Aug 2016 08:24 PM
local object = place:findFirstChild("name")
if object then object:Destroy() 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