local CG, RS, TS, UIS = game:GetService("CoreGui"), game:GetService("ReplicatedStorage"), game:GetService("TweenService"), game:GetService("UserInputService")
local rem = RS:WaitForChild("Check")
local CFG = {Key = Enum.KeyCode.H, BG = Color3.fromRGB(18,18,24), TX = Color3.fromRGB(240,240,245), On = Color3.fromRGB(39,174,96)}
local st = {Master=true, Size=true, Quarks=true, Atoms=true}
local bMode, ch, cl, tkL, wAct, activeTab = false, "BG", {}, {}, false, "Main"
local Fnt = Font.fromEnum(Enum.Font.FredokaOne)

local SG = Instance.new("ScreenGui", CG)
local MF = Instance.new("Frame", SG) 
MF.Name="MF" MF.Size, MF.Position, MF.BackgroundColor3, MF.BorderSizePixel, MF.Active = UDim2.new(0,240,0,210), UDim2.new(0,50,0,150), CFG.BG, 0, true
MF.ClipsDescendants = true
Instance.new("UICorner", MF).CornerRadius = UDim.new(0,16)
Instance.new("UIStroke", MF).Color = Color3.fromRGB(45,45,55)

local d, dSt, sPs
MF.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 and not wAct then d,dSt,sPs=true,i.Position,MF.Position end end)
UIS.InputChanged:Connect(function(i) if d and not wAct and i.UserInputType==Enum.UserInputType.MouseMovement then local x=i.Position-dSt MF.Position=UDim2.new(sPs.X.Scale,sPs.X.Offset+x.X,sPs.Y.Scale,sPs.Y.Offset+x.Y) end end)
UIS.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then d=false end end)

-- ===== TOP BAR - ROUNDED TOP ONLY - FIXED =====
local TB = Instance.new("Frame", MF) 
TB.Name="TabBar" TB.Size=UDim2.new(1,0,0,32) TB.BackgroundTransparency=1 TB.ZIndex=10

-- rounded bg
local TopBG = Instance.new("Frame", TB)
TopBG.Name="TopBG" TopBG.Size=UDim2.new(1,0,1,0) TopBG.BackgroundColor3=Color3.fromRGB(12,12,16) TopBG.BorderSizePixel=0 TopBG.ZIndex=1
Instance.new("UICorner", TopBG).CornerRadius = UDim.new(0,12)

-- square bottom to hide bottom rounding
local BottomBG = Instance.new("Frame", TB)
BottomBG.Name="BottomBG" BottomBG.Size=UDim2.new(1,0,0,18) BottomBG.Position=UDim2.new(0,0,1,-18) BottomBG.BackgroundColor3=Color3.fromRGB(12,12,16) BottomBG.BorderSizePixel=0 BottomBG.ZIndex=2

-- holder for actual tab buttons (so layout doesn't touch backgrounds)
local Holder = Instance.new("Frame", TB)
Holder.Name="Holder" Holder.Size=UDim2.new(1,0,1,0) Holder.BackgroundTransparency=1 Holder.ZIndex=5
local TBLay = Instance.new("UIListLayout", Holder) TBLay.FillDirection=Enum.FillDirection.Horizontal TBLay.SortOrder=Enum.SortOrder.LayoutOrder

local CC = Instance.new("Frame", MF) CC.Size, CC.Position, CC.BackgroundTransparency = UDim2.new(1,0,1,-32), UDim2.new(0,0,0,32), 1

local Tabs, tabBtns = {}, {}
local function makeC(n,s)
	local c=Instance.new("Frame",CC) c.Name=n c.Size,c.BackgroundTransparency,c.Visible=UDim2.new(1,0,1,0),1,s
	local l=Instance.new("UIListLayout",c) l.Padding=UDim.new(0,6) l.HorizontalAlignment=Enum.HorizontalAlignment.Center
	Instance.new("UIPadding",c).PaddingTop=UDim.new(0,10) Tabs[n]=c
end
makeC("Main",true) makeC("Settings",false) makeC("Config",false)

local function makeT(n,isActive,order)
	local b=Instance.new("TextButton",Holder) b.Name=n b.Size=UDim2.new(0.333,0,1,0) b.BackgroundTransparency=1 b.Text=n:upper() b.FontFace=Fnt b.TextSize=12 b.ZIndex=6 b.LayoutOrder=order
	b.TextColor3 = isActive and Color3.fromRGB(0,255,200) or Color3.fromRGB(120,120,130)
	tabBtns[n]=b
	b.MouseButton1Click:Connect(function()
		activeTab=n
		for k,v in pairs(Tabs) do v.Visible=(k==n) end
		for k,btn in pairs(tabBtns) do btn.TextColor3=(k==n) and Color3.fromRGB(0,255,200) or Color3.fromRGB(120,120,130) end
	end)
end
makeT("Main",true,1) makeT("Settings",false,2) makeT("Config",false,3)

local function makeRow(k,txt)
	local r=Instance.new("Frame",Tabs.Main) r.Size,r.BackgroundTransparency=UDim2.new(0,210,0,32),1
	local l=Instance.new("TextLabel",r) l.Size,l.BackgroundTransparency,l.Text,l.TextColor3,l.FontFace,l.TextSize,l.TextXAlignment=UDim2.new(0,150,1,0),1,txt,CFG.TX,Fnt,11,0 table.insert(cl,l)
	local tk=Instance.new("TextButton",r) tk.Size,tk.Position,tk.BackgroundColor3,tk.BorderSizePixel,tk.Text=UDim2.new(0,42,0,22),UDim2.new(1,-42,0.5,-11),CFG.On,0,"" Instance.new("UICorner",tk).CornerRadius=UDim.new(1,0)
	local th=Instance.new("Frame",tk) th.Size,th.Position,th.BackgroundColor3,th.BorderSizePixel=UDim2.new(0,16,0,16),UDim2.new(1,-19,0.5,-8),Color3.fromRGB(255,255,255),0 Instance.new("UICorner",th).CornerRadius=UDim.new(1,0)
	table.insert(tkL,{btn=tk,thumb=th,key=k})
	tk.MouseButton1Click:Connect(function() st[k]=not st[k] TS:Create(th,TweenInfo.new(0.2),{Position=st[k] and UDim2.new(1,-19,0.5,-8) or UDim2.new(0,3,0.5,-8)}):Play() TS:Create(tk,TweenInfo.new(0.2),{BackgroundColor3=st[k] and CFG.On or Color3.fromRGB(192,57,43)}):Play() end)
end
makeRow("Master","MASTER SWITCH") makeRow("Size","SIZE BUYER") makeRow("Quarks","QUARK BUYER") makeRow("Atoms","ATOM BUYER")

local br=Instance.new("Frame",Tabs.Settings) br.Size,br.BackgroundTransparency=UDim2.new(0,210,0,35),1
local bl=Instance.new("TextLabel",br) bl.Size,bl.BackgroundTransparency,bl.Text,bl.TextColor3,bl.FontFace,bl.TextSize,bl.TextXAlignment=UDim2.new(0,120,1,0),1,"UI KEYBIND:",CFG.TX,Fnt,11,0 table.insert(cl,bl)
local bb=Instance.new("TextButton",br) bb.Size,bb.Position,bb.BackgroundColor3,bb.Text,bb.TextColor3,bb.FontFace,bb.TextSize=UDim2.new(0,80,0,26),UDim2.new(1,-80,0.5,-13),Color3.fromRGB(35,35,45),CFG.Key.Name,CFG.TX,Fnt,11 table.insert(cl,bb) Instance.new("UICorner",bb).CornerRadius=UDim.new(0,8)
bb.MouseButton1Click:Connect(function() bMode=true bb.Text="..." end)
UIS.InputBegan:Connect(function(i,p) if p then return end if bMode and i.UserInputType==Enum.UserInputType.Keyboard then CFG.Key,bb.Text,bMode=i.KeyCode,i.KeyCode.Name,false elseif i.KeyCode==CFG.Key then MF.Visible=not MF.Visible end end)

-- CONFIG - outer ring + inner square (like your image)
local pR=Instance.new("Frame",Tabs.Config) pR.Size,pR.BackgroundTransparency=UDim2.new(0,220,0,130),1
local WF=Instance.new("Frame",pR) WF.Name="Wheel" WF.Size,WF.Position,WF.BackgroundTransparency=UDim2.new(0,110,0,110),UDim2.new(0,5,0,0),1 Instance.new("UICorner",WF).CornerRadius=UDim.new(1,0)
local Outer=Instance.new("ImageLabel",WF) Outer.Size,Outer.BackgroundTransparency=UDim2.new(1,0,1,0),1 Outer.Image="rbxassetid://6020299385" Outer.ScaleType=Enum.ScaleType.Fit Instance.new("UICorner",Outer).CornerRadius=UDim.new(1,0)
local INNER_RATIO=0.54
local Inner=Instance.new("Frame",WF) Inner.Name="Inner" Inner.Size=UDim2.new(INNER_RATIO,0,INNER_RATIO,0) Inner.Position=UDim2.new((1-INNER_RATIO)/2,0,(1-INNER_RATIO)/2,0) Inner.BackgroundColor3=Color3.fromRGB(255,0,0) Inner.BorderSizePixel=0 Inner.ZIndex=2 Inner.ClipsDescendants=true Instance.new("UICorner",Inner).CornerRadius=UDim.new(0,6) Instance.new("UIStroke",Inner).Color=Color3.fromRGB(255,255,255) Instance.new("UIStroke",Inner).Thickness=2
local WhiteO=Instance.new("Frame",Inner) WhiteO.Size=UDim2.new(1,0,1,0) WhiteO.BackgroundColor3=Color3.fromRGB(255,255,255) WhiteO.BorderSizePixel=0 WhiteO.ZIndex=3 local gW=Instance.new("UIGradient",WhiteO) gW.Rotation=0 gW.Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}
local BlackO=Instance.new("Frame",Inner) BlackO.Size=UDim2.new(1,0,1,0) BlackO.BackgroundColor3=Color3.fromRGB(0,0,0) BlackO.BorderSizePixel=0 BlackO.ZIndex=4 local gB=Instance.new("UIGradient",BlackO) gB.Rotation=90 gB.Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}
local HueDot=Instance.new("Frame",WF) HueDot.Size=UDim2.new(0,10,0,10) HueDot.AnchorPoint=Vector2.new(0.5,0.5) HueDot.BackgroundColor3=Color3.fromRGB(255,255,255) HueDot.ZIndex=10 Instance.new("UICorner",HueDot).CornerRadius=UDim.new(1,0) Instance.new("UIStroke",HueDot).Color=Color3.fromRGB(0,0,0)
local SVDot=Instance.new("Frame",Inner) SVDot.Size=UDim2.new(0,8,0,8) SVDot.AnchorPoint=Vector2.new(0.5,0.5) SVDot.BackgroundColor3=Color3.fromRGB(255,255,255) SVDot.ZIndex=10 Instance.new("UICorner",SVDot).CornerRadius=UDim.new(1,0) Instance.new("UIStroke",SVDot).Color=Color3.fromRGB(0,0,0)

local ctrl=Instance.new("Frame",pR) ctrl.Size,ctrl.Position,ctrl.BackgroundTransparency=UDim2.new(0,95,0,110),UDim2.new(1,-95,0,0),1 local clayout=Instance.new("UIListLayout",ctrl) clayout.Padding=UDim.new(0,6)
local tS=Instance.new("TextButton",ctrl) tS.Size,tS.BackgroundColor3,tS.Text,tS.TextColor3,tS.FontFace,tS.TextSize=UDim2.new(1,0,0,28),Color3.fromRGB(35,35,45),"TARGET: BG",CFG.TX,Fnt,10 table.insert(cl,tS) Instance.new("UICorner",tS).CornerRadius=UDim.new(0,6)
local preview=Instance.new("Frame",ctrl) preview.Size=UDim2.new(1,0,0,24) preview.BackgroundColor3=CFG.BG Instance.new("UICorner",preview).CornerRadius=UDim.new(0,6) Instance.new("UIStroke",preview).Color=Color3.fromRGB(60,60,70)
local sb=Instance.new("TextButton",ctrl) sb.Size,sb.BackgroundColor3,sb.Text,sb.TextColor3,sb.FontFace,sb.TextSize=UDim2.new(1,0,0,28),Color3.fromRGB(41,128,185),"EXPORT SAVE",CFG.TX,Fnt,9 table.insert(cl,sb) Instance.new("UICorner",sb).CornerRadius=UDim.new(0,6)

local tgs={"BG","TX","On"} local curH,curS,curV=0,1,1
local function refreshUI() MF.BackgroundColor3=CFG.BG for _,lbl in ipairs(cl) do lbl.TextColor3=CFG.TX end for _,data in ipairs(tkL) do data.btn.BackgroundColor3=st[data.key] and CFG.On or Color3.fromRGB(192,57,43) end preview.BackgroundColor3=CFG[ch] end
local function updateDots() if WF.AbsoluteSize.X==0 then return end local r=WF.AbsoluteSize.X/2 local innerR=r*INNER_RATIO local ringMid=(r+innerR)/2+1 local ang=curH*math.pi*2 HueDot.Position=UDim2.new(0,r+math.cos(ang)*ringMid,0,r+math.sin(ang)*ringMid) SVDot.Position=UDim2.new(0,curS*Inner.AbsoluteSize.X,0,(1-curV)*Inner.AbsoluteSize.Y) end
local function applyColor() CFG[ch]=Color3.fromHSV(curH,curS,curV) refreshUI() end
local function setFromCFG() local h,s,v=CFG[ch]:ToHSV() curH,curS,curV=h,s,v Inner.BackgroundColor3=Color3.fromHSV(curH,1,1) updateDots() preview.BackgroundColor3=CFG[ch] end
tS.MouseButton1Click:Connect(function() local idx=table.find(tgs,ch) or 1 ch=tgs[idx%#tgs+1] tS.Text="TARGET: "..(ch=="BG" and "BG" or ch=="TX" and "TEXT" or "TOGGLES") setFromCFG() end)
local function handleWheel(pos)
	local ip=Inner.AbsolutePosition local isz=Inner.AbsoluteSize
	if pos.X>=ip.X and pos.X<=ip.X+isz.X and pos.Y>=ip.Y and pos.Y<=ip.Y+isz.Y then curS=math.clamp((pos.X-ip.X)/isz.X,0,1) curV=1-math.clamp((pos.Y-ip.Y)/isz.Y,0,1) applyColor() updateDots() return end
	local center=WF.AbsolutePosition+WF.AbsoluteSize/2 local vec=Vector2.new(pos.X,pos.Y)-center local r=WF.AbsoluteSize.X/2
	if vec.Magnitude<=r then local ang=math.atan2(vec.Y,vec.X) if ang<0 then ang+=2*math.pi end curH=ang/(2*math.pi) Inner.BackgroundColor3=Color3.fromHSV(curH,1,1) applyColor() updateDots() end
end
WF.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then wAct=true d=false handleWheel(Vector2.new(i.Position.X,i.Position.Y)) end end)
UIS.InputChanged:Connect(function(i) if wAct and i.UserInputType==Enum.UserInputType.MouseMovement then handleWheel(Vector2.new(i.Position.X,i.Position.Y)) end end)
UIS.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then wAct=false end end)
sb.MouseButton1Click:Connect(function() print(string.format("\n== SAVE ==\nlocal CONFIG = {\n    Keybind = Enum.KeyCode.%s,\n    Background = Color3.fromRGB(%d,%d,%d),\n    Text = Color3.fromRGB(%d,%d,%d),\n    ToggleOn = Color3.fromRGB(%d,%d,%d)\n}\n==========",CFG.Key.Name,math.floor(CFG.BG.R*255),math.floor(CFG.BG.G*255),math.floor(CFG.BG.B*255),math.floor(CFG.TX.R*255),math.floor(CFG.TX.G*255),math.floor(CFG.TX.B*255),math.floor(CFG.On.R*255),math.floor(CFG.On.G*255),math.floor(CFG.On.B*255))) sb.Text="PRINTED TO F9!" task.wait(1.5) sb.Text="EXPORT SAVE" end)
task.spawn(function()
	while true do
		if st.Master and rem then
			if st.Size then for i=1,16 do if not st.Master or not st.Size then break end rem:FireServer("Size","SizeU"..tostring(i).."Cost") task.wait(0.02) end end
			if st.Quarks then for i=1,12 do if not st.Master or not st.Quarks then break end rem:FireServer("Quarks","QuarksU"..tostring(i).."Cost") task.wait(0.02) end end
			if st.Atoms then for i=1,16 do if not st.Master or not st.Atoms then break end rem:FireServer("Atoms","AtomsU"..tostring(i).."Cost") task.wait(0.02) end end
		end task.wait(0.1)
	end
end)
task.wait(0.3) setFromCFG()
Size Incremental [V0.1] Ai gen auto buy
Mobile Friendly
81 views
3 hours ago

Ai gen auto buy

WORKING
Free

Description

Auto buy

keyless

changes colors bro idk

Related Scripts