#Check if a player is clicking on a far player

1 messages · Page 1 of 1 (latest)

pallid storm
#

Hello !

Any ideas about how to check if a player is clicking on another player far from the first one (20 blocks for example) ?

I thought about making a vector starting on the clicking player's eyes but do you know if there's an easier solution ? 🤔

Thx in advance ! 😄

crimson shard
#

World has rayTrace methods

ornate delta
#

use the head position and look vector of the player for position and direction repectively

pallid storm
#

Ohhhhh thx for answering so fast ! i guess i've got my solution

crimson shard
#

Also make sure to ignore the original player, or you might get them as a result

ornate delta
#

oh yea

pallid storm
#

ahhh yea i got this issue with snowballs

#

thx ❤️