Hello, how do I make a script detect how far a player is away from a part?
I want to make a script print("Done") if the player is 15 studs away from a part but I don't know how?
Easy! Simply use magnitude.
if (game.Workspace.YourPart.Position-game.Workspace.CharacterName.HumanoidRootPart.Position).magnitude <= 15 then
print("Done")
end