Is there a simple way to make an event happen only after a certain time?

So i’m making an interactive NPC, where you can talk to it, like:
A: “I’d like a coffee please!”
B: “What’s the price?”
To “talk to it”, you have to click on it. Is there a way to check if a button is clicked, in an “if then” script?

You could have it as a frame and A,B,C,D,E and so on is a TextButton and when one of them is clicked you could do something.

A.MouseButton1Click:Connect(function()
   print("A was clicked!")
end)
1 Like