Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Services
- local Players = game:GetService("Players")
- local RS = game:GetService("RunService")
- local UIS = game:GetService("UserInputService")
- local Camera = workspace.CurrentCamera
- local LocalPlayer = Players.LocalPlayer
- -- Load Rayfield UI Library
- loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Rayfield/main/source"))()
- -- Settings
- getgenv().Settings = {
- ESP = true,
- Tracers = true,
- Aimbot = true,
- FOV = 150,
- AimPart = "Head",
- InfiniteAmmo = true,
- NoRecoil = true,
- HitboxExpander = true
- }
- -- UI Setup
- local Window = Rayfield:CreateWindow({
- Name = "Trident V5 Ultra Menu",
- LoadingTitle = "Initializing Trident V5 Ultra",
- LoadingSubtitle = "Please wait...",
- ConfigurationSaving = { Enabled = false },
- Discord = { Enabled = false },
- KeySystem = false
- })
- local Tab = Window:CreateTab("Main Features", 4483362458)
- Tab:CreateToggle({
- Name = "Enable ESP",
- CurrentValue = true,
- Callback = function(Value)
- Settings.ESP = Value
- end,
- })
- Tab:CreateToggle({
- Name = "Enable Tracers",
- CurrentValue = true,
- Callback = function(Value)
- Settings.Tracers = Value
- end,
- })
- Tab:CreateToggle({
- Name = "Enable Aimbot",
- CurrentValue = true,
- Callback = function(Value)
- Settings.Aimbot = Value
- end,
- })
- Tab:CreateSlider({
- Name = "FOV Radius",
- Range = {50, 300},
- Increment = 10,
- Suffix = "px",
- CurrentValue = 150,
- Callback = function(Value)
- Settings.FOV = Value
- FOVCircle.Radius = Value
- end,
- })
- Tab:CreateDropdown({
- Name = "Aim Part",
- Options = {"Head", "Torso", "HumanoidRootPart"},
- CurrentOption = "Head",
- Callback = function(Value)
- Settings.AimPart = Value
- end,
- })
- -- Infinite Ammo
- local function enableInfiniteAmmo()
- if Settings.InfiniteAmmo then
- game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid").Running:Connect(function(_,speed)
- if speed > 0 then
- local weapon = LocalPlayer.Character:FindFirstChildOfClass("Tool")
- if weapon and weapon:IsA("Tool") then
- weapon.Ammo = math.huge -- Infinite ammo
- end
- end
- end)
- end
- end
- -- No Recoil
- local function noRecoil()
- if Settings.NoRecoil then
- game:GetService("RunService").Heartbeat:Connect(function()
- local weapon = LocalPlayer.Character:FindFirstChildOfClass("Tool")
- if weapon and weapon:IsA("Tool") then
- if weapon:FindFirstChild("Recoil") then
- weapon.Recoil = Vector3.new(0, 0, 0) -- Removes recoil
- end
- end
- end)
- end
- end
- -- Hitbox Expander
- local function expandHitboxes()
- if Settings.HitboxExpander then
- game:GetService("RunService").Heartbeat:Connect(function()
- for _, player in pairs(Players:GetPlayers()) do
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local character = player.Character
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.HitboxSize = humanoid.HitboxSize * 2 -- Expands hitbox
- end
- end
- end
- end)
- end
- end
- -- FOV Circle
- local FOVCircle = Drawing.new("Circle")
- FOVCircle.Visible = true
- FOVCircle.Radius = Settings.FOV
- FOVCircle.Color = Color3.fromRGB(0, 255, 0)
- FOVCircle.Thickness = 1
- FOVCircle.Filled = false
- FOVCircle.Transparency = 0.4
- RS.RenderStepped:Connect(function()
- FOVCircle.Position = UIS:GetMouseLocation()
- end)
- -- ESP Logic
- local ESP = {}
- function CreateESP(player)
- if ESP[player] then return end
- local box = Drawing.new("Square")
- local tracer = Drawing.new("Line")
- box.Color = Color3.fromRGB(255, 0, 0)
- tracer.Color = Color3.fromRGB(255, 255, 0)
- box.Thickness = 1
- tracer.Thickness = 1
- box.Filled = false
- box.Transparency = 1
- tracer.Transparency = 1
- ESP[player] = {Box = box, Tracer = tracer}
- end
- function RemoveESP(player)
- if ESP[player] then
- ESP[player].Box:Remove()
- ESP[player].Tracer:Remove()
- ESP[player] = nil
- end
- end
- function UpdateESP()
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- CreateESP(player)
- local root = player.Character.HumanoidRootPart
- local screenPos, onScreen = Camera:WorldToViewportPoint(root.Position)
- if onScreen and Settings.ESP then
- local esp = ESP[player]
- esp.Box.Visible = true
- esp.Box.Position = Vector2.new(screenPos.X - 25, screenPos.Y - 60)
- esp.Box.Size = Vector2.new(50, 100)
- if Settings.Tracers then
- esp.Tracer.Visible = true
- esp.Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
- esp.Tracer.To = Vector2.new(screenPos.X, screenPos.Y)
- else
- esp.Tracer.Visible = false
- end
- else
- RemoveESP(player)
- end
- else
- RemoveESP(player)
- end
- end
- end
- -- Aimbot Logic
- function GetClosestTarget()
- local closest = nil
- local shortest = Settings.FOV
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(Settings.AimPart) then
- local part = player.Character[Settings.AimPart]
- local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)
- if onScreen then
- local dist = (Vector2.new(screenPos.X, screenPos.Y) - UIS:GetMouseLocation()).Magnitude
- if dist < shortest then
- closest = player
- shortest = dist
- end
- end
- end
- end
- return closest
- end
- -- Runtime
- RS.RenderStepped:Connect(function()
- UpdateESP()
- if Settings.Aimbot and UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
- local target = GetClosestTarget()
- if target and target.Character and target.Character:FindFirstChild(Settings.AimPart) then
- local pos = target.Character[Settings.AimPart].Position
- Camera.CFrame = CFrame.new(Camera.CFrame.Position, pos)
- end
- end
- end)
- -- Initialize features
- enableInfiniteAmmo()
- noRecoil()
- expandHitboxes()
- print("[Trident V5 Ultra] Premium menu with gun mods successfully loaded.")
Advertisement
Add Comment
Please, Sign In to add comment