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

How do you trigger the MouseButton1Down Event?

Let's say you wanted to trigger a mousebutton1Down for a tool? How would you trigger it? Like I don't believe it'd be this way:

Tool = script.Parent
Tool.MouseButton1Down:connect(function()
-- Whatever here lol
end)

It just doesn't look right.

2 answers


Tool = script.Parent

function functionname() -- functionname is the name of the function but it could be whatever you want
-- whatever here
end

Tool.MouseButton1Down:connect(functionname) 

I could be wrong but i think it is like this!

2 comments

0

That's just another way to type it. There's not anything different..

0

Yes i forgot to mention that but it works

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