I'm confused about :GetDistanceFromCharacter

Why does this work in a ServerScript but not in a LocalScript under StarterPlayerScripts?

game.Players.PlayerAdded:Connect(function(plr)
	while wait() do
	print(plr:DistanceFromCharacter(game.Workspace.DistancePart.Position))
	end
end)

Because Local Scripts don’t have the PlayerAdded event since it doesn’t serve any use.

1 Like

Oh. I didn’t know that. Thank you!