when the player spawns they are “0” studs away from the part no matter where the part is.
while task.wait(0.1) do
for _, checkPlayer in pairs(game.Players:GetChildren()) do
if checkPlayer then
player = checkPlayer
end
end
if player then
local first_Distance = player:DistanceFromCharacter(game.Workspace.Part.Position)
print(first_Distance)
end
end
How do I get around that? A player could spawn at any time.