Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to set the visibility range of a player?

Is there a way to set the visibility range of parts? Something so that I don't have to loop through parts and compare the magnitude to the player's character and constantly do that, like some Player variable distance I can set?

1 answer

✓ Accepted answer

I'm afraid there isn't a formal way to do that. Since I don't know exactly what you're willing to do, you can try some things:

  • Enabling fog, just control the distance.
  • Using a Region3 around the character, which would be similar to checking parts every instant.
  • A giant bubble around the character, using Touched to detect the visible parts.

Maybe these are not good suggestions, but they may be faster than looping everything in Workspace.

This discussion is preserved as it was. New answers, comments, and votes are closed.