This is an example code:
function Play()
Print("Bruh")
end
game.Players.LocalPlayer.PlayerGui.ScreenGui.Button.MouseButton1Click:Connect(Play)
I don't know what I'm doing wrong, when I press the button nothing happens, and I need to get my mouse off of the button before I can click it again.

1 comment
It was working fine before but maybe roblox updates made it broke.