Some animations I have won't load. This is an example of an animation. I put it in the StarterGear and it's supposed to give you 2 money every time it plays-- the error isn't in that part, since I removed the adding money part and it still didn't load.

I even tried adding a wait-- still the same problem.

A LocalScript inside the animation:

repeat wait() until game.Players.LocalPlayer.Character ~= nil

local moneyModule = require(game:GetService("ReplicatedStorage").Modules:WaitForChild("addMoneyModule"))
anim = script.Parent.Animation
tool = script.Parent
p = tool.Parent.Parent
mouse = p:GetMouse()
c = p.Character
LoadAnim = c.Humanoid:LoadAnimation(anim)
debounce = false

CoolDown = 0



function PlayAnim()
	LoadAnim:Play()
	wait(CoolDown)
	moneyModule.addMoney(script.Parent.addMoneyAmount, game.Players.LocalPlayer)
	debounce = false
end

function OnSelect(mouse)
	mouse.Button1Down:connect(function()
		if debounce == false then
			debounce = true
			PlayAnim()
		end
	end)
end

tool.Selected:connect(OnSelect)

STILL UNANSWERED, R6 IS ENABLED INGAME BECAUSE THESE ARE R6 ANIMATIONS!

13 comments

0

What does the error say?

0

19:27:21.141 - Animation "https://www.roblox.com//asset/?id=1342707918&serverplaceid=0" failed to load in "Players.Vid_eo.Backpack.BDBB.Animation.AnimationId": Animation failed to load

0

Are you using team create with a friend?

0

Yes. He gave me the animations. I'm the owner of the game, though. It also won't work in game as I said before

0

(and it won't work in studio)

0

What do you mean by he gave you the animations?

0

He owns the animations then pasted them into the StarterPack.

0

Since you are the owner, you have to own the animation for it to play on your game. You can try taking the animation and putting it into the animation editor and then uploading it for yourself.

0

Alright, thanks.

0

no problem, It can be a real pain to share animations in Roblox unfortunately :(

0

how would I put the animation into the animation editor if I don't own it? thanks

0

name of your animation?

0

wdym?