hi, i intend to make an animation which plays when the player triggers a button but the tool doesnt connect to the hand when the animation is played, instead it is stuck in the idle position.
im stuck on this problem; so any help will be appreciated
local smile = script.Parent
smile.Equipped:Connect(function()
local atrest = smile.Parent.Humanoid:LoadAnimation(smile.Animations.AtRest)
atrest:Play()
local ToolGrip = smile.Parent.Torso:FindFirstChild("BodyAttch")
ToolGrip.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(30), math.rad(-15), math.rad(0))
end)
smile.Activated:Connect(function()
local consume = smile.Parent.Humanoid:LoadAnimation(smile.Animations.Consume)
consume.Priority = Enum.AnimationPriority.Action4
consume:Play()
end)