Character meshes and skyboxes failing to load

Most of the players in my game appear to be floating heads because the character meshes fail to load. The glitch started last night and my game seems to be the only game with this problem.

Here’s my preload function stored in ReplicatedFirst.

local CP = game:GetService("ContentProvider")
CP:Preload("rbxassetid://167850847")-- preload pizza image


local objectTypes = {
	Decal = "Texture",
	Texture = "Texture",
	ImageLabel = "Image",
	ImageButton = "Image",
	SpecialMesh = "MeshId",
	SpecialMesh = "TextureId",
	MeshPart = "MeshId",
	ParticleEmitter = "Texture"
}
local loaded = {}
local function search(dir)
	for _,obj in ipairs(dir:GetChildren()) do
		local propertyName = objectTypes[obj.ClassName]
		if propertyName and obj[propertyName] ~= "" and not loaded[obj[propertyName]] then
			CP:Preload(obj[propertyName])
			loaded[propertyName] = true
		elseif obj.Name ~= "Houses" then --dont preload assets inside houses
			search(obj)
		end
	end
end


search(workspace)
2 Likes

They should work now. I suggest you use PreloadAsync with instances instead. Preload will be deprecated soon.

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