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

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

Asked by 1 year ago
Edited 1 year 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 6913 — 1y
0
Thank you! SilentKiller5557 8 — 1y

Answer this question