Ad
Log in to vote
0

Is there a way to check for something when a button is pressed?

Asked by 10 days ago
Edited 10 days ago

I would like to make it so that when a buttons is pressed, it does a different thing depending on a some boolValues.

For example:

button.MouseButton1Click:Connect(function()
    if value.Value == true then

Something that essentially does that.

0
That's exactly how you do it. Although, "==" true is not needed. Ziffixture 6863 — 9d
0
Thank you! SilentKiller5557 6 — 9d

Answer this question