Help with having a model load an area in streaming enabled?

I am developing a game that is quite big and can get laggy at times though combat, to solve this I changed the game to streaming enabled to maximize lag reduction. however I encountered a game breaking issue when enabled. here is a link to the game: Stellar Wars [2/19/21] - Roblox

right now streaming enabled is enabled. your supposed to see star systems in the distance but even if you steer your ship right next to them they will not load. the players camera and guis are linked to a ship model in the workspace so only that model is moving around the playable area. im not sure were to go from here and after looking around the internet for answers on my specific topic I made this thread. is there a way for me to have the ship model load chunks when moving around instead of the player?

Have you tried setting the Player.ReplicationFocus? It seems to me that this will cause streaming to be focused around a part (spaceship) rather than the player.

wait(5)

local plr = game.Players.LocalPlayer

local char = plr.Character

plr.ReplicationFocus = game.Workspace.LoaderTest
ive tried setting the players replicationfocus to a part in the workspace as the wiki says, but what I dont understand is the wiki says to use a server sided script but “localplayer” only runs in a localscript. and when I tried to run this it gave me an error that loadertest wasnt a valid member of workspace which tells me it cant see it.

It looks like the wiki code sample is wrong, since LocalPlayer is a local script only property. The error you’re getting is probably due to the LoaderTest part being streamed out (and thus, doesn’t exist on the client).

The correct way to set the ReplicationFocus would be from a server script. There are many ways to find the player and here’s one of them.

local Players = game:GetService("Players")

Players.PlayerAdded:connect(function(player)
    player.ReplicationFocus = game.Workspace.LoaderTest
end)