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 make ClickDetectors only respond to right clicks?

It's the question

part.ClickDetector.MouseClick:connect(ExplodePart) -- part has a clickdetector inside it

How do you make it so it only responds to rightclicks?

1 answer

You can't right click a ClickDetector but you can use things such as mouse E.G

player = game.Players.LocalPlayer
Mouse = player:GetMouse()

Mouse.Button2Down:connect(function()
          if Mouse.Target == workspace.ClickMe then
  end
end)

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