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

Is it posible to detect where someone has clicked?

I would like to know if it is possible to detect where someone clicked , and if it is possible then I would like to know how

2 answers

✓ Accepted answer

Yes, it is.

--Assuming this is a local script inside of StarterGui

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Button1Down:connect(function()
print(mouse.Hit.p) --mouse.Hit.p returns the position of the mouse
end)

2 comments

0

Thanks!

0

No problem

No, it is impossible to detect when someone has click.

2 comments

0

Tried it and it don't work

0

You could do it locally.

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