So I want the drink that the customer ordered, become an empty cup after they drink from it 5 times, how can I do that?
COMMUNITY QUESTION
How can I make the drink in a cafe become an empty cup after 5 clicks ?
1 answer
A small example to give you an idea on how this could work.
local clicks = 0
local tool = script.Parent
tool.Activated:Connect(function()
clicks = clicks + 1
if clicks = 5 then
--idk
end
end)
Since you didn't include your script this is all I can do for you.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
make values in the cup Empty and full and if its empty they can refill and like cant click and if its full if mouse clicked 5 times it becomes empty