Hey all!
Background Information About The Topic:
So, logically, Roblox/Roblox Studios disallows the Animator from ever being placed outside of a Humanoid or AnimationController, right?
Well, for some reason, in rare cases, a game cannot be opened because of a pop-up error that says “Animator has to be placed under humanoid or AnimationController”. Now, of course we can’t fix that error when trying to open the game because the pop-up prevents us from even opening up the game to fix that animator issue. Unlike XML Serializer issues or other issues that randomly cause a game to be un-openable, this one sounds fixable or at least something worth understanding?
The Issue:
Why/How does this happen:
Here’s a demo game, when you open it, you get that error:Baseplate.rbxlx (3.6 MB)
Also, how can I cause this error to happen to a game intentionally and how can I avoid causing this error in the future…?
What I’ve Attempted:
Now, if we go into studios to try and replicate this error, all manual efforts are prevented by Roblox Studios by default… saying the exact same message, but this is with studios having the game opened.
So, why would a game ever give out the error above if Roblox Studios doesnt let the Animator ever get out of the Humanoid or AnimationController?
1). Attempting to move the Animator out via localscript:
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
local animator = humanoid:FindFirstChild("Animator")
-- trying to move the animator somewhere else:
animator.Parent = character.Head
Sadly, causes this error hmm…
2). Attempting to move the Animator out…manually: