I want to be able to make a model which when you come into the distance of at least 6 studs then a beam appears and locks onto a players torso. And if more players come in then the beam is duplicated into two with one going to one player and the other beam to the other player. If you can help me thank you.
You get the distance by minus first position with second position then use magnatude.
e.g
local distance = (part1.Position - part2.Position).magnitude --distance is now the distance between the two Vector3
What I was thinking add a cylinder around the model so when the person touches that cylinder the beam apears to him.