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 it so when this button is clicked, a decal will be placed on the block?

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)

3 comments

0

Umm use the lua text box.

0

I tried, hold on let me edit.

0

There fixed the script

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.