Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animations won't load in studio and ingame (Unanswered)?

Asked by
Vid_eo 126
5 years ago

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!

0
What does the error say? PoePoeCannon 519 — 5y
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 Vid_eo 126 — 5y
0
Are you using team create with a friend? PoePoeCannon 519 — 5y
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 Vid_eo 126 — 5y
View all comments (9 more)
0
(and it won't work in studio) Vid_eo 126 — 5y
0
What do you mean by he gave you the animations? PoePoeCannon 519 — 5y
0
He owns the animations then pasted them into the StarterPack. Vid_eo 126 — 5y
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. PoePoeCannon 519 — 5y
0
Alright, thanks. Vid_eo 126 — 5y
0
no problem, It can be a real pain to share animations in Roblox unfortunately :( PoePoeCannon 519 — 5y
0
how would I put the animation into the animation editor if I don't own it? thanks Vid_eo 126 — 5y
0
name of your animation? worklok -24 — 5y
0
wdym? Vid_eo 126 — 5y

Answer this question