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()Auto buy
keyless
changes colors bro idk
No comments yet. Be the first to comment!
1local CG, RS, TS, UIS = game:GetService("CoreGui"), game:GetService("ReplicatedStorage"), game:GetService("TweenService"), game:GetService("UserInputService")
2local rem = RS:WaitForChild("Check")
3local CFG = {Key = Enum.KeyCode.H, BG = Color3.fromRGB(18,18,24), TX = Color3.fromRGB(240,240,245), On = Color3.fromRGB(39,174,96)}
4local st = {Master=true, Size=true, Quarks=true, Atoms=true}
5local bMode, ch, cl, tkL, wAct, activeTab = false, "BG", {}, {}, false, "Main"
6local Fnt = Font.fromEnum(Enum.Font.FredokaOne)
7
8local SG = Instance.new("ScreenGui", CG)
9local MF = Instance.new("Frame", SG)
10MF.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
11MF.ClipsDescendants = true
12Instance.new("UICorner", MF).CornerRadius = UDim.new(0,16)
13Instance.new("UIStroke", MF).Color = Color3.fromRGB(45,45,55)
14
15local d, dSt, sPs
16MF.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 and not wAct then d,dSt,sPs=true,i.Position,MF.Position end end)
17UIS.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)
18UIS.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then d=false end end)
19
20-- ===== TOP BAR - ROUNDED TOP ONLY - FIXED =====
21local TB = Instance.new("Frame", MF)
22TB.Name="TabBar" TB.Size=UDim2.new(1,0,0,32) TB.BackgroundTransparency=1 TB.ZIndex=10
23
24-- rounded bg
25local TopBG = Instance.new("Frame", TB)
26TopBG.Name="TopBG" TopBG.Size=UDim2.new(1,0,1,0) TopBG.BackgroundColor3=Color3.fromRGB(12,12,16) TopBG.BorderSizePixel=0 TopBG.ZIndex=1
27Instance.new("UICorner", TopBG).CornerRadius = UDim.new(0,12)
28
29-- square bottom to hide bottom rounding
30local BottomBG = Instance.new("Frame", TB)
31BottomBG.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
32
33-- holder for actual tab buttons (so layout doesn't touch backgrounds)
34local Holder = Instance.new("Frame", TB)
35Holder.Name="Holder" Holder.Size=UDim2.new(1,0,1,0) Holder.BackgroundTransparency=1 Holder.ZIndex=5
36local TBLay = Instance.new("UIListLayout", Holder) TBLay.FillDirection=Enum.FillDirection.Horizontal TBLay.SortOrder=Enum.SortOrder.LayoutOrder
37
38local CC = Instance.new("Frame", MF) CC.Size, CC.Position, CC.BackgroundTransparency = UDim2.new(1,0,1,-32), UDim2.new(0,0,0,32), 1
39
40local Tabs, tabBtns = {}, {}
41local function makeC(n,s)
42 local c=Instance.new("Frame",CC) c.Name=n c.Size,c.BackgroundTransparency,c.Visible=UDim2.new(1,0,1,0),1,s
43 local l=Instance.new("UIListLayout",c) l.Padding=UDim.new(0,6) l.HorizontalAlignment=Enum.HorizontalAlignment.Center
44 Instance.new("UIPadding",c).PaddingTop=UDim.new(0,10) Tabs[n]=c
45end
46makeC("Main",true) makeC("Settings",false) makeC("Config",false)
47
48local function makeT(n,isActive,order)
49 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
50 b.TextColor3 = isActive and Color3.fromRGB(0,255,200) or Color3.fromRGB(120,120,130)
51 tabBtns[n]=b
52 b.MouseButton1Click:Connect(function()
53 activeTab=n
54 for k,v in pairs(Tabs) do v.Visible=(k==n) end
55 for k,btn in pairs(tabBtns) do btn.TextColor3=(k==n) and Color3.fromRGB(0,255,200) or Color3.fromRGB(120,120,130) end
56 end)
57end
58makeT("Main",true,1) makeT("Settings",false,2) makeT("Config",false,3)
59
60local function makeRow(k,txt)
61 local r=Instance.new("Frame",Tabs.Main) r.Size,r.BackgroundTransparency=UDim2.new(0,210,0,32),1
62 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)
63 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)
64 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)
65 table.insert(tkL,{btn=tk,thumb=th,key=k})
66 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)
67end
68makeRow("Master","MASTER SWITCH") makeRow("Size","SIZE BUYER") makeRow("Quarks","QUARK BUYER") makeRow("Atoms","ATOM BUYER")
69
70local br=Instance.new("Frame",Tabs.Settings) br.Size,br.BackgroundTransparency=UDim2.new(0,210,0,35),1
71local 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)
72local 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)
73bb.MouseButton1Click:Connect(function() bMode=true bb.Text="..." end)
74UIS.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)
75
76-- CONFIG - outer ring + inner square (like your image)
77local pR=Instance.new("Frame",Tabs.Config) pR.Size,pR.BackgroundTransparency=UDim2.new(0,220,0,130),1
78local 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)
79local 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)
80local INNER_RATIO=0.54
81local 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
82local 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)}
83local 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)}
84local 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)
85local 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)
86
87local 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)
88local 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)
89local 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)
90local 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)
91
92local tgs={"BG","TX","On"} local curH,curS,curV=0,1,1
93local 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
94local 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
95local function applyColor() CFG[ch]=Color3.fromHSV(curH,curS,curV) refreshUI() end
96local 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
97tS.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)
98local function handleWheel(pos)
99 local ip=Inner.AbsolutePosition local isz=Inner.AbsoluteSize
100 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
101 local center=WF.AbsolutePosition+WF.AbsoluteSize/2 local vec=Vector2.new(pos.X,pos.Y)-center local r=WF.AbsoluteSize.X/2
102 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
103end
104WF.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)
105UIS.InputChanged:Connect(function(i) if wAct and i.UserInputType==Enum.UserInputType.MouseMovement then handleWheel(Vector2.new(i.Position.X,i.Position.Y)) end end)
106UIS.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then wAct=false end end)
107sb.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)
108task.spawn(function()
109 while true do
110 if st.Master and rem then
111 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
112 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
113 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
114 end task.wait(0.1)
115 end
116end)
117task.wait(0.3) setFromCFG()