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

How do you make sure the mousehit isn't past a certain point?

Asked by
Radstar1 270 Moderation Voter
6 years ago

Right now I have a script makes the projectile go where the mouse is pointing. However, I only want the projectile to go a certain distance. Is there a way to set a limit where the mouse can point.

0
Could you explain how it would work? Radstar1 270 — 6y
0
if Mouse.Target == Mouse.Target and player.Character.Humanoid.Distance >= 100 do <-- try something like that greatneil80 2647 — 6y

Answer this question