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

Animation not loading or trusted?

So i have a module script with the following code in workspace.

function animatePlayer(animation, plr)
	if plr:IsA("Player") then
		local anim = Instance.new("Animation")
		anim.AnimationId = animation
		
		local animTrack = plr.Character.Humanoid:LoadAnimation(anim)
		animTrack:Play()
		print 'Shoulda Casted'
	end
end

return animatePlayer

and in a local script inside the player i have this line of code

local animateModule = require(game.Workspace.Animations.Handler) 		
animateModule(AbScript.Anim.Value, plr) -- Sets Animation

It says the animation couldnt load. So i made a new animation in hopes it will fix, but now it says

"Asset not trusted" "Could not load animation"

Is it not possible to run animations like this?

1 comment

0

Use your own animations, "My Crappy Solution".

1 answer

Do you own the animation, or is the animation free to take. If not then it wont work

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