Guest User

Trident Survival script wazx

a guest
May 4th, 2025
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. -- Services
  2.  
  3. local Players = game:GetService("Players")
  4.  
  5. local RS = game:GetService("RunService")
  6.  
  7. local UIS = game:GetService("UserInputService")
  8.  
  9. local Camera = workspace.CurrentCamera
  10.  
  11. local LocalPlayer = Players.LocalPlayer
  12.  
  13.  
  14.  
  15. -- Load Rayfield UI Library
  16.  
  17. loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Rayfield/main/source"))()
  18.  
  19.  
  20.  
  21. -- Settings
  22.  
  23. getgenv().Settings = {
  24.  
  25. ESP = true,
  26.  
  27. Tracers = true,
  28.  
  29. Aimbot = true,
  30.  
  31. FOV = 150,
  32.  
  33. AimPart = "Head",
  34.  
  35. InfiniteAmmo = true,
  36.  
  37. NoRecoil = true,
  38.  
  39. HitboxExpander = true
  40.  
  41. }
  42.  
  43.  
  44.  
  45. -- UI Setup
  46.  
  47. local Window = Rayfield:CreateWindow({
  48.  
  49. Name = "Trident V5 Ultra Menu",
  50.  
  51. LoadingTitle = "Initializing Trident V5 Ultra",
  52.  
  53. LoadingSubtitle = "Please wait...",
  54.  
  55. ConfigurationSaving = { Enabled = false },
  56.  
  57. Discord = { Enabled = false },
  58.  
  59. KeySystem = false
  60.  
  61. })
  62.  
  63.  
  64.  
  65. local Tab = Window:CreateTab("Main Features", 4483362458)
  66.  
  67.  
  68.  
  69. Tab:CreateToggle({
  70.  
  71. Name = "Enable ESP",
  72.  
  73. CurrentValue = true,
  74.  
  75. Callback = function(Value)
  76.  
  77. Settings.ESP = Value
  78.  
  79. end,
  80.  
  81. })
  82.  
  83.  
  84.  
  85. Tab:CreateToggle({
  86.  
  87. Name = "Enable Tracers",
  88.  
  89. CurrentValue = true,
  90.  
  91. Callback = function(Value)
  92.  
  93. Settings.Tracers = Value
  94.  
  95. end,
  96.  
  97. })
  98.  
  99.  
  100.  
  101. Tab:CreateToggle({
  102.  
  103. Name = "Enable Aimbot",
  104.  
  105. CurrentValue = true,
  106.  
  107. Callback = function(Value)
  108.  
  109. Settings.Aimbot = Value
  110.  
  111. end,
  112.  
  113. })
  114.  
  115.  
  116.  
  117. Tab:CreateSlider({
  118.  
  119. Name = "FOV Radius",
  120.  
  121. Range = {50, 300},
  122.  
  123. Increment = 10,
  124.  
  125. Suffix = "px",
  126.  
  127. CurrentValue = 150,
  128.  
  129. Callback = function(Value)
  130.  
  131. Settings.FOV = Value
  132.  
  133. FOVCircle.Radius = Value
  134.  
  135. end,
  136.  
  137. })
  138.  
  139.  
  140.  
  141. Tab:CreateDropdown({
  142.  
  143. Name = "Aim Part",
  144.  
  145. Options = {"Head", "Torso", "HumanoidRootPart"},
  146.  
  147. CurrentOption = "Head",
  148.  
  149. Callback = function(Value)
  150.  
  151. Settings.AimPart = Value
  152.  
  153. end,
  154.  
  155. })
  156.  
  157.  
  158.  
  159. -- Infinite Ammo
  160.  
  161. local function enableInfiniteAmmo()
  162.  
  163. if Settings.InfiniteAmmo then
  164.  
  165. game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid").Running:Connect(function(_,speed)
  166.  
  167. if speed > 0 then
  168.  
  169. local weapon = LocalPlayer.Character:FindFirstChildOfClass("Tool")
  170.  
  171. if weapon and weapon:IsA("Tool") then
  172.  
  173. weapon.Ammo = math.huge -- Infinite ammo
  174.  
  175. end
  176.  
  177. end
  178.  
  179. end)
  180.  
  181. end
  182.  
  183. end
  184.  
  185.  
  186.  
  187. -- No Recoil
  188.  
  189. local function noRecoil()
  190.  
  191. if Settings.NoRecoil then
  192.  
  193. game:GetService("RunService").Heartbeat:Connect(function()
  194.  
  195. local weapon = LocalPlayer.Character:FindFirstChildOfClass("Tool")
  196.  
  197. if weapon and weapon:IsA("Tool") then
  198.  
  199. if weapon:FindFirstChild("Recoil") then
  200.  
  201. weapon.Recoil = Vector3.new(0, 0, 0) -- Removes recoil
  202.  
  203. end
  204.  
  205. end
  206.  
  207. end)
  208.  
  209. end
  210.  
  211. end
  212.  
  213.  
  214.  
  215. -- Hitbox Expander
  216.  
  217. local function expandHitboxes()
  218.  
  219. if Settings.HitboxExpander then
  220.  
  221. game:GetService("RunService").Heartbeat:Connect(function()
  222.  
  223. for _, player in pairs(Players:GetPlayers()) do
  224.  
  225. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  226.  
  227. local character = player.Character
  228.  
  229. local humanoid = character:FindFirstChildOfClass("Humanoid")
  230.  
  231. if humanoid then
  232.  
  233. humanoid.HitboxSize = humanoid.HitboxSize * 2 -- Expands hitbox
  234.  
  235. end
  236.  
  237. end
  238.  
  239. end
  240.  
  241. end)
  242.  
  243. end
  244.  
  245. end
  246.  
  247.  
  248.  
  249. -- FOV Circle
  250.  
  251. local FOVCircle = Drawing.new("Circle")
  252.  
  253. FOVCircle.Visible = true
  254.  
  255. FOVCircle.Radius = Settings.FOV
  256.  
  257. FOVCircle.Color = Color3.fromRGB(0, 255, 0)
  258.  
  259. FOVCircle.Thickness = 1
  260.  
  261. FOVCircle.Filled = false
  262.  
  263. FOVCircle.Transparency = 0.4
  264.  
  265.  
  266.  
  267. RS.RenderStepped:Connect(function()
  268.  
  269. FOVCircle.Position = UIS:GetMouseLocation()
  270.  
  271. end)
  272.  
  273.  
  274.  
  275. -- ESP Logic
  276.  
  277. local ESP = {}
  278.  
  279.  
  280.  
  281. function CreateESP(player)
  282.  
  283. if ESP[player] then return end
  284.  
  285. local box = Drawing.new("Square")
  286.  
  287. local tracer = Drawing.new("Line")
  288.  
  289. box.Color = Color3.fromRGB(255, 0, 0)
  290.  
  291. tracer.Color = Color3.fromRGB(255, 255, 0)
  292.  
  293. box.Thickness = 1
  294.  
  295. tracer.Thickness = 1
  296.  
  297. box.Filled = false
  298.  
  299. box.Transparency = 1
  300.  
  301. tracer.Transparency = 1
  302.  
  303. ESP[player] = {Box = box, Tracer = tracer}
  304.  
  305. end
  306.  
  307.  
  308.  
  309. function RemoveESP(player)
  310.  
  311. if ESP[player] then
  312.  
  313. ESP[player].Box:Remove()
  314.  
  315. ESP[player].Tracer:Remove()
  316.  
  317. ESP[player] = nil
  318.  
  319. end
  320.  
  321. end
  322.  
  323.  
  324.  
  325. function UpdateESP()
  326.  
  327. for _, player in ipairs(Players:GetPlayers()) do
  328.  
  329. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  330.  
  331. CreateESP(player)
  332.  
  333. local root = player.Character.HumanoidRootPart
  334.  
  335. local screenPos, onScreen = Camera:WorldToViewportPoint(root.Position)
  336.  
  337. if onScreen and Settings.ESP then
  338.  
  339. local esp = ESP[player]
  340.  
  341. esp.Box.Visible = true
  342.  
  343. esp.Box.Position = Vector2.new(screenPos.X - 25, screenPos.Y - 60)
  344.  
  345. esp.Box.Size = Vector2.new(50, 100)
  346.  
  347. if Settings.Tracers then
  348.  
  349. esp.Tracer.Visible = true
  350.  
  351. esp.Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
  352.  
  353. esp.Tracer.To = Vector2.new(screenPos.X, screenPos.Y)
  354.  
  355. else
  356.  
  357. esp.Tracer.Visible = false
  358.  
  359. end
  360.  
  361. else
  362.  
  363. RemoveESP(player)
  364.  
  365. end
  366.  
  367. else
  368.  
  369. RemoveESP(player)
  370.  
  371. end
  372.  
  373. end
  374.  
  375. end
  376.  
  377.  
  378.  
  379. -- Aimbot Logic
  380.  
  381. function GetClosestTarget()
  382.  
  383. local closest = nil
  384.  
  385. local shortest = Settings.FOV
  386.  
  387. for _, player in ipairs(Players:GetPlayers()) do
  388.  
  389. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(Settings.AimPart) then
  390.  
  391. local part = player.Character[Settings.AimPart]
  392.  
  393. local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)
  394.  
  395. if onScreen then
  396.  
  397. local dist = (Vector2.new(screenPos.X, screenPos.Y) - UIS:GetMouseLocation()).Magnitude
  398.  
  399. if dist < shortest then
  400.  
  401. closest = player
  402.  
  403. shortest = dist
  404.  
  405. end
  406.  
  407. end
  408.  
  409. end
  410.  
  411. end
  412.  
  413. return closest
  414.  
  415. end
  416.  
  417.  
  418.  
  419. -- Runtime
  420.  
  421. RS.RenderStepped:Connect(function()
  422.  
  423. UpdateESP()
  424.  
  425. if Settings.Aimbot and UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
  426.  
  427. local target = GetClosestTarget()
  428.  
  429. if target and target.Character and target.Character:FindFirstChild(Settings.AimPart) then
  430.  
  431. local pos = target.Character[Settings.AimPart].Position
  432.  
  433. Camera.CFrame = CFrame.new(Camera.CFrame.Position, pos)
  434.  
  435. end
  436.  
  437. end
  438.  
  439. end)
  440.  
  441.  
  442.  
  443. -- Initialize features
  444.  
  445. enableInfiniteAmmo()
  446.  
  447. noRecoil()
  448.  
  449. expandHitboxes()
  450.  
  451.  
  452.  
  453. print("[Trident V5 Ultra] Premium menu with gun mods successfully loaded.")
Advertisement
Add Comment
Please, Sign In to add comment