Attempt to call a RBXScriptSignal value

Hi,
Today I have a problem with this code

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down():Connect(function()
	print("Hey i clicked")
end)

This is an error:
attempt to call a RBXScriptSignal value

I have to try to fix this problem, but this problem still occurring.

Thanks in advance.

6 Likes

Should be mouse.Button1Down:Connect(function()

Also it’s not recommended to use mouse.Button1Down for mouse button input detection. Use UserInputService.InputBegan instead.

15 Likes

OMG, It’s my mistake, Thank you so much…

3 Likes