--function SwapToCollarAnimation(victim)
--	local character = victim.Character
--	local animationScript = character:WaitForChild("Animate")
--	animationScript.idle.Animation1.AnimationId = "rbxassetid://".. tostring(script.AnimationsSettings.IdleAnim.Value)
--	animationScript.idle.Animation2.Weight.Value = 0
--	
--	animationScript.jump.JumpAnim.AnimationId = "rbxassetid://".. tostring(script.AnimationsSettings.JumpAnim.Value)
--	animationScript.fall.FallAnim.AnimationId = "rbxassetid://".. tostring(script.AnimationsSettings.FallAnim.Value)
--	
--	animationScript.run.RunAnim.AnimationId = "rbxassetid://".. tostring(script.AnimationsSettings.CrawlAnim.Value)
--	animationScript.walk.WalkAnim.AnimationId = "rbxassetid://".. tostring(script.AnimationsSettings.CrawlAnim.Value)
--end


function module.MakeCollar(owner,victim)
	--crea collare ed attachment
	local attachment0 = GiveCollarGetAttachment(victim)
	local attachment1 = AddAttachmentToArm(owner)
	--
	
	--crea leash
	local newRope = MakeLeash(attachment0, attachment1)
	--
	
	--aggiungi il controllo del giocatore
	AddPlayerController(victim, owner, newRope.RemoveCollar)
	--
	
	--finisci con il controllo della rimozione
	AddCollarRemover(victim,owner,newRope.RemoveCollar)
	--
	
	--cambia le animazioni
	--SwapToCollarAnimation(victim)
	--
end

return module
