script.Parent.MouseButton1Down:Connect(function()
print("Test")
end)
script.Parent.MouseButton1Down:Connect(function()
print("Test")
end)
This can not be accomplished, since MouseButton1Down is only for a GUI. If you want a mouseclick on a server script, use MouseClick, with a click detector.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
always has to be on a local script
MouseButton1Down is an event of a Gui Object, the mouse can only be called from the Client so this wouldn't be possible from a Server Script alone. You can use Remote Events to make the server do something when a button is pressed however