This Sometimes happen when i load the player’s character using :LoadCharacter()
i tried fixing it by adding a few lines to the script, removing the player’s packages or getting their avatar and reloading it didn’t fix it, here’s the script
wait(1)
local function RemoveMeshes(Character)
local Done = false
while wait() do
local Success, Error = pcall(function()
local Humanoid = Character:WaitForChild("Humanoid")
wait()
local CurrentDescription = Humanoid:GetAppliedDescription()
CurrentDescription.Head = 0
CurrentDescription.Torso = 0
CurrentDescription.LeftArm = 0
CurrentDescription.RightArm = 0
CurrentDescription.LeftLeg = 0
CurrentDescription.RightLeg = 0
Humanoid:ApplyDescription(CurrentDescription)
Done = true
end)
if Done == true then
break
end
end
end
if Player1 then
if Player1.Character then
Player1:LoadCharacter()
wait(0.1)
local playersService = game:GetService("Players")
local player = playersService[Player1.Name]
local humDesc = playersService:GetHumanoidDescriptionFromUserId(Player1.UserId)
player:LoadCharacterWithHumanoidDescription(humDesc)
wait(0.1)
if Player1 then
if Player1.Character then
RemoveMeshes(Player1.Character)
end
end
end
end
any help appreciated.
