while true do if master then distance=(pet.SpringAttach.WorldPosition-master.Position).Magnitude if distance>maxDistance*1.5 then pet.CFrame=master.CFrame end end wait()end

while true do
	if master then
		distance = (pet.SpringAttach.WorldPosition - master.Position).Magnitude

		if distance > maxDistance*1.5 then
			pet.CFrame = master.CFrame
		end

	end
	wait()
end






















