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!