I need to make it, so the animations show for other players, and not only for me. They can move around and such, but they won’t work for others. Keep in mind this is a custom character, following a tutorial from GnomeCode. I’ve been researching so much, and none of it fixes it.
It’s not a group game and only I own it.
local character = script.Parent
local animator = Instance.new("Animator")
local humanoid = character:WaitForChild("Humanoid")
animator.Parent = humanoid
local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = humanoid:LoadAnimation(walkAnim)
local animateScript = character:WaitForChild("Animate")
humanoid.Running:Connect(function(speed)
if speed > 0 then
if not walkAnimTrack.IsPlaying then
walkAnimTrack:Play()
end
else
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
end
end
end)
--this was all made by GnomeCode
I’m a beginner at animating, so please just bear with me here and explain the problem thoroughly.
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid.Animator
local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = animator:LoadAnimation(walkAnim)
local animateScript = character:WaitForChild("Animate")
So, when you say this (I got a bit confused), do I add :WaitForChild() to the humanoid.Animator? Or do I add a completely different thing? (I added WaitForChild to it, and it did not play the animation.)