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

MouseButton1Click function not working?

Asked by
Hypgnosis 186
5 years ago

This code isn't working for no apparent reason.

No errors, no output. The code is in a LocalScript inside the TextButton.

local playButton = script.Parent -- "script.Parent" is a TextButton

playButton.MouseButton1Click:Connect(function()
    print("Clicked.")
end)
0
What script do you used? Script or LocalScript? HaveASip 494 — 5y
0
If you used script, copy all this code and paste it in local HaveASip 494 — 5y

Answer this question