There's a way for reduce this script?

Well, i’m working in a GUI using a module that is open sourced.
And even using that, my script get extremely big, and maybe kinda poorly optimized, that’s make the script a little confuse. There’s a way for reduce it? And well, if there’s nothing can me do, can you guys recommend me a new module?

Sorry if it has english errors, i learned with myself.

local SHPM = script.Parent.Parent.ShopMain
local SHPB = script.Parent

local MDL = require(game.ReplicatedStorage.GuiAnimations)

SHPB.MouseButton1Click:Connect(function() -- SHOP
	if SHPM.Visible == false then
		SHPM.Visible = true
		SHPM.Position = UDim2.new(0.338, 0,0.266, 0)
		SHPM:TweenPosition(UDim2.new(0.338, 0,0.226, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .1, true)
		
		MDL.FadeOut(SHPM,.1,"Frame")
		MDL.FadeOut(SHPM.BackGround,.1,"Frame")  -- frames
		
		MDL.FadeOut(SHPM.Gear_Overlay.BANG,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.CandyBag,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.ChocolateMilk,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.Fire,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.FlashLight,.1,"Image")  -- itens of Gears
		MDL.FadeOut(SHPM.Gear_Overlay.Pizza,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.SpeedCoil,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.Radar,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.Tacos,.1,"Image")
		
		MDL.FadeOut(SHPM.Coins_Button,.1,"Image")
		MDL.FadeOut(SHPM.Coins_Button.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Coins_Button.h,.1,"Image")
		MDL.FadeOut(SHPM.Coins_Button.TextLabel,.1,"Text")
		
		MDL.FadeOut(SHPM.Frog_Button,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Button.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Button.TextLabel,.1,"Image")
		
		MDL.FadeOut(SHPM.Gear_Button,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Button.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Button.h,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Button.TextLabel,.1,"Image")
		
		
		MDL.FadeOut(SHPM.Gear_Overlay.BANG.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.CandyBag.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.ChocolateMilk.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.Fire.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.FlashLight.ImageLabel,.1,"Image")  -- inside of itens of Gears(images)
		MDL.FadeOut(SHPM.Gear_Overlay.Pizza.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.SpeedCoil.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.Radar.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Gear_Overlay.Tacos.ImageLabel,.1,"Image")
		
		MDL.FadeOut(SHPM.Gear_Overlay.BANG.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.CandyBag.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.ChocolateMilk.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.Fire.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.FlashLight.TextGear,.1,"Text")  -- inside of itens of Gears(text)
		MDL.FadeOut(SHPM.Gear_Overlay.Pizza.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.SpeedCoil.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.Radar.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Gear_Overlay.Tacos.TextGear,.1,"Text")
		
		MDL.FadeOut(SHPM.Gear_Overlay.BANG.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.CandyBag.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.ChocolateMilk.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.Fire.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.FlashLight.TextGear,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeOut(SHPM.Gear_Overlay.Pizza.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.SpeedCoil.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.Radar.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.Tacos.TextGear,.1,"Frame")

		MDL.FadeOut(SHPM.Gear_Overlay.BANG,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.CandyBag,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.ChocolateMilk,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.Fire,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.FlashLight,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeOut(SHPM.Gear_Overlay.Pizza,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.SpeedCoil,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.Radar,.1,"Frame")
		MDL.FadeOut(SHPM.Gear_Overlay.Tacos,.1,"Frame")
		
		
		
		MDL.FadeOut(SHPM.Frog_Overlay.BANG,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.CandyBag.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.ChocolateMilk.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.Fire.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.FlashLight.ImageLabel,.1,"Image")  -- inside of itens of Gears(images)
		MDL.FadeOut(SHPM.Frog_Overlay.Pizza.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.SpeedCoil.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.Radar.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Frog_Overlay.Tacos.ImageLabel,.1,"Image")

		MDL.FadeOut(SHPM.Frog_Overlay.BANG.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.CandyBag.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.ChocolateMilk.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.Fire.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.FlashLight.TextGear,.1,"Text")  -- inside of itens of Gears(text)
		MDL.FadeOut(SHPM.Frog_Overlay.Pizza.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.SpeedCoil.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.Radar.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Frog_Overlay.Tacos.TextGear,.1,"Text")

		MDL.FadeOut(SHPM.Frog_Overlay.BANG.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.CandyBag.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.ChocolateMilk.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.Fire.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.FlashLight.TextGear,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeOut(SHPM.Frog_Overlay.Pizza.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.SpeedCoil.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.Radar.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.Tacos.TextGear,.1,"Frame")

		MDL.FadeOut(SHPM.Frog_Overlay.BANG,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.CandyBag,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.ChocolateMilk,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.Fire,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.FlashLight,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeOut(SHPM.Frog_Overlay.Pizza,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.SpeedCoil,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.Radar,.1,"Frame")
		MDL.FadeOut(SHPM.Frog_Overlay.Tacos,.1,"Frame")
		
		
		MDL.FadeOut(SHPM.Froins_Overlay.BANG,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.CandyBag.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.ChocolateMilk.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.Fire.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.FlashLight.ImageLabel,.1,"Image")  -- inside of itens of Gears(images)
		MDL.FadeOut(SHPM.Froins_Overlay.Pizza.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.SpeedCoil.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.Radar.ImageLabel,.1,"Image")
		MDL.FadeOut(SHPM.Froins_Overlay.Tacos.ImageLabel,.1,"Image")

		MDL.FadeOut(SHPM.Froins_Overlay.BANG.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.CandyBag.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.ChocolateMilk.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.Fire.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.FlashLight.TextGear,.1,"Text")  -- inside of itens of Gears(text)
		MDL.FadeOut(SHPM.Froins_Overlay.Pizza.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.SpeedCoil.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.Radar.TextGear,.1,"Text")
		MDL.FadeOut(SHPM.Froins_Overlay.Tacos.TextGear,.1,"Text")

		MDL.FadeOut(SHPM.Froins_Overlay.BANG.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.CandyBag.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.ChocolateMilk.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.Fire.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.FlashLight.TextGear,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeOut(SHPM.Froins_Overlay.Pizza.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.SpeedCoil.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.Radar.TextGear,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.Tacos.TextGear,.1,"Frame")

		MDL.FadeOut(SHPM.Froins_Overlay.BANG,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.CandyBag,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.ChocolateMilk,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.Fire,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.FlashLight,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeOut(SHPM.Froins_Overlay.Pizza,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.SpeedCoil,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.Radar,.1,"Frame")
		MDL.FadeOut(SHPM.Froins_Overlay.Tacos,.1,"Frame")
		
	else
		
		SHPM:TweenPosition(UDim2.new(0.338, 0,0.266, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .1, true)
		
		MDL.FadeIn(SHPM,.1,"Frame")
		MDL.FadeIn(SHPM.BackGround,.1,"Frame")  -- frames

		MDL.FadeIn(SHPM.Gear_Overlay.BANG,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.CandyBag,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.ChocolateMilk,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.Fire,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.FlashLight,.1,"Image")  -- itens
		MDL.FadeIn(SHPM.Gear_Overlay.Pizza,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.SpeedCoil,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.Radar,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.Tacos,.1,"Image")
		
		MDL.FadeIn(SHPM.Coins_Button,.1,"Image")
		MDL.FadeIn(SHPM.Coins_Button.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Coins_Button.h,.1,"Image")
		MDL.FadeIn(SHPM.Coins_Button.TextLabel,.1,"Text")

		MDL.FadeIn(SHPM.Frog_Button,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Button.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Button.TextLabel,.1,"Text")

		MDL.FadeIn(SHPM.Gear_Button,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Button.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Button.TextLabel,.1,"Text")
		

		MDL.FadeIn(SHPM.Gear_Overlay.BANG.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.CandyBag.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.ChocolateMilk.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.Fire.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.FlashLight.ImageLabel,.1,"Image")  -- inside of itens of Gears(images)
		MDL.FadeIn(SHPM.Gear_Overlay.Pizza.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.SpeedCoil.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.Radar.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Gear_Overlay.Tacos.ImageLabel,.1,"Image")

		MDL.FadeIn(SHPM.Gear_Overlay.BANG.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.CandyBag.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.ChocolateMilk.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.Fire.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.FlashLight.TextGear,.1,"Text")  -- inside of itens of Gears(text)
		MDL.FadeIn(SHPM.Gear_Overlay.Pizza.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.SpeedCoil.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.Radar.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Gear_Overlay.Tacos.TextGear,.1,"Text")

		MDL.FadeIn(SHPM.Gear_Overlay.BANG.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.CandyBag.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.ChocolateMilk.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.Fire.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.FlashLight.TextGear,.1,"Frame")  -- inside of itens of Gears(framesOfText)
		MDL.FadeIn(SHPM.Gear_Overlay.Pizza.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.SpeedCoil.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.Radar.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.Tacos.TextGear,.1,"Frame")
		
		MDL.FadeIn(SHPM.Gear_Overlay.BANG,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.CandyBag,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.ChocolateMilk,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.Fire,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.FlashLight,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeIn(SHPM.Gear_Overlay.Pizza,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.SpeedCoil,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.Radar,.1,"Frame")
		MDL.FadeIn(SHPM.Gear_Overlay.Tacos,.1,"Frame")
		
		
		MDL.FadeIn(SHPM.Frog_Overlay.BANG,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.CandyBag.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.ChocolateMilk.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.Fire.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.FlashLight.ImageLabel,.1,"Image")  -- inside of itens of Gears(images)
		MDL.FadeIn(SHPM.Frog_Overlay.Pizza.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.SpeedCoil.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.Radar.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Frog_Overlay.Tacos.ImageLabel,.1,"Image")

		MDL.FadeIn(SHPM.Frog_Overlay.BANG.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.CandyBag.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.ChocolateMilk.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.Fire.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.FlashLight.TextGear,.1,"Text")  -- inside of itens of Gears(text)
		MDL.FadeIn(SHPM.Frog_Overlay.Pizza.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.SpeedCoil.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.Radar.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Frog_Overlay.Tacos.TextGear,.1,"Text")

		MDL.FadeIn(SHPM.Frog_Overlay.BANG.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.CandyBag.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.ChocolateMilk.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.Fire.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.FlashLight.TextGear,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeIn(SHPM.Frog_Overlay.Pizza.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.SpeedCoil.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.Radar.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.Tacos.TextGear,.1,"Frame")

		MDL.FadeIn(SHPM.Frog_Overlay.BANG,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.CandyBag,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.ChocolateMilk,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.Fire,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.FlashLight,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeIn(SHPM.Frog_Overlay.Pizza,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.SpeedCoil,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.Radar,.1,"Frame")
		MDL.FadeIn(SHPM.Frog_Overlay.Tacos,.1,"Frame")


		MDL.FadeIn(SHPM.Froins_Overlay.BANG,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.CandyBag.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.ChocolateMilk.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.Fire.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.FlashLight.ImageLabel,.1,"Image")  -- inside of itens of Gears(images)
		MDL.FadeIn(SHPM.Froins_Overlay.Pizza.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.SpeedCoil.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.Radar.ImageLabel,.1,"Image")
		MDL.FadeIn(SHPM.Froins_Overlay.Tacos.ImageLabel,.1,"Image")

		MDL.FadeIn(SHPM.Froins_Overlay.BANG.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.CandyBag.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.ChocolateMilk.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.Fire.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.FlashLight.TextGear,.1,"Text")  -- inside of itens of Gears(text)
		MDL.FadeIn(SHPM.Froins_Overlay.Pizza.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.SpeedCoil.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.Radar.TextGear,.1,"Text")
		MDL.FadeIn(SHPM.Froins_Overlay.Tacos.TextGear,.1,"Text")

		MDL.FadeIn(SHPM.Froins_Overlay.BANG.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.CandyBag.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.ChocolateMilk.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.Fire.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.FlashLight.TextGear,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeIn(SHPM.Froins_Overlay.Pizza.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.SpeedCoil.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.Radar.TextGear,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.Tacos.TextGear,.1,"Frame")

		MDL.FadeIn(SHPM.Froins_Overlay.BANG,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.CandyBag,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.ChocolateMilk,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.Fire,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.FlashLight,.1,"Frame")  -- inside of itens of Gears(frames)
		MDL.FadeIn(SHPM.Froins_Overlay.Pizza,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.SpeedCoil,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.Radar,.1,"Frame")
		MDL.FadeIn(SHPM.Froins_Overlay.Tacos,.1,"Frame")

		
		wait(.1)
		SHPM.Visible = false
		
	end
end)

Thank you :blue_heart:

You could probably go through every object in the SHPM instance using an in pairs loop using the table given by GetDescendants

Perhaps something like this

local SHPM = script.Parent.Parent.ShopMain
local SHPB = script.Parent

local MDL = require(game.ReplicatedStorage.GuiAnimations)

SHPB.MouseButton1Click:Connect(function() -- SHOP
	if SHPM.Visible == false then
		SHPM.Visible = true
		SHPM.Position = UDim2.new(0.338, 0,0.266, 0)
		SHPM:TweenPosition(UDim2.new(0.338, 0,0.226, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .1, true)
		
		for _,object in pairs(SHPM:GetDescendants()) do
			local objectType = "Frame"
			if object.ClassName == "ImageLabel" then
				objectType = "Image"
			elseif object.ClassName == "TextLabel" then
				objectType = "Text"
			end
			MDL.FadeOut(object,.1,objectType)
		end
				
	else
		
		SHPM:TweenPosition(UDim2.new(0.338, 0,0.266, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .1, true)
		
		for _,object in pairs(SHPM:GetDescendants()) do
			local objectType = "Frame"
			if object.ClassName == "ImageLabel" then
				objectType = "Image"
			elseif object.ClassName == "TextLabel" then
				objectType = "Text"
			end
			MDL.FadeIn(object,.1,objectType)
		end		
		
		wait(.1)
		SHPM.Visible = false
		
	end
end)

Granted that the Classes for each object is set accordingly, think it could be shortened even more if needed

3 Likes

oh yeah!! that’s really make sense. get descendants of object types and fadein n’ out every. well i didnt thought about that until now, lol. nice.

1 Like