After reading this post about replication to the client I want to know if the content is still valid.
In the post it says: Other localscripts - Player’s Backpack, Character Model, PlayerGui, and PlayerScripts
Therefore, if you had made a part in Studio (and had not modified/deleted this part when the player joins), you can reliability reference that part.
and I tested it out by putting a local script in starter player scripts and referencing baseplate. However, it still throws an error in the output calling the baseplate nil? I’m a bit confused…
If streaming enabled is set to true (Workspace.StreamingEnabled), then the error you described can happen. It’s because the part you are referencing on the client doesn’t exist for the player because it’s out of their render distance. There are a few ways you can solve this, here are two:
Disable streaming enabled
This is the fastest solution, but it also comes with the downside of increasing lag, as streaming enabled usually does reduce lag in big games with a lot of parts.
Use MaterialStreamingMode.Persistent
To do this, you’ll need to model the part, then in the model’s properties, change the MaterialStreamingMode to Persistent. This will always render the part, regardless of its distance to the player. The downside here is that using this too much could increase lag.
Yeah, you’re right, I’ve experienced that issue before, but it’s a good enough solution for reducing lag until you can create your own rendering system, which is what a lot of the big games do anyway.
True, however Roblox has plans to force StreamingEnabled for all places just like they did with FilteringEnabled a few years ago. It could end up in a complete disaster and the developers having to do major rewrites in order to keep their experience working.
Quick question, im getting 1000mb of client memory usage in my live testing and iv barely started my game. All I have is an egg hatching system I build and a small map. Is it bad to have 1000mb of client usage if so… how could I fix it
I am not that much into optimisation, my primary game uses 3000mb+ of the client memory. I would suggest checking your scripts for unnecessary loops in the Script Performance window.