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)