For some reason, no matter where I spawn ,the distance of the character and the part will say 1.5 when its super far, then it will properly work which is annoying cause I am using a bindable event and it fires when you join when its not supposed to.
1 Like
Are you constantly updating the variable? If you only define the variable once it will not show the true distance
Yes I am. Its in a RunService.Hearbeat connection. When you join it starts printing something around 1.5 then suddenly starts printing correctly.
it may work if you do:
local distance = (plr.Character.PrimaryPart.Position - model.PrimaryPart.Position).Magnitude