# data[].attributes.attachment_link.readable_text
local npc = script.Parent

local function grab(hit)
	if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
		print("Grabbed")
		hit.Parent.HumanoidRootPart.CFrame = npc["Left Arm"].CFrame
		npc:MoveTo((workspace.Part.Position - npc.HumanoidRootPart.Position)/2)
		task.wait(0.5)
		local position = workspace.Part.Position
		local ratio = 2
		local direction = hit.Parent.HumanoidRootPart.CFrame.LookVector * 5 + hit.Parent.HumanoidRootPart.Position
		local force = direction * ratio + Vector3.new(0, game.Workspace.Gravity * 0.5 / ratio, 0)
		hit.Parent.HumanoidRootPart.AssemblyLinearVelocity = force

		wait(0.4)
		--hit.Parent.Humanoid.Health = 0
	end
end

for _, object in pairs(npc:GetChildren()) do
	if object:IsA("BasePart") then
		object.Touched:connect(grab)
		task.wait(6)
	end
end