Distance From tagged part

Hello, recently i have been trying to make a Halloween bucket to hold when you press “e”, but first i need to make a system where it finds how far the player is. I have already used player:DistanceFromCharacter and it does not work. Any help?

You can use magnitude instead.

if (Part1.Position - Part2.Position).magnitude <= 15 then

2 Likes