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

Tool animations do not play after you reset?

Asked by 5 years ago

I have some tools with custom animations such as idle animations and stuff like that. They work flawlessly.

However, when you reset with the tool equipped, the animations just completely break and do not play for me.

Tool working normally, and then resetting: https://gyazo.com/010bdaa18dffd0921ebbeed73db257ad

Tool after resetting: https://gyazo.com/f35019b16345b59ccdc1dbb70f09842a

The error in the output: https://gyazo.com/ca86fad2a96f6c722882990c008ed4c7

Heres the code I use for that tool if it helps:

01local Attack = Instance.new("Animation",script.Parent)
02Attack.AnimationId = 'rbxassetid://4574156500'
03Attack.Name = "FLAK Attack"
04 
05local Idle = Instance.new("Animation",script.Parent)
06Idle.AnimationId = 'rbxassetid://4574118929'
07Idle.Name = "FLAK Idle"
08 
09local player = game.Players.LocalPlayer
10local character
11 
12repeat
13    character = player.Character
14    wait()
15until character
View all 42 lines...

Any help would be very appreciated!

0
Woops, the gyazo links don't really work. Just highlight everything after https:// comfycouchman 0 — 5y

Answer this question