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 2 years ago
Edited 2 years 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 — 2y
0
Thank you! SilentKiller5557 8 — 2y

Answer this question