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

How Mouse.Hit can detect an object from far away?

Asked by 5 years ago

So I was making a sniper for my game and I figured out that Mouse.Hit can't detect an object from far away and returns as nil. How I can make Mouse.Hit detect the object from far away.

1 answer

Log in to vote
0
Answered by
OnaKat 444 Moderation Voter
5 years ago
Edited 5 years ago

Mouse.Hit will give mouse CFrame

To detect an object with mouse use Mouse.Target

0
It still returns as nil, when the object is far away SashaEfanov 0 — 5y
Ad

Answer this question