Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a decal removed when it is touched?

So I want to make it so that when I touch a brick, that decal will be removed. How could I make it do that? So far I have tried this.

local brick = Workspace.Brick

function onTouch(part) script.Parent:Remove() end

2 answers

✓ Accepted answer
function Touched()
script.Parent.Decal:remove()
end
script.Parent.Touched:connect(Touched)

Insert this script inside of the brick with the decal. Good job you a beginner scripter! Many people just request scripts but you attempted before you asked! I See a good scripter in the future and his name is awesome9944!

function onHit (player)
script.Parent.Decal = nil
end
script.Parent.Hit:connect(onHit)

This discussion is preserved as it was. New answers, comments, and votes are closed.