function onClicked(playerWhoClicked)
game.Workspace.Door.CanCollide = false
game.Workspace.Door.Transparency = 10000
instance.new("Decal")
game.Workspace.Decal.Texture = 130742396
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
✓ ANSWER ACCEPTED
How do I make it so when this button is clicked, a decal will be placed on the block?
1 answer
✓ Accepted answer
function onClicked(playerWhoClicked)
game.Workspace.Door.CanCollide = false
game.Workspace.Door.Transparency = 1
z =Instance.new("Decal")
z.Parent = game.Workspace.Door
z.Texture = 'rbxassetid://130742396'
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Hope this helps.
Plus 1 if this helped, check mark if this answered your query :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Umm use the lua text box.
I tried, hold on let me edit.
There fixed the script