(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:Connect(function(s)for s,W in pairs(workspace:GetDescendants())do if W.Name=="\072\101\097\100"then if(head.Position-W.Position).Magnitude<=20 then BP.Position=lookAt(W.Position)local s=springPart.Position neck.C0=neckC0*CFrame.fromEulerAnglesYXZ(s.z*.5,s.x,0)waist.C0=waistC0*CFrame.fromEulerAnglesYXZ(s.z*.5,s.y,0)else BP.Position=lookAt(target.Position)local s=springPart.Position neck.C0=neckC0*CFrame.fromEulerAnglesYXZ(s.z*.5,s.x,0)waist.C0=waistC0*CFrame.fromEulerAnglesYXZ(s.z*.5,s.y,0)end end end end)


game:GetService("RunService").Heartbeat:Connect(function(dt)
	for i,v in pairs(workspace:GetDescendants()) do
	if v.Name == "Head" then
	if (head.Position - v.Position).Magnitude <= 20 then
	BP.Position = lookAt(v.Position);
	local set = springPart.Position;
	neck.C0 = neckC0 * CFrame.fromEulerAnglesYXZ(set.z*0.5, set.x, 0);
	waist.C0 = waistC0 * CFrame.fromEulerAnglesYXZ(set.z*0.5, set.y, 0);
	else
	BP.Position = lookAt(target.Position);
	local set = springPart.Position;
	neck.C0 = neckC0 * CFrame.fromEulerAnglesYXZ(set.z*0.5, set.x, 0);
	waist.C0 = waistC0 * CFrame.fromEulerAnglesYXZ(set.z*0.5, set.y, 0);
end
end
end
end);













