Answered by
6 years ago Edited 6 years ago
Here is a better idea, create an Animation, export it to roblox, use its ID, ( Note : Make sure to not ENABLE Looping, unless its an IDLE animation. ), then create an Animation inside the Tool, And then make a script like this..
2 | if tool.Activated = true then |
3 | script.Parent.Animation:Play() |
5 | if tool.Unequipped = true then |
6 | script.Parent.Animation:Stop() |
I'm not 100% sure if it works, tell me if it gives an error.
Hope this helps :)!
02 | local player = game.Players.LocalPlayer |
03 | repeat wait() until player.Character ~ = nil |
04 | local hum = player.Character:WaitForChild( "Humanoid" ) |
06 | local animation = Tool.DanceAnim |
07 | local AnimTrack = hum:LoadAnimation(animation) |
09 | Tool.Selected:connect( function (mouse) |
10 | mouse.Button 1 Down(connect( function () |
15 | Tool.Deselected:connect( function () |
If my script doesn't works then try this to run an animation inside your tool ( Credits to Spongocardo )