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

What is the difference of "MouseDown" and "MouseClick"?

Asked by 4 years ago

I have a question that I was curious about for a while now... what is the difference of...

script.Parent.MouseButton1Click:Connect(function()

and...

script.Parent.MouseButton1Down:Connect(function()
I want to know which one works best for certain situations and what is the difference of them. Any help? thanks!

1 answer

Log in to vote
0
Answered by 4 years ago

MouseButton1Click is when the player clicks the left key on the mousepad and then lets go, MouseButton1Down is when the player Clicks the left key only, MouseButton1Click can be useful for transactions imo, normally in a game when I am about to buy something, i click and hold, but then I change my mind, which then I simply just move my mouse down and the transaction is incomplete, MouseButton1Down can be useful to detect when a player is holding the left key for simulator games for example, then they use MouseButton1Up to detect when the player let go of the left key on the touchpad, If this helps you, click accept answer by the question, if you need code, just ask. thx

0
This helped thanks! Mrmonkeyman120 65 — 4y
0
no prob greatneil80 2647 — 4y
Ad

Answer this question