i made a script for a fading effect, but it says that the thing does not exist, heres the script:
wait()
local Stone = script.Parent.Value.Value
a = true
script.Parent.At.Break.Triggered:Connect(function(plr)
if Stone ~= 1 then
if a then
a = false
Stone = Stone - 1
script.Parent.Parent.Thing.Transparency = script.Parent.Thing.Transparency + 0.25
script.Parent.Parent.Thing2.Transparency = script.Parent.Thing2.Transparency + 0.25
script.Parent.Parent.Thing3.Transparency = script.Parent.Thing3.Transparency + 0.25
script.Parent.Parent.Thing4.Transparency = script.Parent.Thing4.Transparency + 0.25
script.Parent.Parent.Thing5.Transparency = script.Parent.Thing5.Transparency + 0.25
wait(1)
a = true
end
end
if Stone == 1 then
plr.Resources.Table.Value = plr.Resources.Table.Value + 1
script.Parent:Destroy()
end
end)
here is the picture of the script and the model
