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 » Scripting Helpers
Home Search
 

Re: Decal Delete

Previous Thread :: Next Thread 
xmfs is not online. xmfs
Joined: 24 Dec 2012
Total Posts: 710
24 Aug 2014 09:32 PM
Does anyone have a script to delete something that is a Decal?

I tried this:
if v:IsA("Decal") then
v:Remove()
end

but it doesnt work, and yes im a newbie scripter.

Mr. Dingleberry never dies.
Report Abuse
xmfs is not online. xmfs
Joined: 24 Dec 2012
Total Posts: 710
24 Aug 2014 10:14 PM
Bump
Report Abuse
cingwar73 is not online. cingwar73
Joined: 16 Aug 2009
Total Posts: 358
24 Aug 2014 10:20 PM
if v.ClassName == "Decal" then
v:Destroy()



I am assuming that you defined v somewhere else.

If you didnt, and just want to delete all the decals on the un-grouped parts in workspace, you could do

for i,v in pairs(game.Workspace:GetChildren()) do
for q,u in pairs(v:GetChildren()) do
if u.ClassName == "Decal" then
u:Destroy()
end
end
end
Report Abuse
xmfs is not online. xmfs
Joined: 24 Dec 2012
Total Posts: 710
25 Aug 2014 01:28 AM
Thanks :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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