Area loading with scripts?

Good evening!
I’m working on a little project to load and unload parts of the map depending on where the player is. I somewhat figured out how to this with parts but I can’t figure out how to achieve this with scripts.

I’m not so sure how I can do this or where to start. So far I’ve tried to replicate server scripts over the client but they didn’t even run. Kinda expected it but thought I would test it anyway.

The scripted objects somehow need to run only for players near it, and not for players outside that area. What sort of tricks can I do to achieve this?

You can use a remote event, and have a local script in StarterPlayerScripts that handles it. Within the firing of the remote event, you can fire the object as a parameter, and take that object out of ReplicatedStorage and set its location.