------------------------------




























































script.Parent.CanCollide = false
script.Parent.Anchored = false
for i,v in pairs(script.Parent:GetChildren()) do
	if v.ClassName == "Part" or v.ClassName == "WedgePart" or v.ClassName == "TrussPart" or v.ClassName == "CornerWedgePart" or v.ClassName == "MeshPart" then
		v.Anchored = false
		v.CanCollide = false
	end
end







while true do
					wait()
					if not sw then
						fl = fl + floatInc
						if fl >= maxFloat then
							sw = true
						end
					else
						fl = fl - floatInc
						if fl <=-maxFloat then
							sw = false
						end
					end
					if pet ~= nil and hum ~= nil and head ~= nil then
						if hum.Health >= 0 then
							local cf = head.CFrame * CFrame.new(3,-2.5+fl,3)
							pet.BodyPosition.Position = Vector3.new(cf.x,cf.y,cf.z)
							pet.BodyGyro.CFrame = head.CFrame * CFrame.new(3,0,-3)
						else
							break
						end
					end
				end
	
	
	
	



