Scripter in need! Animations don't work and I cant figure out why!

I need animations to work. I am in a team create with my client and no animations will load that were created outside the game will work. I made some animations in the game and they work… but only show up for me. I have tried my own animations, I have tried everything to my knowledge. I am a scripter and I don’t have a great understanding of animations. If anybody even thinks they know what’s going wrong please comment, anything helps! Thank you!

local SwordAnim = Instance.new("Animation")
SwordAnim.AnimationId = "rbxassetid://" .. SwordAnimID
local SwordAnimTrack = humanoid:LoadAnimation(SwordAnim)

local ShieldAnim = Instance.new("Animation")
ShieldAnim.AnimationId = "rbxassetid://" .. ShieldAnimID
local ShieldAnimationTrack = humanoid:LoadAnimation(ShieldAnim)

local function ShieldUP()
	ShieldAnimationTrack:Play()
	wait(ShieldAnimationTrack.Length - .15)
	ShieldAnimationTrack:AdjustSpeed(0)
end

local function ShieldDOWN()
	ShieldAnimationTrack:AdjustSpeed(1)
end

--Functions that play the animations (Doesn't affect loading.)
2 Likes

Is this Team Create under a group?

If not, Roblox makes it such that you are only able to see animations that you uploaded on your own. This is to prevent others from stealing them.

1 Like

I suspected that was the problem. The game is under his account, and I don’t think his animations even work (but I’m not sure). I want to finish this job and it’s frustrating that this problem isn’t with my code lol. Should he just make his own animations in the game to make it work?

1 Like

Will the animations work if he makes them in the game or do the animations have to be under a group?

1 Like

If you would like to, you can ask the original developer to send you the animation to reupload to your account and test in Studio.

I believe they have to be under a group, if you still want to develop the game as a Team, and be able to view the animations. Possibly why private groups for testing and development exists for popular games.

1 Like

You can ask the other person to import his animations to Animation Editor and export it again but this time to the group. Then all he needs to do is replace the animation IDs to the new IDS from the uploaded animations in your group

2 Likes

Also cough cough

local SwordAnimTrack = humanoid:FindFirstChildWhichIsA("Animator"):LoadAnimation(SwordAnim)
local ShieldAnimationTrack = humanoid:FindFirstChildWhichIsA("Animator"):LoadAnimation(ShieldAnim)

Please start using this method for animations. humanoid:LoadAnimation() is deprecated, and requires you to now mention the Animator :slight_smile:

1 Like