[SOLVED] Streaming Enabled Messing With Menu

In my game (VENGEANCE [TESTING] - Roblox), I recently made a building that is causing some lag so I decided to finally give streaming enabled a shot. The problem is, I have my game set up where the player’s character does not load unless the player gets past the menu which is causing both the menu scene and the spawn location to not be loaded. This is obviously due to the fact that streaming enabled only loads the area around the player’s character, but in my case, the player’s character doesn’t even exist yet. How would I load both the spawn location and the out-of-bounds menu scene?

i think that you can preloadassets with ContentProvider, there is the documentation:

2 Likes

I’ve tried this before to no avail :frowning:

Code:

local cp = game:GetService(‘ContentProvider’)

local menuarea = game.Workspace.MenuArea:GetChildren()

cp:PreloadAsync(menuarea)

(I’ve also tried GetDescendants())

You can wait until your complete Game is loaded or?

i think that you can spawn the player more close to the menu area, to load the parts

You can use player.ReplicationFocus to select where to load data around the player. So if you have a camera part where set the cframe of the camera you can do.

When you set ReplicationFocus to nil it automatically loads around the player’s character, so when you spawn the player just set it back to nil

local function playerAdded(player)
  player.ReplicationFocus = replicatedStorage.CameraPart
end

local function MenuFinished(player)
  player.ReplicationFocus = nil
  player:LoadCharacter()
end

ContentProvider is to preload assets like images, meshes etc. Not to actally do with replication

streaming enabled halts loading in workspace until there is something to load around.

They want to have a menu before the character is spawned in.

1 Like

I meant withouth Streaming Enabled

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.