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

How can I use MouseButton1down on a regular server script?

script.Parent.MouseButton1Down:Connect(function()

print("Test")

end)

2 comments

0

always has to be on a local script

0

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

1 answer

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.