function GetScreen(y)if y==nil then return nil end while not y:IsA("\083\099\114\101\101\110\071\117\105")do y=y.Parent if y==nil then return nil end end return y end
-- returns the ascendant ScreenGui of an object
function GetScreen(screen)
	if screen == nil then
		return nil
	end
	while not screen:IsA("ScreenGui") do
		screen = screen.Parent
		if screen == nil then
			return nil
		end
	end
	return screen
end
