So line 9 is what is not working! I would like that to turn visible to people after it runs the rest of the script how do I do this??
function tch(h)
if (h.Parent.Name == "Cup") then
h.Parent.Name = "Water"
script.Parent.Sound:Play()
script.Parent.Parent.Spill.Transparency = 0.5
wait(0.5)
script.Parent.Parent.Spill.Transparency = 1
wait(2)
game.StarterPack.Cup.D1.Transparency = 0
end
end
script.Parent.Touched:connect(tch)

7 comments
if you want it visible then the transparency needs to be 0 and not 1, maybe you meant invisible but that might be your problem.
DUH!!! im so Dumb thank you xD
Wait that did not work!
are you getting an error or is it just not showing up for people?
No Error at all output is clean and so is script its just not showing up in the cup its just a part I added in the cup that is suppose to turn visible after they put it by the water giver.
@NvidiaGeForce2080Ti
I have no idea then