Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is my Animation not playing when using AnimationController on non player npc?

Hi im trying to make a jojo game when u press Q your stand appear it does appear but it doesnt play the animation and no errors pops out the stand/npc has no humanoid

local summonre = game.ReplicatedStorage:WaitForChild("Sum")

summonre.OnServerEvent:Connect(function(plr, standname)
	local char = plr.Character
	local animator = char.Humanoid.Animator
	local standoska = game.ServerStorage.Stand:WaitForChild("Bald star platinum"):Clone()
	standoska.Parent = char
	print("getting control")
	local controller = standoska:WaitForChild("Animcontrol")
	print("gotcontrol")
	local Idle = controller:LoadAnimation(game.ServerStorage.Stand["Bald star platinum"].Idle)
	print("idled???")
	Idle:Play()
	print("Played")
	local heh = standoska:WaitForChild("HumanoidStandPart")
	local weld = Instance.new("ManualWeld", heh)
	weld.Part0 = heh
	weld.Part1 = char:WaitForChild("HumanoidRootPart")
	weld.C0 = heh.CFrame:Inverse() * char:WaitForChild("HumanoidRootPart").CFrame
	weld.Parent = weld.Part0
end)

pls help

1 comment

0

Oh and they also did print

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.