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

Detect click without click detector?

Asked by
Xyternal 247 Moderation Voter
2 years ago

I was thinking of making a tank, but i need to see if the player clicked to trigger a function. The problem is, I can't use a click detector. Is there anyway for me to check if someone clicked somewhere in the Workspace without using a click detector? thanks

0
mouse.Button1Down:Connect(function()? Velocityok 36 — 2y
0
was it that easy? Xyternal 247 — 2y
0
well, post that as an answer so i can accept that Xyternal 247 — 2y

1 answer

Log in to vote
1
Answered by 2 years ago
Edited 2 years ago

Just use mouse.MouseButton1Click:Connect(function() it's that simple. Or you can use local MouseTarget = game.Players.LocalPlayer:GetMouse().Target

Ad

Answer this question