My event is MouseButton1Click
(on a textbutton.) It isn't waiting for this button to be pressed.
I first used wait([BUTTON].MouseButton1Click)
when that wasn't working I used the event itself.
1 | [ BUTTON ] .MouseButton 1 Click:Connect( function (plr) |
2 | --Code Here |
3 | end ) |
Can anyone help me with this bug?
Regards, Vivilian9
You can always do this on an event:
1 | [ EVENT ] :Wait() --This will wait until the event happens. |
Example:
1 | [ BUTTON ] .MouseButton 1 Click:Wait() --This will wait until the event happens, and then print "Hello" |
2 | print ( "Hello" ) |