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)