local t=.75 local Z=.035 local u=false local B=0 spawn(function()while true do wait()if not u then B=B+Z if B>=t then u=true end else B=B-Z if B<=-t then u=false end end script.Parent.globalPetFloat.Value=B end end)
-- Global Pet Float

local maxFloat = 0.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)
