local w=.75 local z=.035 local y=false local o=0 spawn(function()while true do wait()if not y then o=o+z if o>=w then y=true end else o=o-z if o<=-w then y=false end end script.Parent.globalPetFloat.Value=o 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)
