Animation or HumanoidRootPart Fix?

I loaded a player’s avatar with a normal script but when another script loads the animation to that Dummy, it causes it to look like this:

i.e. my avatar:
image

These are the properties of the ‘PlayerDummy’ Model:

Load Avatar Script:

local Players = game:GetService("Players")

local function PlayerAdded(Player)

	local function CharacterAdded(Character)

		local Humanoid = Character:WaitForChild("Humanoid")

		local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)

		workspace.PlayerDummy.Humanoid:ApplyDescription(HumanoidDescription)

	end

	Player.CharacterAdded:Connect(CharacterAdded)
end

Players.PlayerAdded:Connect(PlayerAdded)

Load animation script:

-- Variables
local set = script.Settings
local sp = set.Speed
local enabled = set.Enabled
local hum = script.Parent:FindFirstChild("Humanoid")

-- Check if Humanoid exists
if hum then
	print("Humanoid found.")

	-- Load the animation
	local humanim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))

	-- Playing Animation
	if enabled.Value == true then
		humanim:Play()
		humanim.Looped = true
		humanim:AdjustSpeed(sp.Value)
	end
else
	print("No Humanoid found.")
end

I am not sure why this happens, I grabbed a R6 dummy out of toolbox and it caused that. A solution I tried was use the official Roblox R6 Rig model but when I tested that out the avatar didn’t load into that Rig. The animation did though.

2 Likes