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

I tried animating a starter character, why doesnt it work?

I tried putting the animate script into the character or just into startercharacterscripts but nothing is working. I uploaded the animation, pasted it in, but it didnt work. can someone help me? Is there more steps to animating a startercharacter? my rig type is r6.

7 comments

0

What type of animation?

0

r6

0

No, like what does the rig do in the animation?

0

oh like walk idle and that stuff? I did all of them

0

i even tried one but it wouldnt work.

0

rip

0

I will explain how to change animations to set it defaultly for all in the answers.

2 answers

✓ Accepted answer
local Players = game:GetService("Players") -- Variables
 
local function onCharacterAdded(character)
	local humanoid = character:WaitForChild("Humanoid")
 
	for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
		playingTracks:Stop(0)
	end
 
	local animateScript = character:WaitForChild("Animate")
	animateScript.run.RunAnim.AnimationId = "rbxassetid://616163682"        -- Run
	animateScript.walk.WalkAnim.AnimationId = "rbxassetid://616168032"      -- Walk
	animateScript.jump.JumpAnim.AnimationId = "rbxassetid://616161997"      -- Jump
	animateScript.idle.Animation1.AnimationId = "rbxassetid://616158929"    -- Idle (Variation 1)
	animateScript.idle.Animation2.AnimationId = "rbxassetid://616160636"    -- Idle (Variation 2)
	animateScript.fall.FallAnim.AnimationId = "rbxassetid://616157476"      -- Fall
	animateScript.swim.Swim.AnimationId = "rbxassetid://616165109"          -- Swim (Active)
	animateScript.swimidle.SwimIdle.AnimationId = "rbxassetid://616166655"  -- Swim (Idle)
	animateScript.climb.ClimbAnim.AnimationId = "rbxassetid://616156119"    -- Climb
-- change all of the id's to your animation ids.
end
 
local function onPlayerAdded(player)
	player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end
 
Players.PlayerAdded:Connect(onPlayerAdded)

Catalog Animations - https://developer.roblox.com/articles/catalog-animations Just incase you wanted to use something like Elderly or Toy.

2 comments

0

where do i put this script and would it be in a local script or what?

0

A normal script into serverscriptservice. Glad to help

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