-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer local Camera = Workspace.CurrentCamera -- Load Rayfield UI Library local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() -- Configuration Settings local Settings = { AimbotEnabled = false, TeamCheck = true, WallCheck = true, AimPart = "Head", Smoothness = 0.4, ESPEnabled = false, ESPTeamCheck = true, ESPColor = Color3.fromRGB(255, 50, 100), -- Hitbox Expander Settings HitboxEnabled = false, HitboxSize = 3, FOVEnabled = true, FOVRadius = 120, FOVColor = Color3.fromRGB(255, 255, 255) } -- Store original sizes to revert when disabled local originalSizes = {} -- Create Rayfield Window (Renamed script title) local Window = Rayfield:CreateWindow({ Name = "Rayfield Aimbot Script", LoadingTitle = "Loading Rayfield Aimbot...", LoadingSubtitle = "by Universal Framework", ConfigurationSaving = { Enabled = false, }, KeySystem = false, }) -- ==================== TABS ==================== local AimbotTab = Window:CreateTab("Aimbot", 4483362458) local ESPTab = Window:CreateTab("ESP", 4483345998) local HitboxTab = Window:CreateTab("Hitbox", 4483362458) local FOVTab = Window:CreateTab("FOV", 4483362458) -- ==================== AIMBOT TAB ==================== AimbotTab:CreateToggle({ Name = "Aimbot Enabled", CurrentValue = false, Flag = "AimbotToggle", Callback = function(Value) Settings.AimbotEnabled = Value end, }) AimbotTab:CreateToggle({ Name = "Team Check", CurrentValue = true, Flag = "TeamCheckToggle", Callback = function(Value) Settings.TeamCheck = Value end, }) AimbotTab:CreateToggle({ Name = "Wall Check", CurrentValue = true, Flag = "WallCheckToggle", Callback = function(Value) Settings.WallCheck = Value end, }) AimbotTab:CreateDropdown({ Name = "Target Part", Options = {"Head", "Torso"}, CurrentOption = "Head", Flag = "AimPartDropdown", Callback = function(Option) if Option == "Torso" then Settings.AimPart = "HumanoidRootPart" else Settings.AimPart = "Head" end end, }) AimbotTab:CreateSlider({ Name = "Smoothness", Range = {0.05, 1}, Increment = 0.05, CurrentValue = 0.4, Flag = "SmoothnessSlider", Callback = function(Value) Settings.Smoothness = Value end, }) -- ==================== ESP TAB ==================== ESPTab:CreateToggle({ Name = "ESP Highlight Enabled", CurrentValue = false, Flag = "ESPToggle", Callback = function(Value) Settings.ESPEnabled = Value end, }) ESPTab:CreateToggle({ Name = "ESP Team Check", CurrentValue = true, Flag = "ESPTeamCheckToggle", Callback = function(Value) Settings.ESPTeamCheck = Value end, }) ESPTab:CreateColorPicker({ Name = "ESP Color", Color = Color3.fromRGB(255, 50, 100), Flag = "ESPColorPicker", Callback = function(Value) Settings.ESPColor = Value end, }) -- ==================== HITBOX TAB ==================== HitboxTab:CreateToggle({ Name = "Hitbox Expander Enabled", CurrentValue = false, Flag = "HitboxToggle", Callback = function(Value) Settings.HitboxEnabled = Value if not Value then for player, data in pairs(originalSizes) do if player and player.Character then local rootPart = player.Character:FindFirstChild("HumanoidRootPart") if rootPart and data[rootPart] then rootPart.Size = data[rootPart] rootPart.Transparency = 0 rootPart.CanCollide = true end end end originalSizes = {} end end, }) HitboxTab:CreateSlider({ Name = "Hitbox Size", Range = {1, 15}, Increment = 1, CurrentValue = 3, Flag = "HitboxSizeSlider", Callback = function(Value) Settings.HitboxSize = Value end, }) -- ==================== FOV TAB ==================== FOVTab:CreateToggle({ Name = "Show FOV Circle", CurrentValue = true, Flag = "FOVToggle", Callback = function(Value) Settings.FOVEnabled = Value end, }) FOVTab:CreateSlider({ Name = "FOV Radius", Range = {50, 400}, Increment = 5, CurrentValue = 120, Flag = "FOVRadiusSlider", Callback = function(Value) Settings.FOVRadius = Value end, }) FOVTab:CreateColorPicker({ Name = "FOV Circle Color", Color = Color3.fromRGB(255, 255, 255), Flag = "FOVColorPicker", Callback = function(Value) Settings.FOVColor = Value end, }) -- ==================== FOV CIRCLE GUI CREATION ==================== local FOVGui = Instance.new("ScreenGui") FOVGui.Name = "CenterFOVGui" FOVGui.ResetOnSpawn = false FOVGui.Parent = CoreGui local FOVFrame = Instance.new("Frame") FOVFrame.Size = UDim2.new(0, Settings.FOVRadius * 2, 0, Settings.FOVRadius * 2) FOVFrame.AnchorPoint = Vector2.new(0.5, 0.5) FOVFrame.BackgroundTransparency = 1 FOVFrame.Visible = true FOVFrame.Parent = FOVGui local FOVStroke = Instance.new("UIStroke") FOVStroke.Thickness = 1.5 FOVStroke.Color = Settings.FOVColor FOVStroke.Parent = FOVFrame local FOVCircleCorner = Instance.new("UICorner") FOVCircleCorner.CornerRadius = UDim.new(1, 0) FOVCircleCorner.Parent = FOVFrame -- ==================== LOGIC / EXECUTION ENGINE ==================== local highlights = {} local function removeHighlight(player) if highlights[player] then highlights[player]:Destroy() highlights[player] = nil end end -- Robust character hook for respawns local function setupPlayerESP(player) player.CharacterAdded:Connect(function(char) if not highlights[player] then local hl = Instance.new("Highlight") hl.Parent = CoreGui highlights[player] = hl end highlights[player].Adornee = char end) player.CharacterRemoving:Connect(function() removeHighlight(player) end) end for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer then setupPlayerESP(p) end end Players.PlayerAdded:Connect(function(p) if p ~= LocalPlayer then setupPlayerESP(p) end end) Players.PlayerRemoving:Connect(function(player) removeHighlight(player) originalSizes[player] = nil end) local function isVisible(targetPart) if not Settings.WallCheck then return true end local origin = Camera.CFrame.Position local direction = (targetPart.Position - origin) local raycastParams = RaycastParams.new() raycastParams.FilterType = Enum.RaycastFilterType.Blacklist raycastParams.FilterDescendantsInstances = {LocalPlayer.Character, Camera} local result = Workspace:Raycast(origin, direction, raycastParams) if result then local hitPart = result.Instance if hitPart:IsDescendantOf(targetPart.Parent) then return true end return false end return true end local function getClosestTarget() local closestPlayer = nil local shortestDistance = Settings.FOVRadius local screenCenter = Vector2.new(Camera.ViewportSize.X / 2, (Camera.ViewportSize.Y / 2) - 35) for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then if Settings.TeamCheck and player.Team and LocalPlayer.Team and player.Team == LocalPlayer.Team then continue end local character = player.Character if character and character:FindFirstChild("Humanoid") and character.Humanoid.Health > 0 then local targetPart = character:FindFirstChild(Settings.AimPart) or character:FindFirstChild("Head") if targetPart then if isVisible(targetPart) then local screenPos, onScreen = Camera:WorldToViewportPoint(targetPart.Position) if onScreen then local screenVector = Vector2.new(screenPos.X, screenPos.Y) local centerDist = (screenVector - screenCenter).Magnitude if centerDist < shortestDistance then shortestDistance = centerDist closestPlayer = character end end end end end end end return closestPlayer end -- Render loop for ESP, Hitbox Expander, FOV, and Aimbot RunService.RenderStepped:Connect(function() local viewportCenter = Camera.ViewportSize / 2 FOVFrame.Position = UDim2.new(0, viewportCenter.X, 0, viewportCenter.Y - 35) FOVFrame.Visible = Settings.FOVEnabled FOVFrame.Size = UDim2.new(0, Settings.FOVRadius * 2, 0, Settings.FOVRadius * 2) FOVStroke.Color = Settings.FOVColor -- Handle Hitbox Expander for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then local isTeammate = (player.Team and LocalPlayer.Team and player.Team == LocalPlayer.Team) local character = player.Character if Settings.HitboxEnabled and character and character:FindFirstChild("Humanoid") and character.Humanoid.Health > 0 then if not (Settings.TeamCheck and isTeammate) then local rootPart = character:FindFirstChild("HumanoidRootPart") if rootPart then if not originalSizes[player] then originalSizes[player] = {} end if not originalSizes[player][rootPart] then originalSizes[player][rootPart] = rootPart.Size end rootPart.Size = Vector3.new(Settings.HitboxSize, Settings.HitboxSize, Settings.HitboxSize) rootPart.Transparency = 0.6 rootPart.CanCollide = false end end end end end -- Handle ESP & Chams for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then local character = player.Character local isTeammate = (player.Team and LocalPlayer.Team and player.Team == LocalPlayer.Team) local showESP = Settings.ESPEnabled if Settings.ESPTeamCheck and isTeammate then showESP = false end if showESP and character and character:FindFirstChild("Humanoid") and character.Humanoid.Health > 0 then if not highlights[player] then local hl = Instance.new("Highlight") hl.Parent = CoreGui highlights[player] = hl end local hl = highlights[player] if hl.Adornee ~= character then hl.Adornee = character end hl.FillColor = Settings.ESPColor hl.FillTransparency = 0.2 hl.OutlineTransparency = 1 else if highlights[player] then highlights[player].Adornee = nil end end end end -- Handle Aimbot Vector Locking if Settings.AimbotEnabled then local target = getClosestTarget() if target and target:FindFirstChild(Settings.AimPart) then local targetPart = target[Settings.AimPart] local targetCFrame = CFrame.new(Camera.CFrame.Position, targetPart.Position) Camera.CFrame = Camera.CFrame:Lerp(targetCFrame, Settings.Smoothness) end end end)