--local function attack(target)
--	local distance = (TeddyAI.HumanoidRootPart.Position - target.HumanoidRootPart.Position).Magnitude

	--if distance > 90 then
	--	humanoid:MoveTo(target.HumanoidRootPart.Position)
	--else
		--stop movement
		--TeddyAI.Humanoid.WalkSpeed = 0
		--target.Humanoid.WalkSpeed = 0
		-- play sound
	--	TeddyAI.Head.AttackSound:Play()
		--fire event
		--local events = game.ReplicatedStorage:WaitForChild("Events")
		--local player = game.Players:GetPlayerFromCharacter(target)
		--events:WaitForChild("playerDeath"):FireClient(player, TeddyAI)
		 --play the animation
		--local attackAnim = humanoid:LoadAnimation(script.AttackAnim)
		--attackAnim:Play()
		--attackAnim.Stopped:Wait()
		 --kill the player
		--target.Humanoid.Health = 0
		--restart movement
		--TeddyAI.Humanoid.WalkSpeed = script.Parent.Humanoid.WalkSpeed
	--end