Make a Tool Pull Out Animation and Idle Animation play when equipped?

Hello.

I’m trying to make a tool play a certain animation (where it pulls out the tool) when equipped, and after that play an idle animation while equipped. How would I go on about making that work?

local KarambitTool = script.Parent;

local LocalPlayer = game:GetService("Players").LocalPlayer;
local Mouse = LocalPlayer:GetMouse();

local IdleAnimation;
local PullOutAnimation;

KarambitTool.Equipped:Connect(function()
	Equipped = true;
	LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson;
end);

KarambitTool.Unequipped:Connect(function()
	Equipped = false;
	LocalPlayer.CameraMode = Enum.CameraMode.Classic;
end);

I don’t know a way to tell if the animation is playing or done playing since Animation.Completed:Wait() isn’t a thing (i think). I’ve tried this a bunch of times but I’m just too unfamiliar with animating and tools.

1 Like