How can I see if a player is in the magnitude radius

I am trying to make this system where when you enter a objects magnitude distance for example, 10 studs it will keep printing 1 phrase until the player leaves the magnitude of the object but I’m not very sure how can I track players HumanoidPart through a normal script and plus this should work for more than 1 player and how can I keep this running all the time because I don’t feel like a while loop should be used here.

What I would consider is to use a LocalScript, and connecting a player:DistanceFromCharacter() check to RenderStepped/Heartbeat. It seems to get what you need.

References: Player | Documentation - Roblox Creator Hub

Hope I helped!

1 Like

Use an invisible, nonCollide wall or bubble. Then use the touch event to detect players.