Hi guys.
I often enough use player’s character’s dummy. Like mannequin - for tutorial, for inventory, for player list…
And out of nothing, code in singular instance has decided to not work: inventory equipment panel:
coroutine.wrap(function()
local Rig = GuiSections.Equipment.Parent:WaitForChild("CharacterBackground"):WaitForChild("Rig")
local Humanoid:Humanoid = Rig:WaitForChild("Humanoid")
local Appearence = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
Humanoid:ApplyDescription(Appearence)
end)()
While, for example, tutorial works well:
local Appearence = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
local Character = Assets.BaseCharacter:Clone()
Character:PivotTo(Island.SpawnPad:GetPivot() * CFrame.new(0, Character:GetExtentsSize().Y/2, 0))
Character.Humanoid.WalkSpeed = 10
Character.Parent = TutorialFolder
Character:WaitForChild("Humanoid"):ApplyDescription(Appearence)
Parameters.Character = Character
Both scripts are ModuleScripts, under control of LocalScript, and I expect them to work both. But why first one gives error Humanoid::ApplyDescription() can only be called by the backend server
while second just works?
Yes, I looked at that error and other posts. But WHY IN THE WORLD one of LocalScripts don’t works with that method, while OTHER ones work? They all are LOCAL scripts:
Yep, there’s not much people more stubborn than me. Sorry for that.
(I have found that coroutines can yield current thread around 2 weeks ago, after 3 years of painfull workarounds =D )
No, at that moment I have not noticed your edit.
Anyways, adding Enum not helped, error stays.
I have found bypass to that limitation - if dummy rig is CLONED, and then THAT rig attempted to apply humanoid description, it will work.
That’s why all my other scripts were working.