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)
Try this. If it doesn't work I'm sorry there isn't enough for me to look at, hope this helps! :)
Switch = script.Parent Decal = game.Workspace:WaitForChild("StaticScareWalkTo"):WaitForChild("Static"):WaitForChild("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)