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

Is it posible to detect where someone has clicked?

Asked by 9 years ago

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

Log in to vote
3
Answered by 9 years ago

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)
0
Thanks! chill22518 145 — 9y
0
No problem aquathorn321 858 — 9y
Ad
Log in to vote
-9
Answered by 9 years ago

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

0
Tried it and it don't work iBrownz 0 — 9y
0
You could do it locally. Redbullusa 1580 — 9y

Answer this question