local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Lighting = game:GetService("Lighting") local Camera = workspace.CurrentCamera local LocalPlayer = Players.LocalPlayer local HttpService = game:GetService("HttpService") local UserInputService = game:GetService("UserInputService") local Win = Rayfield:CreateWindow({ Name = "TRIGXEE // Ro-cam", LoadingTitle = "Loading...", LoadingSubtitle = "ESP Suite", Theme = "Dark", ConfigurationSaving = { Enabled = false }, KeySystem = false, }) local Config = { Enabled = false, ShowHighlight = false, ShowBox = false, ShowSkeleton = false, ShowHealth = true, ShowName = true, ShowDistance = true, MaxDist = 1000, DistUnit = "Meters", HighlightSight = false, SightColor = Color3.fromRGB(255, 50, 50), Fullbright = false, InfJump = false } local Cache = {} local TeamOutlines = Camera:WaitForChild("TF_TeamOutlines") local RayParam = RaycastParams.new() RayParam.FilterType = Enum.RaycastFilterType.Exclude local ConfigFile = "TRIGXEE_Config.json" local OriginalLighting = { Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, Brightness = Lighting.Brightness, ClockTime = Lighting.ClockTime, FogEnd = Lighting.FogEnd, GlobalShadows = Lighting.GlobalShadows } local function saveConfig() if not writefile then return false end return pcall(function() writefile(ConfigFile, HttpService:JSONEncode(Config)) end) end local function loadConfig() if not (isfile and readfile) then return false end if not isfile(ConfigFile) then return false end local success, data = pcall(readfile, ConfigFile) if not success or not data then return false end local decodeSuccess, decoded = pcall(HttpService.JSONDecode, HttpService, data) if not decodeSuccess or not decoded then return false end for k, v in pairs(decoded) do if Config[k] ~= nil then Config[k] = v end end return true end local function applyFullbright() if Config.Fullbright then Lighting.Ambient = Color3.fromRGB(255, 255, 255) Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255) Lighting.Brightness = 3 Lighting.ClockTime = 12 Lighting.FogEnd = 100000 Lighting.GlobalShadows = false else Lighting.Ambient = OriginalLighting.Ambient Lighting.OutdoorAmbient = OriginalLighting.OutdoorAmbient Lighting.Brightness = OriginalLighting.Brightness Lighting.ClockTime = OriginalLighting.ClockTime Lighting.FogEnd = OriginalLighting.FogEnd Lighting.GlobalShadows = OriginalLighting.GlobalShadows end end UserInputService.JumpRequest:Connect(function() if Config.InfJump then local char = LocalPlayer.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) local function clearESP(plr) local data = Cache[plr] if not data then return end if data.Highlight then data.Highlight:Destroy() end if data.Box then data.Box:Remove() end if data.TextGui then data.TextGui:Destroy() end if data.Lines then for _, line in pairs(data.Lines) do line.Line:Remove() end end Cache[plr] = nil end local function setupESP(plr) local char = plr.Character if not char then return end local data = { Lines = {} } Cache[plr] = data if Config.ShowHighlight then local h = Instance.new("Highlight") h.Adornee = char h.FillTransparency = 0.5 h.Parent = TeamOutlines data.Highlight = h end if Config.ShowBox then local box = Drawing.new("Square") box.Thickness = 1 box.Filled = false box.Visible = false data.Box = box end if Config.ShowSkeleton then local joints = { {"Head", "UpperTorso"}, {"UpperTorso", "LowerTorso"}, {"UpperTorso", "LeftUpperArm"}, {"LeftUpperArm", "LeftLowerArm"}, {"LeftLowerArm", "LeftHand"}, {"UpperTorso", "RightUpperArm"}, {"RightUpperArm", "RightLowerArm"}, {"RightLowerArm", "RightHand"}, {"LowerTorso", "LeftUpperLeg"}, {"LeftUpperLeg", "LeftLowerLeg"}, {"LeftLowerLeg", "LeftFoot"}, {"LowerTorso", "RightUpperLeg"}, {"RightUpperLeg", "RightLowerLeg"}, {"RightLowerLeg", "RightFoot"} } for i, j in ipairs(joints) do local line = Drawing.new("Line") line.Thickness = 1 line.Transparency = 1 line.Visible = false data.Lines[i] = { Line = line, PartA = j[1], PartB = j[2] } end end if Config.ShowHealth or Config.ShowName or Config.ShowDistance then local gui = Instance.new("BillboardGui") gui.Name = "ESP_Info" gui.Adornee = char:FindFirstChild("Head") or char:FindFirstChild("HumanoidRootPart") gui.Size = UDim2.fromOffset(150, 50) gui.StudsOffset = Vector3.new(0, 2.5, 0) gui.AlwaysOnTop = true gui.Parent = TeamOutlines local label = Instance.new("TextLabel") label.Size = UDim2.fromScale(1, 1) label.BackgroundTransparency = 1 label.Font = Enum.Font.Code label.TextSize = 12 label.TextStrokeTransparency = 0 label.TextYAlignment = Enum.TextYAlignment.Top label.Parent = gui data.TextGui = gui data.TextLabel = label end end RunService.RenderStepped:Connect(function() if not Config.Enabled then if next(Cache) then for plr in pairs(Cache) do clearESP(plr) end end return end for _, plr in ipairs(Players:GetPlayers()) do if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then local char = plr.Character local hum = char:FindFirstChildOfClass("Humanoid") local root = char.HumanoidRootPart if not Cache[plr] or Cache[plr].Highlight and Cache[plr].Highlight.Adornee ~= char then clearESP(plr) setupESP(plr) end local data = Cache[plr] local dist = (Camera.CFrame.Position - root.Position).Magnitude if data then if dist > Config.MaxDist then if data.Highlight then data.Highlight.Enabled = false end if data.Box then data.Box.Visible = false end if data.TextGui then data.TextGui.Enabled = false end if data.Lines then for _, l in pairs(data.Lines) do l.Line.Visible = false end end else if data.Highlight then data.Highlight.Enabled = true end if data.TextGui then data.TextGui.Enabled = true end local inSight = false if Config.HighlightSight then RayParam.FilterDescendantsInstances = { LocalPlayer.Character } local ray = workspace:Raycast(Camera.CFrame.Position, root.Position - Camera.CFrame.Position, RayParam) if not ray or ray.Instance:IsDescendantOf(char) then inSight = true end end local color = inSight and Config.SightColor or Color3.fromRGB(150, 90, 255) if data.Highlight then data.Highlight.FillColor = color data.Highlight.OutlineColor = color end if data.Box then local head = char:FindFirstChild("Head") if head then local top = Camera:WorldToViewportPoint(head.Position + Vector3.new(0, 0.5, 0)) local bottom = Camera:WorldToViewportPoint(root.Position - Vector3.new(0, 3, 0)) if top.Z > 0 and bottom.Z > 0 then local height = math.abs(top.Y - bottom.Y) local width = height / 2 local topY = math.min(top.Y, bottom.Y) data.Box.Size = Vector2.new(width, height) data.Box.Position = Vector2.new(top.X - (width / 2), topY) data.Box.Color = color data.Box.Visible = true else data.Box.Visible = false end end end if data.Lines then for _, l in pairs(data.Lines) do local p1 = char:FindFirstChild(l.PartA) local p2 = char:FindFirstChild(l.PartB) if p1 and p2 and p1:IsA("BasePart") and p2:IsA("BasePart") then local v1, on1 = Camera:WorldToViewportPoint(p1.Position) local v2, on2 = Camera:WorldToViewportPoint(p2.Position) if on1 and on2 then l.Line.From = Vector2.new(v1.X, v1.Y) l.Line.To = Vector2.new(v2.X, v2.Y) l.Line.Color = color l.Line.Visible = true else l.Line.Visible = false end end end end if data.TextLabel then local txt = "" if Config.ShowName then txt = txt .. plr.Name .. "\n" end if Config.ShowHealth and hum then txt = txt .. "HP: " .. math.floor(hum.Health) .. "\n" end if Config.ShowDistance then txt = txt .. math.floor(dist) .. " " .. Config.DistUnit end data.TextLabel.Text = txt data.TextLabel.TextColor3 = inSight and Config.SightColor or Color3.fromRGB(255, 255, 255) end end end end end end) Players.PlayerRemoving:Connect(clearESP) local Tab = Win:CreateTab("ESP", 4483362458) Tab:CreateSection("Master") Tab:CreateToggle({ Name = "Enable ESP", CurrentValue = Config.Enabled, Flag = "ESP_Master", Callback = function(v) Config.Enabled = v if not v then for plr in pairs(Cache) do clearESP(plr) end end end }) Tab:CreateSection("ESP Types") local function refreshTypes() for plr in pairs(Cache) do clearESP(plr) end end Tab:CreateToggle({ Name = "Highlight", CurrentValue = Config.ShowHighlight, Flag = "ESP_TypeHighlight", Callback = function(v) Config.ShowHighlight = v; refreshTypes() end }) Tab:CreateToggle({ Name = "Box", CurrentValue = Config.ShowBox, Flag = "ESP_TypeBox", Callback = function(v) Config.ShowBox = v; refreshTypes() end }) Tab:CreateToggle({ Name = "Skeleton", CurrentValue = Config.ShowSkeleton, Flag = "ESP_TypeSkeleton", Callback = function(v) Config.ShowSkeleton = v; refreshTypes() end }) Tab:CreateSection("Info") Tab:CreateToggle({ Name = "Show Name", CurrentValue = Config.ShowName, Flag = "ESP_Name", Callback = function(v) Config.ShowName = v; refreshTypes() end }) Tab:CreateToggle({ Name = "Show Health", CurrentValue = Config.ShowHealth, Flag = "ESP_Health", Callback = function(v) Config.ShowHealth = v; refreshTypes() end }) Tab:CreateToggle({ Name = "Show Distance", CurrentValue = Config.ShowDistance, Flag = "ESP_Distance", Callback = function(v) Config.ShowDistance = v; refreshTypes() end }) Tab:CreateSection("Visibility") Tab:CreateToggle({ Name = "Highlight When In Sight", CurrentValue = Config.HighlightSight, Flag = "ESP_SightToggle", Callback = function(v) Config.HighlightSight = v end }) Tab:CreateColorPicker({ Name = "In-Sight Color", Color = Config.SightColor, Flag = "ESP_SightColor", Callback = function(c) Config.SightColor = c end }) Tab:CreateSection("Settings") Tab:CreateSlider({ Name = "Max Distance", Range = { 100, 5000 }, Increment = 100, Suffix = " studs", CurrentValue = Config.MaxDist, Flag = "ESP_MaxDist", Callback = function(v) Config.MaxDist = v end }) Tab:CreateDropdown({ Name = "Distance Unit", Options = { "Meters", "Studs" }, CurrentOption = { Config.DistUnit }, Flag = "ESP_DistUnit", Callback = function(opt) Config.DistUnit = type(opt) == "table" and opt[1] or opt end }) local PlayerTab = Win:CreateTab("Player", 4483362458) PlayerTab:CreateSection("Mods") PlayerTab:CreateToggle({ Name = "Fullbright", CurrentValue = Config.Fullbright, Flag = "Player_Fullbright", Callback = function(v) Config.Fullbright = v applyFullbright() end }) PlayerTab:CreateToggle({ Name = "Infinite Jump", CurrentValue = Config.InfJump, Flag = "Player_InfJump", Callback = function(v) Config.InfJump = v end }) local NoteTab = Win:CreateTab("Note", 4483362458) NoteTab:CreateSection("Information") NoteTab:CreateParagraph({ Title = "Teammate Visibility", Content = "Use box esp or skeleton to see your teammates during tdm or elimination" }) NoteTab:CreateParagraph({ Title = "In-Sight Highlight", Content = "Turns the ESP color (e.g. Red) when a player is in your direct line of sight and no walls are blocking them." }) local ConfigTab = Win:CreateTab("Config", 4483362458) ConfigTab:CreateSection("Configuration") ConfigTab:CreateButton({ Name = "Save Current Settings", Callback = function() if saveConfig() then Rayfield:Notify({ Title = "TRIGXEE", Content = "Config saved.", Duration = 4 }) else Rayfield:Notify({ Title = "TRIGXEE", Content = "Failed to save config.", Duration = 4 }) end end }) ConfigTab:CreateButton({ Name = "Load Saved Settings", Callback = function() if loadConfig() then Rayfield:Notify({ Title = "TRIGXEE", Content = "Config loaded. Re-toggle ESP.", Duration = 4 }) else Rayfield:Notify({ Title = "TRIGXEE", Content = "Failed to load config.", Duration = 4 }) end end })