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)
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 :)