Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make the drink in a cafe become an empty cup after 5 clicks ? [closed]

Asked by 3 years ago

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?

0
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 DuckyRobIox 280 — 3y

Closed as Not Constructive by rabbi99 and Leamir

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
rabbi99 714 Moderation Voter
3 years ago

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.

Ad