So for my stupid scripting mistake, but I can't get the decal in this script to go from 1 Transparency to 0. It keeps giving me an error as (16:47:30.928 - Decal is not a valid member of Part). It seems so simple for a beginner but I keep getting stumped why the Decal won't work...
Switch = script.Parent
Decal = game.Workspace.StaticScareWalkTo.Static.Decal
boolean = true
function onTouched(Switch)
if boolean == true then
script.Parent.Sound:Play()
Decal.Transparency = 0
wait(10)
end
end
script.Parent.Touched:connect(onTouched)

2 comments
That's because 'Decal' doesn't exist in the location you are referring it too. Perhaps it hasn't loaded or it's in a different area.
I think it is loaded and in the correct position. Im sure. I did make the transparency at one so when you touch the brick the script will tell the decal to go to 0 transparency so you can see it