A tool localscript that keeps getting this error in game. Not in studio, even when testing. But for some reason it bugs when playing the actual game. Heres the script
01 | local player = game.Players.LocalPlayer |
02 | local chara = player.CharacterAdded:wait() |
03 | local toolModel = script.Parent |
04 | local handle = toolModel:WaitForChild( "Handle" ) |
05 |
06 | flagstop = true |
07 | toolModel.Equipped:Connect( function () |
08 | Atkanim 1 = chara.Humanoid:LoadAnimation(script.Parent.Animations.Atk 1 Anim) |
09 | end ) |
10 |
11 | toolModel.Activated:Connect( function () |
12 | if (flagstop) then |
13 | print ( "Working" ) |
14 | Atkanim 1 :Play() |
15 | flagstop = false |
16 | wait(toolModel.Config.atk 1 dla.Value) |
17 | flagstop = true |
18 | end |
19 | end ) |
and heres the client error when playing the game
1 | 21 : 06 : 16 -- Animation "rbxassetid://4249636404" failed to load in |
2 | "Workspace.elitekiller2342.MactinV1.Animations.Atk1Anim.AnimationId" : Animation failed to load |
This isn't a group creation but it is however a team creation(and im not the owner). Not sure if that matters but hey idk.
The problem is: The animation is not owned by you. Yeah, I find team create buggy sometimes, and developing at a group game is defiently much better than in team create. But if that's not possible, the only way to work together is by using team create. (Databases gets messed up in team create as well)
If you want to test the animatoins, you'll need to upload the animations yourself, and use the IDs that your newly uploaded animations have.
Hope this helped you and continue on scripting! ^^