local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local localPlayer = Players.LocalPlayer if workspace:FindFirstChild("DuelTablesESP") then workspace.DuelTablesESP:Destroy() end local espFolder = Instance.new("Folder") espFolder.Name = "DuelTablesESP" espFolder.Parent = workspace local autoRevealActive = false local espActive = false local function revealTile(p3) if not p3 or not p3.Parent then return end p3.Transparency = 1 local v4 = p3:FindFirstChildWhichIsA("SurfaceGui") if v4 then for _, v5 in ipairs(v4:GetChildren()) do if v5:IsA("ImageLabel") and v5.Name ~= "CharacterImage" then v5.Visible = false end end local v6 = v4:FindFirstChild("CharacterImage") if v6 then v6.Visible = true end end end local function updateESPState(enabled) espFolder:ClearAllChildren() if not enabled then return end local duelTables = workspace:FindFirstChild("DuelTables") if duelTables then for _, tableFolder in ipairs(duelTables:GetChildren()) do local highlight = Instance.new("Highlight") highlight.Name = tableFolder.Name .. "_ESP" highlight.Adornee = tableFolder highlight.FillColor = Color3.fromRGB(0, 242, 254) highlight.FillTransparency = 0.7 highlight.OutlineColor = Color3.fromRGB(0, 242, 254) highlight.OutlineTransparency = 0.2 highlight.Parent = espFolder end end end task.spawn(function() while task.wait(0.2) do if autoRevealActive then pcall(function() local duelTables = workspace:FindFirstChild("DuelTables") if duelTables then for _, tableFolder in ipairs(duelTables:GetChildren()) do for _, grid in ipairs(tableFolder:GetChildren()) do if grid.Name:match("Grid$") then for _, tile in ipairs(grid:GetChildren()) do if tile:IsA("BasePart") then revealTile(tile) end end end end end end end) end end end) local Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local window = Rayfield:CreateWindow({ name = "⚡ DUEL TABLES // HUB", subtitle = "Rayfield Gen2", }) local mainTab = window:CreateTab({ name = "Main", icon = 93364949241311 }) local teleportTab = window:CreateTab({ name = "Teleports", icon = 93364949241311 }) local creditsTab = window:CreateTab({ name = "Credits", icon = 93364949241311 }) mainTab:CreateToggle({ name = "Auto Reveal Tiles", callback = function(value) autoRevealActive = value end, }) mainTab:CreateToggle({ name = "Visual Table ESP", callback = function(value) espActive = value updateESPState(espActive) end, }) mainTab:CreateButton({ name = "Force Use Reveal Credit", callback = function() pcall(function() local remotes = ReplicatedStorage:FindFirstChild("Remotes") local useRevealCredit = remotes and remotes:FindFirstChild("UseRevealCredit") if useRevealCredit then if useRevealCredit:IsA("RemoteEvent") then useRevealCredit:FireServer() elseif useRevealCredit:IsA("RemoteFunction") then useRevealCredit:InvokeServer() end window:Notify({ title = "Success", content = "Fired UseRevealCredit remote.", }) end end) end, }) local function loadTeleports() local duelTables = workspace:FindFirstChild("DuelTables") if not duelTables then return end for i, tableFolder in ipairs(duelTables:GetChildren()) do teleportTab:CreateButton({ name = "Teleport to Table #" .. i, callback = function() pcall(function() local char = localPlayer.Character if char and char:FindFirstChild("HumanoidRootPart") then local primaryPart = tableFolder:FindFirstChildWhichIsA("BasePart") or tableFolder:GetChildren()[1] if primaryPart and primaryPart:IsA("BasePart") then char.HumanoidRootPart.CFrame = primaryPart.CFrame + Vector3.new(0, 5, 0) end end end) end, }) end end loadTeleports() creditsTab:CreateButton({ name = "Script by: Zeno", callback = function() end, })