Animation doesnt stop

Once when i play anim on player his hands remain in the same position as they were during the animation. It’s not looped.

Local script:
local event = script.Parent.boxAttack
local event2 = script.Parent.boxTake

script.Parent.Activated:Connect(function()
event:FireServer()
end)

script.Parent.Equipped:Connect(function()
local isTake = 1
event2:FireServer(isTake)
end)

script.Parent.Unequipped:Connect(function()
local isTake = 2
event2:FireServer(isTake)
end)

script:
local event = script.Parent.boxAttack

local event2 = script.Parent.boxTake

event2.OnServerEvent:Connect(function(plr, isTake)

local anim = script.Parent.Animation

local hum = plr.Character:WaitForChild('Humanoid')
local anim2 = hum:LoadAnimation(anim)

if isTake == 1 then
	print('Taked')
	
	anim2.Looped = true
	anim2:Play()
	
end
if isTake == 2 then
	print('UnTaked')
	anim2.Looped = false
	anim2:Stop()

	
	

	
	
end

end)

It is looped, in the server event:

anim2.Looped = true
anim2:Play()

Remove that and see if it solves your issue.

i need that anim play when i take a box

I mean remove the anim2.Looped = true. It makes the animation loop, which you dont want.

1 Like

idk it still playsssssssss wwwwww

Does it play all the time? like its looped? im confused. You can also try to set anim2.Looped = false