Code:
game.Players.PlayerAdded:Connect(
function(p)
local cor =
coroutine.wrap(
function()
while wait() do
local character = p.CharacterAdded:wait()
local mag =
(character:WaitForChild("HumanoidRootPart").Position - workspace.MagnitudeBlock.Position).Magnitude
print(mag)
end
end
)
cor()
end
)
When I join, it only prints the magnitude once, how can I fix this?
