Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why doesn't my MouseButton1Click function fire?

Ok so I made probably the most basic placeholder script for my UIs.

script.Parent.MouseButton1Click:Connect(function()
	print("entered!")
end)

The parent is a TextButton under a ScreenGUI in StarterGUI. Won't fire at all, even though it's just a print statement. Would appreciate some guidance here. Thanks in advance if you can help...

EDIT: I completely forgot that it needs to be local. That's what I get for stop using lua for 3 months.

2 comments

0

Is it a local script or a server script?

0

server script

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.