local m=.75 local C=.035 local W=false local e=0 spawn(function()while true do wait()if not W then e=e+C if e>=m then W=true end else e=e-C if e<=-m then W=false end end script.Parent.globalPetFloat.Value=e end end)


local maxFloat = .75
local floatInc = 0.035
local sw = false
local fl = 0

spawn(function() 
	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
		script.Parent.globalPetFloat.Value = fl
	end
end)
