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
✓ ANSWER ACCEPTED
Is it posible to detect where someone has clicked?
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)
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.

2 comments
Thanks!
No problem