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.
[BUTTON].MouseButton1Click:Connect(function(plr)
--Code Here
end)
Can anyone help me with this bug?
Regards, Vivilian9

2 comments
Two questions. Why is plr inside of he parenthesis? And is this in a LocalScript or a Script? If it's in a LocalScript you don't need the plr thing. If it's inside of a Script it shouldn't be, it should be in a LocalScript. Also, if "BUTTON" is a variable just do BUTTON.MouseButton1Click.
He's talking about any button, like [Insert Button Here].