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

How do I detect player right clicking?

Asked by 4 years ago

Im just curious as to the function of a player right clicking.

1
https://developer.roblox.com/api-reference/event/UserInputService/InputBegan < check that the UserInputType is MouseButton2 User#24403 69 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago
script.Parent.Equipped:connect(function(mouse)
mouse.Button2Down:connect(function()
print("Detected!")
end)
Ad

Answer this question