Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you trigger the MouseButton1Down Event?

Asked by 9 years ago

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

Log in to vote
0
Answered by
iLegitus 130
9 years ago

This might help you,

http://wiki.roblox.com/index.php?title=Weapons

Ad
Log in to vote
0
Answered by
Kryddan 261 Moderation Voter
9 years ago

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!

0
That's just another way to type it. There's not anything different.. TheReapersComing 0 — 9y
0
Yes i forgot to mention that but it works Kryddan 261 — 9y

Answer this question