function tch(h)
if (h.Parent.Name == "Cup (Empty)") then
h.Parent.Name = "Espresso"
script.Parent.Parent.Spill.Transparency = 0.1
wait(0.5)
script.Parent.Parent.Spill.Transparency = 1
h.Parent.Drink1.BrickColor = BrickColor.new(21)
h.Parent.Drink1.Transparency = 0.1
end
end
script.Parent.Touched:connect(tch)
That is the script I am using.
My coffee machines only work once with a cup. After that, I could put the cup in a million times and it wont work. What am I doing wrong?
I got this script from someone else, but I made changes to the names (Espresso, Cup (Empty), etc)

1 comment
Probly because its Parented in Character, or because the Name is changed onTouch.