Animation not playing in Studio

Ah - thanks for that - but it still does not work

hmm
can i get access to your game?

1 Like

Here is the file:

Error.rbxl (102.3 KB)

1 Like

Everything seems fine to me

note:I used my own animation
ROBLOX does not allow us to use people’s animation

huh - I have no idea why it does not work then, it must be the animation.

Also I have an inquiry: What anim priority did you use?

Animation priority Action

30

I will try and do that, one sec.

1 Like

I changed it to action, but it still does not work.

Did you alter any of the scripts?

If not, then I do not know what the issue is.

No, I did not alter anything

can you print the animation
so just add

local function PlayAnim(AnimName, AnimID)
	if hum then
		if AnimationTracks[AnimName] then
			AnimationTracks[AnimName]:Play()
		else
			Animation[AnimName] = Instance.new("Animation")
			Animation[AnimName].AnimationId = AnimID
			pcall(function()
				AnimationTracks[AnimName] = hum:LoadAnimation(Animation[AnimName])
				AnimationTracks[AnimName]:Play()
                            Print(AnimationTracks[AnimName])
			end)
		end
	end
end

It prints the name, (I named it Handle), but it still does not work.

I really do not think it is a scripting error anymore. I think it may be an animation error from my side.

Is it a group game your making?
If it’s a group game and you’ve uploaded the animation as yours not the groups then it won’t work (even if your the group owner). You will need to upload it as a group upload.

2 Likes

Well yes and no.

The animator made the animation on their own separate file.

I simply exported the animationId and imported it into the script.

I tried via my own account, then through my group game (I am not the group owner but I am the highest rank available (254)) but both do not work.

image

The animation must be Exported to your group

1 Like

Why so?

The rig / animation was not made via a group.

Where is the game?

Is it your own or a group one?

It is my own personal file - I have not exported the game.

And who exported the animation?

The animator gave me the rig - then I exported it myself.

Was it working inside Animation Editor?

1 Like

Yes - it was working inside the animation editor.

(Apologies with this recapitulating language - roblox wants me to post 30+ chars).