コンテンツへスキップ
動作中

EliteEssentials -- FULLY OPEN SOURCE

CLclarkdevlinorg0 閲覧数Universal2026年7月26日
共有
EliteEssentials -- FULLY OPEN SOURCE

スクリプトコード

Lua
--open with right shift




local cg		   = game:GetService("CoreGui")
local Players          = game:GetService("Players")
local RunService       = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Workspace        = game:GetService("Workspace")
local Lighting         = game:GetService("Lighting")
local HttpService      = game:GetService("HttpService")

local LocalPlayer = Players.LocalPlayer
local Camera      = Workspace.CurrentCamera

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name, ScreenGui.ResetOnSpawn   = "EliteEssentials_v30", false
ScreenGui.IgnoreGuiInset, ScreenGui.DisplayOrder = true, 99999
ScreenGui.Parent = cg

local function newSound(id, vol)
	local s = Instance.new("Sound", ScreenGui)
	s.SoundId, s.Volume = "rbxassetid://"..id, vol
	return s
end
local SndClick = newSound("139719503904449", 0.5)
local SndStart = newSound("114690770534963", 1.5)
SndStart:Play()
local function playClick() SndClick:Play() end

local ChamsFolder = Instance.new("Folder", ScreenGui)  ChamsFolder.Name = "ChamsData"
local BoxesFolder = Instance.new("Folder", Workspace)   BoxesFolder.Name = "EEBoxData"

local FOVRing = Instance.new("Frame")
FOVRing.BackgroundTransparency = 1
FOVRing.AnchorPoint            = Vector2.new(0.5, 0.5)
FOVRing.Visible                = false
FOVRing.Parent                 = ScreenGui
Instance.new("UICorner", FOVRing).CornerRadius = UDim.new(1, 0)
local FOVStroke = Instance.new("UIStroke", FOVRing)
FOVStroke.Thickness, FOVStroke.Transparency = 1.5, 0.35

local PRESET_NAMES = {"Green","Red","Blue","White","Yellow","Cyan","Pink","Orange","Purple"}
local PRESET_VALS  = {
	Color3.fromRGB( 46,204,113), Color3.fromRGB(231, 76, 60), Color3.fromRGB( 80,140,255),
	Color3.fromRGB(228,228,245), Color3.fromRGB(220,200, 50), Color3.fromRGB( 50,210,220),
	Color3.fromRGB(210, 80,200), Color3.fromRGB(230,130, 30), Color3.fromRGB(155, 80,255),
}
local THEMES = {
	{name="Deep Blue", col=Color3.fromRGB( 88,117,255)},
	{name="Violet",    col=Color3.fromRGB(155, 80,255)},
	{name="Crimson",   col=Color3.fromRGB(220, 55, 75)},
	{name="Emerald",   col=Color3.fromRGB( 46,196,110)},
	{name="Gold",      col=Color3.fromRGB(220,170, 40)},
	{name="Midnight",  col=Color3.fromRGB(150,150,175)},
	{name="Light Blue",  col=Color3.fromRGB(72, 226, 234)},
}
local ThemeIndex = {1}

local AccentCallbacks = {}
local currentAccent   = THEMES[1].col
local function onAccent(fn)
	table.insert(AccentCallbacks, fn); fn(currentAccent)
end
local function setAccent(col)
	currentAccent = col; FOVStroke.Color = col
	for _, fn in ipairs(AccentCallbacks) do pcall(fn, col) end
end
local function tint(col, sat, val)
	local h, s = col:ToHSV(); return Color3.fromHSV(h, s*sat, val)
end
local function softBg(col)   return tint(col, 0.55, 0.16) end
local function hoverBg(col)  return tint(col, 0.40, 0.12) end
local function colBg(col)    return tint(col, 0.40, 0.115) end
local function hdrBg(col)    return tint(col, 0.70, 0.155) end
local function panelBg(col)  return tint(col, 0.50, 0.115) end
local function rowBg(col)    return tint(col, 0.30, 0.095) end
local function sepColor(col) return tint(col, 0.45, 0.18)  end
local function trackBg(col)  return tint(col, 0.35, 0.18)  end
local function kbBg(col)     return tint(col, 0.55, 0.18)  end
local function actBtnBg(col) return tint(col, 0.48, 0.155) end
local function outerBg(col)  return tint(col, 0.38, 0.055) end
local function titleBg(col)  return tint(col, 0.68, 0.13)  end

local Toggles = {
	Aimbot=false, ESP=false, HardESP=false, Chams=false, TeamColors=false,
	NoFog=false, Fullbright=false, NoGrass=false, TeamCheck=false, WallCheck=false,
	NPCs=false, FOVChanger=false, FOVCircle=false, BigHeads=false,
	ESPAutoRefresh=false, FPSHud=true, Radar=false,
}
local Settings = {
	AimbotSmoothness=0.4, AimbotFOV=200, AimbotYOffset=0,
	CameraFOV=70, ChamsTextSize=14,
	VisibleColor=PRESET_VALS[1], HiddenColor=PRESET_VALS[2],
	AimbotTarget="Head", ZoomFOV=20, BigHeadsSize=3.25,
	RadarSize=200, RadarRange=150, _FOVThick=1.5,
}
local AimbotTargets    = {"Head","HumanoidRootPart","UpperTorso","LowerTorso"}
local CurrentTargetIdx = {1}
local VisibleColorIdx  = {1}; local HiddenColorIdx = {2}
local RingColorIdx     = {1}
local RingColorVals    = {
	Color3.new(1,1,1), Color3.fromRGB(220,60,60), Color3.fromRGB(46,196,110),
	Color3.fromRGB(80,140,255), Color3.fromRGB(220,200,50), Color3.fromRGB(50,210,220),
}
local RingColorNames = {"White","Red","Green","Blue","Yellow","Cyan"}

local OpenKey     = {code = Enum.KeyCode.RightShift}
local ZoomKey     = {code = Enum.KeyCode.LeftAlt}
local FeatureKeys = {
	Aimbot={code=nil}, ESP={code=nil}, HardESP={code=nil}, FOVChanger={code=nil},
}
local FeatureRefresh = {}

local CachedNPCs={} local HighlightCache={} local HeadCache={}

local function isEntityNPC(model)
	if not model:IsA("Model") or model==LocalPlayer.Character then return false end
	if Players:GetPlayerFromCharacter(model) then return false end
	return model:FindFirstChildOfClass("Humanoid")~=nil
end
local function updateNPCCache()
	table.clear(CachedNPCs)
	for _, v in pairs(Workspace:GetDescendants()) do
		if isEntityNPC(v) then table.insert(CachedNPCs,v) end
	end
end
Workspace.DescendantAdded:Connect(function(d)
	if Toggles.NPCs and isEntityNPC(d) then table.insert(CachedNPCs,d) end
end)
local function restoreHeads()
	for _,d in pairs(HeadCache) do if d.part and d.part.Parent then d.part.Size=d.orig end end
	table.clear(HeadCache)
end
local function clearESPForUID(uid)
	if HighlightCache[uid] then HighlightCache[uid]:Destroy(); HighlightCache[uid]=nil end
	local g=BoxesFolder:FindFirstChild(uid); if g then g:Destroy() end
	local t=ChamsFolder:FindFirstChild(uid); if t then t:Destroy() end
end
local function updateBoxESP(uid, tChar, col)
	local grp=BoxesFolder:FindFirstChild(uid) or Instance.new("Folder",BoxesFolder)
	grp.Name=uid
	for _,part in ipairs(tChar:GetChildren()) do
		if part:IsA("BasePart") and part.Name~="HumanoidRootPart" then
			local b=grp:FindFirstChild(part.Name)
			if not b then
				b=Instance.new("BoxHandleAdornment",grp)
				b.Name,b.AlwaysOnTop,b.ZIndex,b.Transparency=part.Name,true,5,0.35
			end
			b.Adornee,b.Size,b.Color3=part,part.Size,col
		end
	end
	for _,b in ipairs(grp:GetChildren()) do
		if not tChar:FindFirstChild(b.Name) then b:Destroy() end
	end
end
local function clearBoxESP() BoxesFolder:ClearAllChildren() end

local RadarGui, RadarRenderConn = nil, nil
local RadarConns, RadarBlips    = {}, {}
local function destroyRadar()
	if RadarRenderConn then RadarRenderConn:Disconnect(); RadarRenderConn=nil end
	for _,c in ipairs(RadarConns) do c:Disconnect() end; table.clear(RadarConns)
	if RadarGui then RadarGui:Destroy(); RadarGui=nil end
	RadarBlips={}
end
local function buildRadar()
	destroyRadar()
	local sz = Settings.RadarSize
	RadarGui = Instance.new("ScreenGui")
	RadarGui.Name, RadarGui.ResetOnSpawn = "EERadar", false
	RadarGui.DisplayOrder = 99997
	RadarGui.Parent = LocalPlayer:WaitForChild("PlayerGui")

	local mapFrame = Instance.new("Frame")
	mapFrame.Size            = UDim2.new(0,sz,0,sz)
	mapFrame.Position        = UDim2.new(1,-(sz+20),1,-(sz+20))
	mapFrame.BackgroundColor3 = tint(currentAccent,0.45,0.07)
	mapFrame.BackgroundTransparency = 0.12
	mapFrame.BorderSizePixel = 0
	mapFrame.Parent          = RadarGui
	Instance.new("UICorner",mapFrame).CornerRadius = UDim.new(1,0)

	local rStroke = Instance.new("UIStroke",mapFrame)
	rStroke.Color, rStroke.Thickness, rStroke.Transparency = currentAccent, 1.5, 0.45
	onAccent(function(c) rStroke.Color=c; mapFrame.BackgroundColor3=tint(c,0.45,0.07) end)

	local clipFrame = Instance.new("Frame")
	clipFrame.Size, clipFrame.BackgroundTransparency = UDim2.new(1,0,1,0), 1
	clipFrame.ClipsDescendants, clipFrame.Parent = true, mapFrame
	Instance.new("UICorner",clipFrame).CornerRadius = UDim.new(1,0)

	local radarLbl = Instance.new("TextLabel")
	radarLbl.Size, radarLbl.Position = UDim2.new(1,0,0,16), UDim2.new(0,0,0,3)
	radarLbl.BackgroundTransparency = 1
	radarLbl.Text, radarLbl.TextSize, radarLbl.Font = "RADAR", 8, Enum.Font.GothamBold
	radarLbl.TextColor3, radarLbl.ZIndex = currentAccent, 4
	radarLbl.Parent = mapFrame
	onAccent(function(c) radarLbl.TextColor3=c end)

	local centerBlip = Instance.new("TextLabel")
	centerBlip.Size, centerBlip.Position = UDim2.new(0,20,0,20), UDim2.new(0.5,-10,0.5,-10)
	centerBlip.BackgroundTransparency = 1
	centerBlip.Text, centerBlip.TextColor3 = "▲", Color3.new(1,1,1)
	centerBlip.TextSize, centerBlip.ZIndex = 18, 3
	centerBlip.Parent = clipFrame

	local function mkZBtn(txt, pos)
		local b = Instance.new("TextButton")
		b.Size, b.Position = UDim2.new(0,22,0,22), pos
		b.BackgroundColor3 = tint(currentAccent,0.55,0.18)
		b.TextColor3, b.TextSize, b.Text = Color3.new(1,1,1), 15, txt
		b.Font, b.BorderSizePixel, b.ZIndex = Enum.Font.GothamBold, 0, 5
		b.Parent = mapFrame
		Instance.new("UICorner",b).CornerRadius = UDim.new(1,0)
		onAccent(function(c) b.BackgroundColor3=tint(c,0.55,0.18) end)
		return b
	end
	local zoom = {v=1}
	mkZBtn("+",UDim2.new(1,-12,0.5,-25)).Activated:Connect(function() zoom.v=math.clamp(zoom.v-0.2,0.3,4) end)
	mkZBtn("−",UDim2.new(1,-12,0.5,5)).Activated:Connect(function()  zoom.v=math.clamp(zoom.v+0.2,0.3,4) end)

	local rDrag={active=false,start=nil,origin=nil}
	mapFrame.InputBegan:Connect(function(i)
		if i.UserInputType==Enum.UserInputType.MouseButton1 then
			rDrag.active,rDrag.start,rDrag.origin=true,i.Position,mapFrame.Position
		end
	end)
	local c1=UserInputService.InputChanged:Connect(function(i)
		if rDrag.active and i.UserInputType==Enum.UserInputType.MouseMovement then
			local d=i.Position-rDrag.start
			mapFrame.Position=UDim2.new(rDrag.origin.X.Scale,rDrag.origin.X.Offset+d.X,
				rDrag.origin.Y.Scale,rDrag.origin.Y.Offset+d.Y)
		end
	end)
	local c2=UserInputService.InputEnded:Connect(function(i)
		if i.UserInputType==Enum.UserInputType.MouseButton1 then rDrag.active=false end
	end)
	table.insert(RadarConns,c1); table.insert(RadarConns,c2)

	local function getBlip(pl)
		if not RadarBlips[pl] then
			local b=Instance.new("TextLabel")
			b.Size=UDim2.new(0,14,0,14); b.BackgroundTransparency=1
			b.Text,b.TextSize,b.ZIndex="▲",12,2; b.Parent=clipFrame
			RadarBlips[pl]=b
		end
		return RadarBlips[pl]
	end

	RadarRenderConn = RunService.RenderStepped:Connect(function()
		local newSz=Settings.RadarSize
		if math.abs(mapFrame.AbsoluteSize.X-newSz)>1 then
			mapFrame.Size=UDim2.new(0,newSz,0,newSz)
		end
		local char=LocalPlayer.Character
		if not char or not char:FindFirstChild("HumanoidRootPart") then return end
		local root=char.HumanoidRootPart
		local range=Settings.RadarRange*zoom.v
		for _,pl in ipairs(Players:GetPlayers()) do
			if pl~=LocalPlayer then
				local oc=pl.Character
				local blip=getBlip(pl)
				if oc and oc:FindFirstChild("HumanoidRootPart") then
					local hum=oc:FindFirstChildOfClass("Humanoid")
					if hum and hum.Health>0 then
						local or2=oc.HumanoidRootPart
						local relCF=root.CFrame:ToObjectSpace(or2.CFrame)
						local rp=relCF.Position
						local dist=math.sqrt(rp.X^2+rp.Z^2)
						if dist<=range then
							blip.Visible=true
							local r=mapFrame.AbsoluteSize.X/2
							local sc=r/range
							blip.Position=UDim2.new(0.5,rp.X*sc-7,0.5,rp.Z*sc-7)
							local _,yRot,_=relCF:ToOrientation()
							blip.Rotation=-math.deg(yRot)
							if Toggles.TeamCheck and pl.Team==LocalPlayer.Team then
								blip.TextColor3=Color3.fromRGB(60,210,80)
							else
								blip.TextColor3=Color3.fromRGB(255,60,60)
							end
						else blip.Visible=false end
					else blip.Visible=false end
				else blip.Visible=false end
			end
		end
		for pl,blip in pairs(RadarBlips) do
			if not pl.Parent then blip:Destroy(); RadarBlips[pl]=nil end
		end
	end)
end

local HUD

local function applyToggleSideEffects(key)
	if key=="NPCs" and Toggles.NPCs then updateNPCCache() end
	if key=="ESP" or key=="TeamCheck" or key=="NPCs" then
		for _,v in pairs(Workspace:GetDescendants()) do
			if v:IsA("Highlight") and v.Name=="SmartESP" then v:Destroy() end
		end; HighlightCache={}
	end
	if key=="Chams" or key=="TeamCheck" then ChamsFolder:ClearAllChildren() end
	if key=="HardESP" and not Toggles.HardESP then clearBoxESP() end
	if key=="TeamCheck" and not Toggles.TeamCheck then clearBoxESP() end
	if key=="FOVChanger" and not Toggles.FOVChanger then Camera.FieldOfView=70 end
	if key=="NoGrass" then pcall(function() Workspace.Terrain.Decoration=not Toggles.NoGrass end) end
	if key=="BigHeads" and not Toggles.BigHeads then restoreHeads() end
	if key=="FPSHud" and HUD then HUD.Visible=Toggles.FPSHud end
	if key=="Radar" then if Toggles.Radar then buildRadar() else destroyRadar() end end
end

local function setupPlayerESPRefresh(pl)
	pl.CharacterAdded:Connect(function()
		if Toggles.ESPAutoRefresh then clearESPForUID(pl.Name) end
	end)
end
Players.PlayerAdded:Connect(setupPlayerESPRefresh)
Players.PlayerRemoving:Connect(function(pl) clearESPForUID(pl.Name) end)
for _,pl in ipairs(Players:GetPlayers()) do
	if pl~=LocalPlayer then setupPlayerESPRefresh(pl) end
end

local UI_WHITE = Color3.fromRGB(218,218,218)
local UI_DIM   = Color3.fromRGB(118,118,118)
local UI_DIM2  = Color3.fromRGB( 55, 55, 55)
local UI_RED   = Color3.fromRGB(190, 45, 45)

local COL_W=200; local HDR_H=26; local ROW_H=28; local S_H=28

HUD = Instance.new("Frame")
HUD.Size, HUD.Position = UDim2.new(0,152,0,22), UDim2.new(1,-162,0,8)
HUD.BackgroundColor3   = tint(currentAccent,0.65,0.13)
HUD.BackgroundTransparency, HUD.BorderSizePixel = 0, 0
HUD.Visible, HUD.Parent = true, ScreenGui
Instance.new("UICorner",HUD).CornerRadius = UDim.new(0,4)
local HUDStroke = Instance.new("UIStroke",HUD)
HUDStroke.Color, HUDStroke.Thickness, HUDStroke.Transparency = currentAccent, 1, 0.55
onAccent(function(c) HUD.BackgroundColor3=tint(c,0.65,0.13); HUDStroke.Color=c end)
local HUDBar = Instance.new("Frame")
HUDBar.Size, HUDBar.Position = UDim2.new(0,2,1,0), UDim2.new(0,0,0,0)
HUDBar.BackgroundColor3, HUDBar.BorderSizePixel = currentAccent, 0
HUDBar.Parent = HUD
onAccent(function(c) HUDBar.BackgroundColor3=c end)
local HUDLabel = Instance.new("TextLabel")
HUDLabel.Size, HUDLabel.Position = UDim2.new(1,-10,1,0), UDim2.new(0,8,0,0)
HUDLabel.BackgroundTransparency=1; HUDLabel.Text="FPS: --  |  Ping: --ms"
HUDLabel.TextSize, HUDLabel.Font = 10, Enum.Font.GothamSemibold
HUDLabel.TextColor3, HUDLabel.TextXAlignment = Color3.fromRGB(200,200,200), Enum.TextXAlignment.Left
HUDLabel.Parent = HUD

local Panel = Instance.new("Frame")
Panel.Name, Panel.Size     = "EEPanel", UDim2.new(0,COL_W*4+3,0,0)
Panel.AutomaticSize        = Enum.AutomaticSize.Y
Panel.Position             = UDim2.new(0,10,0,10)
Panel.BackgroundColor3     = outerBg(currentAccent)
Panel.BackgroundTransparency = 0
Panel.BorderSizePixel      = 0
Panel.Visible              = false
Panel.Parent               = ScreenGui
Instance.new("UICorner",Panel).CornerRadius = UDim.new(0,9)
local PanelStroke = Instance.new("UIStroke",Panel)
PanelStroke.Color, PanelStroke.Thickness, PanelStroke.Transparency = currentAccent, 1.5, 0.5
onAccent(function(c) Panel.BackgroundColor3=outerBg(c); PanelStroke.Color=c end)

local PanelLay = Instance.new("UIListLayout",Panel)
PanelLay.FillDirection, PanelLay.SortOrder = Enum.FillDirection.Vertical, Enum.SortOrder.LayoutOrder

local TitleBar = Instance.new("Frame")
TitleBar.Size, TitleBar.BackgroundColor3 = UDim2.new(1,0,0,24), titleBg(currentAccent)
TitleBar.BackgroundTransparency, TitleBar.BorderSizePixel = 0, 0
TitleBar.LayoutOrder, TitleBar.Parent = 1, Panel
onAccent(function(c) TitleBar.BackgroundColor3=titleBg(c) end)

local TBarLine = Instance.new("Frame")
TBarLine.Size, TBarLine.Position = UDim2.new(1,0,0,2), UDim2.new(0,0,1,-2)
TBarLine.BackgroundColor3, TBarLine.BorderSizePixel = currentAccent, 0
TBarLine.Parent = TitleBar
onAccent(function(c) TBarLine.BackgroundColor3=c end)

local TIcon = Instance.new("TextLabel")
TIcon.Size, TIcon.Position = UDim2.new(0,18,1,0), UDim2.new(0,8,0,0)
TIcon.BackgroundTransparency=1; TIcon.Text="⚡"; TIcon.TextSize=11; TIcon.Font=Enum.Font.GothamBold
TIcon.TextColor3, TIcon.Parent = currentAccent, TitleBar
onAccent(function(c) TIcon.TextColor3=c end)

local TName = Instance.new("TextLabel")
TName.Size, TName.Position = UDim2.new(0,145,1,0), UDim2.new(0,27,0,0)
TName.BackgroundTransparency=1; TName.Text="ELITE ESSENTIALS"
TName.TextSize, TName.Font = 11, Enum.Font.GothamBold
TName.TextColor3, TName.TextXAlignment = Color3.fromRGB(210,210,210), Enum.TextXAlignment.Left
TName.Parent = TitleBar

local TStatus = Instance.new("TextLabel")
TStatus.Size, TStatus.Position = UDim2.new(0,110,1,0), UDim2.new(0,188,0,0)
TStatus.BackgroundTransparency=1; TStatus.Text="0 active"
TStatus.TextSize, TStatus.Font = 10, Enum.Font.Gotham
TStatus.TextColor3, TStatus.Parent = Color3.fromRGB(110,110,130), TitleBar

local TKeyHint = Instance.new("TextLabel")
TKeyHint.Size, TKeyHint.Position = UDim2.new(0,90,1,0), UDim2.new(1,-92,0,0)
TKeyHint.BackgroundTransparency=1
TKeyHint.TextSize, TKeyHint.Font = 9, Enum.Font.Gotham
TKeyHint.TextColor3, TKeyHint.TextXAlignment = Color3.fromRGB(70,70,85), Enum.TextXAlignment.Right
TKeyHint.Parent = TitleBar
local function refreshKeyHint() TKeyHint.Text=OpenKey.code.Name.." to hide" end
refreshKeyHint()

local panelDrag={active=false,start=nil,origin=nil}
TitleBar.InputBegan:Connect(function(i)
	if i.UserInputType==Enum.UserInputType.MouseButton1 then
		panelDrag.active,panelDrag.start,panelDrag.origin=true,i.Position,Panel.Position
	end
end)
UserInputService.InputChanged:Connect(function(i)
	if panelDrag.active and i.UserInputType==Enum.UserInputType.MouseMovement then
		local d=i.Position-panelDrag.start
		Panel.Position=UDim2.new(panelDrag.origin.X.Scale,panelDrag.origin.X.Offset+d.X,
			panelDrag.origin.Y.Scale,panelDrag.origin.Y.Offset+d.Y)
	end
end)
UserInputService.InputEnded:Connect(function(i)
	if i.UserInputType==Enum.UserInputType.MouseButton1 then panelDrag.active=false end
end)

local Window = Instance.new("Frame")
Window.Size, Window.AutomaticSize = UDim2.new(0,COL_W*4+3,0,0), Enum.AutomaticSize.Y
Window.BackgroundTransparency, Window.BorderSizePixel = 1, 0
Window.LayoutOrder, Window.Parent = 2, Panel

local WinLayout = Instance.new("UIListLayout",Window)
WinLayout.FillDirection, WinLayout.SortOrder = Enum.FillDirection.Horizontal, Enum.SortOrder.LayoutOrder
WinLayout.Padding = UDim.new(0,1)

local function makeColumn(title, order)
	local col = Instance.new("Frame")
	col.Size, col.AutomaticSize = UDim2.new(0,COL_W,0,0), Enum.AutomaticSize.Y
	col.BackgroundColor3 = colBg(currentAccent)
	col.BackgroundTransparency, col.BorderSizePixel = 0, 0
	col.LayoutOrder, col.Parent = order, Window
	onAccent(function(c) col.BackgroundColor3=colBg(c) end)

	local colLay = Instance.new("UIListLayout",col)
	colLay.SortOrder = Enum.SortOrder.LayoutOrder

	local hdr = Instance.new("TextLabel")
	hdr.Size, hdr.LayoutOrder = UDim2.new(1,0,0,HDR_H), 1
	hdr.BackgroundColor3, hdr.BackgroundTransparency, hdr.BorderSizePixel = hdrBg(currentAccent), 0, 0
	hdr.Text, hdr.TextSize, hdr.Font = title, 12, Enum.Font.GothamBold
	hdr.TextColor3, hdr.TextXAlignment = UI_WHITE, Enum.TextXAlignment.Left
	hdr.Parent = col
	Instance.new("UIPadding",hdr).PaddingLeft = UDim.new(0,10)
	onAccent(function(c) hdr.BackgroundColor3=hdrBg(c) end)

	local hdrBar = Instance.new("Frame")
	hdrBar.Size, hdrBar.Position = UDim2.new(1,0,0,3), UDim2.new(0,0,1,-3)
	hdrBar.BackgroundColor3, hdrBar.BorderSizePixel = currentAccent, 0
	hdrBar.Parent = hdr
	onAccent(function(c) hdrBar.BackgroundColor3=c end)

	hdr.InputBegan:Connect(function(i)
		if i.UserInputType==Enum.UserInputType.MouseButton1 then
			panelDrag.active,panelDrag.start,panelDrag.origin=true,i.Position,Panel.Position
		end
	end)

	local content = Instance.new("Frame")
	content.Size, content.AutomaticSize = UDim2.new(1,0,0,0), Enum.AutomaticSize.Y
	content.BackgroundTransparency, content.BorderSizePixel = 1, 0
	content.LayoutOrder, content.ClipsDescendants = 2, false
	content.Parent = col
	local lay = Instance.new("UIListLayout",content)
	lay.SortOrder, lay.Padding = Enum.SortOrder.LayoutOrder, UDim.new(0,1)
	local pad = Instance.new("UIPadding",content)
	pad.PaddingTop, pad.PaddingBottom = UDim.new(0,2), UDim.new(0,5)

	return content
end

local function makeRow(parent, toggleKey, displayLabel, settingsBuilder)
	local wrap = Instance.new("Frame")
	wrap.Size, wrap.BackgroundTransparency = UDim2.new(1,0,0,ROW_H), 1
	wrap.ClipsDescendants, wrap.Parent = false, parent
	local wLay = Instance.new("UIListLayout",wrap)
	wLay.SortOrder = Enum.SortOrder.LayoutOrder
	wLay:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
		wrap.Size = UDim2.new(1,0,0,wLay.AbsoluteContentSize.Y)
	end)

	local row = Instance.new("Frame")
	row.Size, row.BackgroundColor3 = UDim2.new(1,0,0,ROW_H), rowBg(currentAccent)
	row.BackgroundTransparency, row.BorderSizePixel = 0, 0
	row.LayoutOrder, row.Parent = 1, wrap
	onAccent(function(c)
		if not (toggleKey and Toggles[toggleKey]) then row.BackgroundColor3=rowBg(c) end
	end)

	local sep = Instance.new("Frame")
	sep.Size, sep.Position = UDim2.new(1,0,0,1), UDim2.new(0,0,1,-1)
	sep.BackgroundColor3, sep.BorderSizePixel = sepColor(currentAccent), 0
	sep.Parent = row
	onAccent(function(c) sep.BackgroundColor3=sepColor(c) end)

	local bar = Instance.new("Frame")
	bar.Size, bar.BackgroundColor3 = UDim2.new(0,3,1,-1), currentAccent
	bar.BackgroundTransparency, bar.BorderSizePixel = 1, 0
	bar.Parent = row
	onAccent(function(c) bar.BackgroundColor3=c end)

	local hasSet = settingsBuilder~=nil
	local nameLbl = Instance.new("TextLabel")
	nameLbl.Size     = UDim2.new(1, hasSet and -26 or -6, 1, -1)
	nameLbl.Position = UDim2.new(0,9,0,0)
	nameLbl.BackgroundTransparency=1
	nameLbl.Text, nameLbl.TextSize, nameLbl.Font = displayLabel, 11, Enum.Font.Gotham
	nameLbl.TextColor3, nameLbl.TextXAlignment = UI_DIM, Enum.TextXAlignment.Left
	nameLbl.Parent = row

	local spPanel, spH, expanded, expBtn = nil, {ROW_H}, false, nil
	if hasSet then
		expBtn = Instance.new("TextButton")
		expBtn.Size, expBtn.Position = UDim2.new(0,26,1,0), UDim2.new(1,-26,0,0)
		expBtn.BackgroundTransparency, expBtn.BorderSizePixel = 1, 0
		expBtn.Text, expBtn.TextSize, expBtn.Font = "+", 14, Enum.Font.GothamBold
		expBtn.TextColor3, expBtn.Parent = UI_DIM2, row

		spPanel = Instance.new("Frame")
		spPanel.Size, spPanel.BackgroundColor3 = UDim2.new(1,0,0,0), panelBg(currentAccent)
		spPanel.BorderSizePixel, spPanel.Visible = 0, false
		spPanel.LayoutOrder, spPanel.ClipsDescendants = 2, true
		spPanel.Parent = wrap
		onAccent(function(c) spPanel.BackgroundColor3=panelBg(c) end)
		local spLay = Instance.new("UIListLayout",spPanel)
		spLay.SortOrder = Enum.SortOrder.LayoutOrder
		Instance.new("UIPadding",spPanel).PaddingBottom = UDim.new(0,3)
		settingsBuilder(spPanel)
		spLay:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
			spH[1]=spLay.AbsoluteContentSize.Y+3
			if expanded then spPanel.Size=UDim2.new(1,0,0,spH[1]) end
		end)
		local function toggleExpand()
			expanded=not expanded
			spPanel.Visible=expanded
			spPanel.Size=expanded and UDim2.new(1,0,0,spH[1]) or UDim2.new(1,0,0,0)
			expBtn.Text=expanded and "−" or "+"
			expBtn.TextColor3=expanded and currentAccent or UI_DIM2
		end
		onAccent(function(c) if expanded then expBtn.TextColor3=c end end)
		expBtn.MouseButton1Click:Connect(function() playClick(); toggleExpand() end)
		if not toggleKey then
			local ob=Instance.new("TextButton")
			ob.Size=UDim2.new(1,-26,1,0); ob.BackgroundTransparency,ob.Text,ob.BorderSizePixel=1,"",0
			ob.Parent=row
			ob.MouseButton1Click:Connect(function() playClick(); toggleExpand() end)
		end
	end

	local function refresh()
		if not toggleKey then return end
		local on=Toggles[toggleKey]
		bar.BackgroundTransparency=on and 0 or 1
		nameLbl.TextColor3=on and UI_WHITE or UI_DIM
		row.BackgroundColor3=on and softBg(currentAccent) or rowBg(currentAccent)
	end

	if toggleKey then
		FeatureRefresh[toggleKey]=refresh
		onAccent(function()
			if toggleKey and Toggles[toggleKey] then row.BackgroundColor3=softBg(currentAccent) end
		end)
		local cb=Instance.new("TextButton")
		cb.Size=UDim2.new(1,hasSet and -26 or 0,1,0)
		cb.BackgroundTransparency,cb.Text,cb.BorderSizePixel=1,"",0
		cb.Parent=row
		cb.MouseEnter:Connect(function()
			if not Toggles[toggleKey] then row.BackgroundColor3=hoverBg(currentAccent) end
		end)
		cb.MouseLeave:Connect(function()
			row.BackgroundColor3=Toggles[toggleKey] and softBg(currentAccent) or rowBg(currentAccent)
		end)
		cb.MouseButton1Click:Connect(function()
			playClick(); Toggles[toggleKey]=not Toggles[toggleKey]; refresh()
			applyToggleSideEffects(toggleKey)
		end)
		refresh()
	end
end

local function makeActionRow(parent, label, callback)
	local wrap=Instance.new("Frame")
	wrap.Size,wrap.BackgroundTransparency=UDim2.new(1,0,0,ROW_H),1; wrap.Parent=parent
	local row=Instance.new("Frame")
	row.Size,row.BackgroundColor3=UDim2.new(1,0,0,ROW_H),actBtnBg(currentAccent)
	row.BackgroundTransparency,row.BorderSizePixel=0,0; row.Parent=wrap
	onAccent(function(c) row.BackgroundColor3=actBtnBg(c) end)
	local lBar=Instance.new("Frame")
	lBar.Size,lBar.BackgroundColor3,lBar.BorderSizePixel=UDim2.new(0,3,1,0),currentAccent,0; lBar.Parent=row
	onAccent(function(c) lBar.BackgroundColor3=c end)
	local icon=Instance.new("TextLabel")
	icon.Size,icon.Position=UDim2.new(0,18,1,-1),UDim2.new(0,8,0,0)
	icon.BackgroundTransparency=1; icon.Text,icon.TextSize,icon.Font="▶",9,Enum.Font.GothamBold
	icon.TextColor3,icon.Parent=currentAccent,row
	onAccent(function(c) icon.TextColor3=c end)
	local nl=Instance.new("TextLabel")
	nl.Size,nl.Position=UDim2.new(1,-30,1,-1),UDim2.new(0,26,0,0)
	nl.BackgroundTransparency=1; nl.Text,nl.TextSize,nl.Font=label,11,Enum.Font.GothamSemibold
	nl.TextColor3,nl.TextXAlignment=currentAccent,Enum.TextXAlignment.Left; nl.Parent=row
	onAccent(function(c) nl.TextColor3=c end)
	local s=Instance.new("Frame")
	s.Size,s.Position=UDim2.new(1,0,0,1),UDim2.new(0,0,1,-1)
	s.BackgroundColor3,s.BorderSizePixel=sepColor(currentAccent),0; s.Parent=row
	onAccent(function(c) s.BackgroundColor3=sepColor(c) end)
	local btn=Instance.new("TextButton")
	btn.Size,btn.BackgroundTransparency,btn.Text,btn.BorderSizePixel=UDim2.new(1,0,1,0),1,"",0; btn.Parent=row
	btn.MouseEnter:Connect(function() row.BackgroundColor3=softBg(currentAccent) end)
	btn.MouseLeave:Connect(function() row.BackgroundColor3=actBtnBg(currentAccent) end)
	btn.MouseButton1Click:Connect(function() playClick(); callback() end)
end

local function sSep(parent, order)
	local f=Instance.new("Frame")
	f.Size,f.BackgroundColor3,f.BorderSizePixel=UDim2.new(1,0,0,1),sepColor(currentAccent),0
	f.LayoutOrder,f.Parent=order,parent
	onAccent(function(c) f.BackgroundColor3=sepColor(c) end)
end

local function sKeybind(parent, label, keyRef, order)
	local row=Instance.new("Frame")
	row.Size,row.BackgroundTransparency=UDim2.new(1,0,0,S_H),1
	row.LayoutOrder,row.Parent=order,parent
	local lbl=Instance.new("TextLabel")
	lbl.Size,lbl.Position=UDim2.new(0.44,0,1,0),UDim2.new(0,10,0,0)
	lbl.BackgroundTransparency=1; lbl.Text,lbl.TextSize,lbl.Font=label,10,Enum.Font.Gotham
	lbl.TextColor3,lbl.TextXAlignment=UI_DIM,Enum.TextXAlignment.Left; lbl.Parent=row
	local btn=Instance.new("TextButton")
	btn.Size,btn.Position=UDim2.new(0.5,-10,0,18),UDim2.new(0.48,0,0.5,-9)
	btn.BackgroundColor3,btn.BackgroundTransparency,btn.BorderSizePixel=kbBg(currentAccent),0,0
	btn.Text=keyRef and (keyRef.code and keyRef.code.Name or "NONE") or "NONE"
	btn.TextSize,btn.Font=10,Enum.Font.GothamSemibold
	btn.TextColor3,btn.Parent=UI_WHITE,row
	Instance.new("UICorner",btn).CornerRadius=UDim.new(0,3)
	onAccent(function(c) btn.BackgroundColor3=kbBg(c) end)
	local busy={false}; local bindConn
	btn.MouseButton1Click:Connect(function()
		if not keyRef or busy[1] then return end
		busy[1]=true; btn.Text="..."; btn.BackgroundColor3=UI_RED
		bindConn=UserInputService.InputBegan:Connect(function(inp,proc)
			if proc or inp.UserInputType~=Enum.UserInputType.Keyboard then return end
			if inp.KeyCode==Enum.KeyCode.Backspace then keyRef.code=nil; btn.Text="NONE"
			else keyRef.code=inp.KeyCode; btn.Text=inp.KeyCode.Name end
			busy[1]=false; btn.BackgroundColor3=kbBg(currentAccent); bindConn:Disconnect()
			if keyRef==OpenKey then refreshKeyHint() end
		end)
	end)
end

local function sSlider(parent, label, key, minV, maxV, order)
	local wrap=Instance.new("Frame")
	wrap.Size,wrap.BackgroundTransparency=UDim2.new(1,0,0,40),1
	wrap.LayoutOrder,wrap.Parent=order,parent
	local lbl=Instance.new("TextLabel")
	lbl.Size,lbl.Position=UDim2.new(0.62,0,0,16),UDim2.new(0,10,0,4)
	lbl.BackgroundTransparency=1; lbl.Text,lbl.TextSize,lbl.Font=label,10,Enum.Font.Gotham
	lbl.TextColor3,lbl.TextXAlignment=UI_DIM,Enum.TextXAlignment.Left; lbl.Parent=wrap
	local vLbl=Instance.new("TextLabel")
	vLbl.Size,vLbl.Position=UDim2.new(0.34,0,0,16),UDim2.new(0.62,0,0,4)
	vLbl.BackgroundTransparency=1; vLbl.TextSize,vLbl.Font=10,Enum.Font.GothamSemibold
	vLbl.TextColor3,vLbl.TextXAlignment=UI_WHITE,Enum.TextXAlignment.Right; vLbl.Parent=wrap
	local track=Instance.new("Frame")
	track.Size,track.Position=UDim2.new(1,-20,0,3),UDim2.new(0,10,0,27)
	track.BackgroundColor3,track.BorderSizePixel=trackBg(currentAccent),0; track.Parent=wrap
	onAccent(function(c) track.BackgroundColor3=trackBg(c) end)
	local fill=Instance.new("Frame")
	fill.Size,fill.BackgroundColor3,fill.BorderSizePixel=UDim2.new(0,0,1,0),currentAccent,0; fill.Parent=track
	onAccent(function(c) fill.BackgroundColor3=c end)
	local knob=Instance.new("Frame")
	knob.Size,knob.AnchorPoint,knob.Position=UDim2.new(0,7,0,7),Vector2.new(0.5,0.5),UDim2.new(0,0,0.5,0)
	knob.BackgroundColor3,knob.BorderSizePixel=UI_WHITE,0; knob.Parent=track
	Instance.new("UICorner",knob).CornerRadius=UDim.new(1,0)
	local function setR(r)
		r=math.clamp(r,0,1)
		local range=maxV-minV; local val
		if range<=5 then val=math.round((minV+range*r)*100)/100
		elseif range<=20 then val=math.round((minV+range*r)*10)/10
		else val=math.round(minV+range*r) end
		Settings[key]=val; vLbl.Text=tostring(val)
		fill.Size=UDim2.new(r,0,1,0); knob.Position=UDim2.new(r,0,0.5,0)
		if key=="AimbotFOV" then FOVRing.Size=UDim2.new(0,val*2,0,val*2) end
	end
	setR((Settings[key]-minV)/(maxV-minV))
	local dragging=false
	local hit=Instance.new("TextButton")
	hit.Size,hit.Position=UDim2.new(1,0,1,8),UDim2.new(0,0,0,-4)
	hit.BackgroundTransparency,hit.Text=1,""; hit.Parent=track
	hit.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 then dragging=true end end)
	UserInputService.InputChanged:Connect(function(i)
		if dragging and i.UserInputType==Enum.UserInputType.MouseMovement then
			setR((i.Position.X-track.AbsolutePosition.X)/track.AbsoluteSize.X)
		end
	end)
	UserInputService.InputEnded:Connect(function(i)
		if i.UserInputType==Enum.UserInputType.MouseButton1 then dragging=false end
	end)
end

local function sCycler(parent, label, options, settingKey, idxRef, colorDots, order)
	local row=Instance.new("Frame")
	row.Size,row.BackgroundTransparency=UDim2.new(1,0,0,S_H),1
	row.LayoutOrder,row.Parent=order,parent
	local lbl=Instance.new("TextLabel")
	lbl.Size,lbl.Position=UDim2.new(0.4,0,1,0),UDim2.new(0,10,0,0)
	lbl.BackgroundTransparency=1; lbl.Text,lbl.TextSize,lbl.Font=label,10,Enum.Font.Gotham
	lbl.TextColor3,lbl.TextXAlignment=UI_DIM,Enum.TextXAlignment.Left; lbl.Parent=row
	local prev=Instance.new("TextButton")
	prev.Size,prev.Position=UDim2.new(0,14,0,14),UDim2.new(1,-100,0.5,-7)
	prev.BackgroundTransparency,prev.BorderSizePixel=1,0
	prev.Text,prev.TextSize,prev.Font="◀",9,Enum.Font.GothamBold
	prev.TextColor3,prev.Parent=UI_DIM,row
	local dot=nil
	if colorDots then
		dot=Instance.new("Frame")
		dot.Size,dot.Position=UDim2.new(0,10,0,10),UDim2.new(1,-80,0.5,-5)
		dot.BorderSizePixel,dot.Parent=0,row
		Instance.new("UICorner",dot).CornerRadius=UDim.new(1,0)
	end
	local vLbl=Instance.new("TextLabel")
	vLbl.Size=UDim2.new(0,colorDots and 42 or 56,1,0)
	vLbl.Position=UDim2.new(1,colorDots and -76 or -70,0,0)
	vLbl.BackgroundTransparency=1; vLbl.TextSize,vLbl.Font=10,Enum.Font.GothamSemibold
	vLbl.TextColor3,vLbl.Parent=UI_WHITE,row
	local nxt=Instance.new("TextButton")
	nxt.Size,nxt.Position=UDim2.new(0,14,0,14),UDim2.new(1,-18,0.5,-7)
	nxt.BackgroundTransparency,nxt.BorderSizePixel=1,0
	nxt.Text,nxt.TextSize,nxt.Font="▶",9,Enum.Font.GothamBold
	nxt.TextColor3,nxt.Parent=UI_DIM,row
	local function ref()
		vLbl.Text=options[idxRef[1]]
		if settingKey then Settings[settingKey]=options[idxRef[1]] end
		if dot and colorDots then dot.BackgroundColor3=colorDots[idxRef[1]] end
	end
	prev.MouseButton1Click:Connect(function()
		idxRef[1]=idxRef[1]-1; if idxRef[1]<1 then idxRef[1]=#options end; ref()
	end)
	nxt.MouseButton1Click:Connect(function()
		idxRef[1]=idxRef[1]+1; if idxRef[1]>#options then idxRef[1]=1 end; ref()
	end)
	ref()
end

local combatCol=makeColumn("Combat",1); local espCol=makeColumn("ESP",2)
local visualsCol=makeColumn("Visuals",3); local configCol=makeColumn("Config",4)

do
	makeRow(combatCol,"Aimbot","AimAssist",function(p)
		sKeybind(p,"Keybind",FeatureKeys.Aimbot,1); sSep(p,2)
		sSlider(p,"Smoothness","AimbotSmoothness",0.01,1,3)
		sSlider(p,"Aim FOV","AimbotFOV",50,600,4)
		sSlider(p,"Y Offset","AimbotYOffset",-10,10,5); sSep(p,6)
		sCycler(p,"Target Bone",AimbotTargets,"AimbotTarget",CurrentTargetIdx,nil,7)
	end)
	makeRow(combatCol,"FOVCircle","FOV Circle",nil)
	makeRow(combatCol,"WallCheck","Wall Check",nil)
	makeRow(combatCol,"TeamCheck","Team Check",nil)
	makeRow(combatCol,"NPCs","Target NPCs",nil)
	makeRow(combatCol,"BigHeads","Big Heads",function(p)
		sSlider(p,"Head Size","BigHeadsSize",1,8,1)
	end)
end

do
	makeRow(espCol,"ESP","ESP Glow",function(p)
		sKeybind(p,"Keybind",FeatureKeys.ESP,1); sSep(p,2)
		sCycler(p,"Visible",PRESET_NAMES,nil,VisibleColorIdx,PRESET_VALS,3)
		sCycler(p,"Hidden",PRESET_NAMES,nil,HiddenColorIdx,PRESET_VALS,4)
	end)
	makeRow(espCol,"HardESP","Outline ESP",function(p)
		sKeybind(p,"Keybind",FeatureKeys.HardESP,1)
	end)
	makeRow(espCol,"Chams","Name Tags",function(p)
		sSlider(p,"Text Size","ChamsTextSize",8,28,1)
	end)
	makeRow(espCol,"TeamColors","Team Colors",nil)
	makeRow(espCol,"ESPAutoRefresh","Auto Detect Joins",nil)
end

do
	makeRow(visualsCol,"Fullbright","Fullbright",nil)
	makeRow(visualsCol,"NoFog","No Fog",nil)
	makeRow(visualsCol,"NoGrass","No Grass",nil)
	makeRow(visualsCol,"FOVChanger","Camera FOV",function(p)
		sKeybind(p,"Keybind",FeatureKeys.FOVChanger,1); sSep(p,2)
		sSlider(p,"FOV Value","CameraFOV",40,120,3)
	end)
	makeRow(visualsCol,nil,"Zoom (Hold)",function(p)
		sKeybind(p,"Zoom Key",ZoomKey,1); sSep(p,2)
		sSlider(p,"Zoom FOV","ZoomFOV",1,50,3)
	end)
	makeRow(visualsCol,"Radar","Radar / Minimap",function(p)
		sSlider(p,"Map Size","RadarSize",120,280,1)
		sSlider(p,"Range","RadarRange",50,500,2)
	end)
end

do
	makeRow(configCol,"FPSHud","FPS / Ping HUD",nil)
	makeRow(configCol,nil,"Menu Key",function(p) sKeybind(p,"Key",OpenKey,1) end)
	makeRow(configCol,nil,"Theme",function(p)
		local tn={}; for _,t in ipairs(THEMES) do table.insert(tn,t.name) end
		sCycler(p,"Theme",tn,nil,ThemeIndex,nil,1)
		local swRow=Instance.new("Frame")
		swRow.Size,swRow.BackgroundTransparency=UDim2.new(1,0,0,28),1
		swRow.LayoutOrder,swRow.Parent=2,p
		local swL=Instance.new("UIListLayout",swRow)
		swL.FillDirection,swL.Padding=Enum.FillDirection.Horizontal,UDim.new(0,5)
		swL.HorizontalAlignment,swL.VerticalAlignment=
			Enum.HorizontalAlignment.Center,Enum.VerticalAlignment.Center
		local swatches={}
		for i,t in ipairs(THEMES) do
			local sw=Instance.new("Frame")
			sw.Size,sw.BackgroundColor3,sw.BorderSizePixel=UDim2.new(0,22,0,18),t.col,0
			sw.Parent=swRow; Instance.new("UICorner",sw).CornerRadius=UDim.new(0,3); swatches[i]=sw
		end
		local function refSw()
			for i,sw in ipairs(swatches) do
				local ex=sw:FindFirstChildOfClass("UIStroke"); if ex then ex:Destroy() end
				if i==ThemeIndex[1] then
					local s=Instance.new("UIStroke",sw); s.Color,s.Thickness=Color3.new(1,1,1),1.2
				end
			end
		end
		refSw()
		local last=ThemeIndex[1]
		RunService.Heartbeat:Connect(function()
			if ThemeIndex[1]~=last then
				last=ThemeIndex[1]; setAccent(THEMES[ThemeIndex[1]].col); refSw()
			end
		end)
	end)
	makeRow(configCol,nil,"FOV Ring",function(p)
		sCycler(p,"Color",RingColorNames,nil,RingColorIdx,RingColorVals,1)
		sSlider(p,"Thickness","_FOVThick",0.5,4,2)
	end)
	makeRow(configCol,nil,"Reset Defaults",function(p)
		local btn=Instance.new("TextButton")
		btn.Size,btn.BackgroundColor3,btn.BorderSizePixel=UDim2.new(1,-20,0,22),Color3.fromRGB(55,12,12),0
		btn.Text,btn.TextSize,btn.Font="Reset All",10,Enum.Font.GothamBold
		btn.TextColor3,btn.LayoutOrder,btn.Parent=Color3.fromRGB(210,70,70),1,p
		Instance.new("UICorner",btn).CornerRadius=UDim.new(0,3)
		Instance.new("UIPadding",btn).PaddingLeft=UDim.new(0,8)
		btn.MouseButton1Click:Connect(function()
			playClick()
			Settings.AimbotSmoothness=0.4; Settings.AimbotFOV=200; Settings.AimbotYOffset=0
			Settings.CameraFOV=70; Settings.ChamsTextSize=14; Settings.ZoomFOV=20
			Settings._FOVThick=1.5; Settings.AimbotTarget="Head"; Settings.BigHeadsSize=3.25
			Settings.RadarSize=200; Settings.RadarRange=150
			CurrentTargetIdx[1]=1; VisibleColorIdx[1]=1; HiddenColorIdx[1]=2
			RingColorIdx[1]=1; ThemeIndex[1]=1
			OpenKey.code=Enum.KeyCode.RightShift; ZoomKey.code=Enum.KeyCode.C
			for k in pairs(FeatureKeys) do FeatureKeys[k].code=nil end
			for k in pairs(Toggles) do Toggles[k]=(k=="FPSHud") end
			Camera.FieldOfView=70
			pcall(function() Workspace.Terrain.Decoration=true end)
			Lighting.FogEnd=100000; restoreHeads(); clearBoxESP(); destroyRadar()
			for _,v in pairs(Workspace:GetDescendants()) do
				if v:IsA("Highlight") and v.Name=="SmartESP" then v:Destroy() end
			end
			HighlightCache={}; ChamsFolder:ClearAllChildren()
			HUD.Visible=true; setAccent(THEMES[1].col)
			refreshKeyHint()
			for _,fn in pairs(FeatureRefresh) do pcall(fn) end
		end)
	end)
	makeActionRow(configCol,"Load Brainrot Police",function()
		pcall(function()
			loadstring(game:HttpGet("https://raw.githubusercontent.com/IcantAffordSynapse/BrainrotPolice/refs/heads/main/src/init.lua"))()
		end)
	end)
	makeActionRow(configCol,"Load Gamepass Listener",function()
		pcall(function()
			loadstring(game:HttpGet("https://raw.githubusercontent.com/mustafaeymenaydinn/Gamepass-Listener-V2/refs/heads/main/MainCode.lua"))()
		end)
	end)
	makeActionRow(configCol,"Infinite Yield",function()
		pcall(function()
			loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
		end)
	end)
end

local stTimer=0
RunService.Heartbeat:Connect(function()
	Settings.VisibleColor=PRESET_VALS[VisibleColorIdx[1]]
	Settings.HiddenColor =PRESET_VALS[HiddenColorIdx[1]]
	FOVStroke.Color      =RingColorVals[RingColorIdx[1]]
	FOVStroke.Thickness  =Settings._FOVThick
	stTimer=stTimer+1/60
	if stTimer>=0.5 then
		stTimer=0
		local n=0; for _,v in pairs(Toggles) do if v then n=n+1 end end
		TStatus.Text=n.." active"
	end
end)

UserInputService.InputBegan:Connect(function(i,proc)
	if proc then return end
	if i.UserInputType~=Enum.UserInputType.Keyboard then return end
	if i.KeyCode==OpenKey.code then
		Panel.Visible=not Panel.Visible
		UserInputService.MouseBehavior=
			Panel.Visible and Enum.MouseBehavior.Default or Enum.MouseBehavior.LockCenter
		return
	end
	for tk,kd in pairs(FeatureKeys) do
		if kd.code and i.KeyCode==kd.code then
			Toggles[tk]=not Toggles[tk]; applyToggleSideEffects(tk)
			if FeatureRefresh[tk] then FeatureRefresh[tk]() end
		end
	end
end)

local function getTargetData(model)
	if not model or not model:IsA("Model") or model==LocalPlayer.Character then return nil end
	local hum=model:FindFirstChildOfClass("Humanoid")
	if not hum or hum.Health<=0 then return nil end
	local part=model:FindFirstChild("Head") or model:FindFirstChild("HumanoidRootPart") or model:FindFirstChildWhichIsA("BasePart")
	return part,hum
end
local RayParams=RaycastParams.new(); RayParams.FilterType=Enum.RaycastFilterType.Exclude
local function checkVisibility(tChar,tPart,originPos)
	local parts={tPart}
	local hrp=tChar:FindFirstChild("HumanoidRootPart")
	if hrp and hrp~=tPart then table.insert(parts,hrp) end
	for _,part in ipairs(parts) do
		local res=Workspace:Raycast(originPos,part.Position-originPos,RayParams)
		if not res or res.Instance:IsDescendantOf(tChar) then return true end
	end
	return false
end

local espTimer=0; local ESP_TICK=0.1; local hudTimer=0; local fpsSmooth=60

RunService.RenderStepped:Connect(function(dt)
	local char=LocalPlayer.Character
	if not char then return end
	local mousePos=UserInputService:GetMouseLocation()
	fpsSmooth=fpsSmooth*0.88+(1/dt)*0.12
	hudTimer=hudTimer+dt
	if hudTimer>=0.5 then
		hudTimer=0; local ping=0
		pcall(function()
			ping=math.round(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValue())
		end)
		HUDLabel.Text=string.format("FPS: %d  |  Ping: %dms",math.round(fpsSmooth),ping)
	end
	FOVRing.Visible=Toggles.FOVCircle and not Panel.Visible
	if FOVRing.Visible then
		FOVRing.Size=UDim2.new(0,Settings.AimbotFOV*2,0,Settings.AimbotFOV*2)
		FOVRing.Position=UDim2.new(0,mousePos.X,0,mousePos.Y)
	end
	if Panel.Visible then return end
	local zoomHeld=UserInputService:IsKeyDown(ZoomKey.code)
	if zoomHeld then Camera.FieldOfView=Settings.ZoomFOV
	elseif Toggles.FOVChanger then Camera.FieldOfView=Settings.CameraFOV
	else if Camera.FieldOfView==Settings.ZoomFOV then Camera.FieldOfView=70 end end
	if Toggles.Fullbright then
		Lighting.Ambient,Lighting.OutdoorAmbient,Lighting.Brightness=Color3.new(1,1,1),Color3.new(1,1,1),2
	end
	if Toggles.NoFog then Lighting.FogEnd=100000 end
	local targets={}
	for _,pl in pairs(Players:GetPlayers()) do
		if pl~=LocalPlayer and pl.Character then
			if not (Toggles.TeamCheck and pl.Team==LocalPlayer.Team) then
				local part,hum=getTargetData(pl.Character)
				if part then table.insert(targets,{Char=pl.Character,Part=part,Hum=hum,Player=pl}) end
			end
		end
	end
	if Toggles.NPCs then
		for i=#CachedNPCs,1,-1 do
			local v=CachedNPCs[i]
			if v and v.Parent then
				local part,hum=getTargetData(v)
				if part then table.insert(targets,{Char=v,Part=part,Hum=hum,Player=nil}) end
			else table.remove(CachedNPCs,i) end
		end
	end
	if LocalPlayer.Character then
		RayParams.FilterDescendantsInstances={LocalPlayer.Character,Camera}
	end
	local originPart=char:FindFirstChild("Head") or char:FindFirstChild("HumanoidRootPart")
	local originPos=originPart and originPart.Position or Camera.CFrame.Position
	local bestPart,bestDist=nil,Settings.AimbotFOV
	local activeIDs={}
	local needRay=Toggles.WallCheck or Toggles.ESP or Toggles.HardESP or Toggles.Chams
	espTimer=espTimer+dt; local doESP=espTimer>=ESP_TICK; if doESP then espTimer=0 end
	for _,data in pairs(targets) do
		local tChar,tPart,tHum,tPlayer=data.Char,data.Part,data.Hum,data.Player
		local uid=tChar:GetAttribute("ChamID")
		if not uid then
			uid=tPlayer and tPlayer.Name or HttpService:GenerateGUID(false)
			tChar:SetAttribute("ChamID",uid)
		end
		activeIDs[uid]=true
		local visible=true
		if needRay then visible=checkVisibility(tChar,tPart,originPos) end
		local col=visible and Settings.VisibleColor or Settings.HiddenColor
		if Toggles.TeamColors and tPlayer and tPlayer.Team then
			col=tPlayer.Team.TeamColor.Color
			if not visible then local h,s,v=col:ToHSV(); col=Color3.fromHSV(h,s,v*0.4) end
		end
		if doESP then
			if Toggles.ESP then
				local hi=HighlightCache[uid]
				if not hi or not hi.Parent then
					hi=Instance.new("Highlight",tChar); hi.Name="SmartESP"; HighlightCache[uid]=hi
				end
				hi.FillColor,hi.OutlineTransparency=col,1
			end
			if Toggles.HardESP then updateBoxESP(uid,tChar,col) end
			if Toggles.Chams then
				local tag=ChamsFolder:FindFirstChild(uid) or Instance.new("BillboardGui",ChamsFolder)
				tag.Name,tag.Adornee,tag.Size,tag.AlwaysOnTop=uid,tPart,UDim2.new(0,200,0,70),true
				local fl=tag:FindFirstChild("TextLabel") or Instance.new("TextLabel",tag)
				fl.Size,fl.BackgroundTransparency=UDim2.new(1,0,1,0),1
				fl.TextColor3,fl.TextSize=col,Settings.ChamsTextSize
				fl.Text=string.format("%s\nHP: %d\n[%s]",
					tPlayer and tPlayer.Name or tChar.Name,math.floor(tHum.Health),
					tPlayer and (tPlayer.Team and tPlayer.Team.Name or "Neutral") or "NPC")
			end
			if Toggles.BigHeads then
				local head=tChar:FindFirstChild("Head")
				if head then
					if not HeadCache[uid] then HeadCache[uid]={part=head,orig=head.Size} end
					local sz=Settings.BigHeadsSize; head.Size=Vector3.new(sz,sz,sz)
				end
			end
			if not Toggles.ESP and HighlightCache[uid] then
				HighlightCache[uid]:Destroy(); HighlightCache[uid]=nil
			end
		end
		if Toggles.Aimbot and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
			local ap=tChar:FindFirstChild(Settings.AimbotTarget) or tPart
			local aimPos=ap.Position+Vector3.new(0,Settings.AimbotYOffset,0)
			local sPos,onScreen=Camera:WorldToViewportPoint(aimPos)
			if onScreen then
				local dist=(Vector2.new(sPos.X,sPos.Y)-mousePos).Magnitude
				if dist<bestDist and (not Toggles.WallCheck or visible) then
					bestDist=dist; bestPart={Position=aimPos}
				end
			end
		end
	end
	if doESP then
		for id,hi in pairs(HighlightCache) do
			if not activeIDs[id] then hi:Destroy(); HighlightCache[id]=nil end
		end
		if Toggles.HardESP then
			for _,grp in ipairs(BoxesFolder:GetChildren()) do
				if not activeIDs[grp.Name] then grp:Destroy() end
			end
		end
		for _,child in ipairs(ChamsFolder:GetChildren()) do
			if not activeIDs[child.Name] then child:Destroy() end
		end
		for id,hdata in pairs(HeadCache) do
			if not activeIDs[id] then
				if hdata.part and hdata.part.Parent then hdata.part.Size=hdata.orig end
				HeadCache[id]=nil
			end
		end
	end
	if bestPart then
		Camera.CFrame=Camera.CFrame:Lerp(
			CFrame.new(Camera.CFrame.Position,bestPart.Position),Settings.AimbotSmoothness)
	end
end)

説明

## **read be4 u judge** open with right shift yes twin this is ai cuz idk how to script and i aint learinin alla that 🥹🥹🥹 **BUTTtttt** it isnt low quality it just looks bad and ur settings dont save and its the only FREE script ive only really seen with AI/NPC detection, with working aimbot and ESP for the npc's sooooooo yeah btw ive used it a lot and you dont get detected at all if you keep it on the low (like switching to hitting body shots not headshots) or if u just use box esp

コメント (0)

会話に参加するにはログインしてください

  • 最初のコメントを投稿しましょう。

よくある質問

EliteEssentials -- FULLY OPEN SOURCEスクリプトはどう使いますか?
上のスクリプトコードをコピーし、Robloxエグゼキューターを開いて貼り付け、ゲーム中に実行を押してください。スクリプトが実行されると、機能が即座に有効になります。
EliteEssentials -- FULLY OPEN SOURCEスクリプトは無料ですか?
はい。このスクリプトは無料でコピー&使用できます。キーシステムを使用している場合は、リンクから無料でキーを取得してください。
EliteEssentials -- FULLY OPEN SOURCEスクリプトの使用は安全ですか?
ソースコード全体がこのページに表示されるので、実行前に内容を正確に確認できます。信頼できるエグゼキューターを使用し、スクリプトの使用はRobloxの利用規約に違反するため、自己責任で使用してください。
EliteEssentials -- FULLY OPEN SOURCEに対応するエグゼキューターは?
このスクリプトはほとんどの人気Robloxエグゼキューターで動作します。お使いのデバイス向けの信頼できる無料または有料エグゼキューターを見つけるには、エグゼキューターページをご覧ください。
EliteEssentials -- FULLY OPEN SOURCE | BloxScripter