Advertisement
Guest User

trident survival script source

a guest
Sep 1st, 2022
6,997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.05 KB | None | 0 0
  1. getgenv().whitelistKey = "Trident_93sCdEpEwLrwZxt"
  2. if
  3. getgenv().whitelistKey == "Trident_93sCdEpEwLrwZxt" or getgenv().whitelistKey == "Trident_LkdRq69up6dilb2" or
  4. getgenv().whitelistKey == "Trident_68GqKtD3KzN5BjL" or
  5. getgenv().whitelistKey == "Trident_BZwXQuiIBMUmDDk" or
  6. getgenv().whitelistKey == "Trident_XEGAzjmrHWyuJEw" or
  7. getgenv().whitelistKey == "Trident_cHwHOUEvkA8zXCP" or
  8. getgenv().whitelistKey == "Trident_NYPHYwaOnukwPwY" or
  9. getgenv().whitelistKey == "Trident_fwNpALoZ5FHv996"
  10. then
  11. else
  12. while true do
  13. end
  14. end
  15. local a = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  16. local b = a.Load({Title = "Trident Survival Script", Style = 3, SizeX = 500, SizeY = 350, Theme = "Dark"})
  17. local c = b.New({Title = "Main"})
  18. local d =
  19. c.Button(
  20. {
  21. Text = "ESP",
  22. Callback = function()
  23. for e, f in pairs(game.Players:GetPlayers()) do
  24. if f:FindFirstChild("PlayerScripts") then
  25. local g = require(f.PlayerScripts.Client.Player)
  26. g:SetEsp()
  27. end
  28. end
  29. game.Players.PlayerAdded:Connect(
  30. function(f)
  31. if f:FindFirstChild("PlayerScripts") then
  32. local g = require(f.PlayerScripts.Client.Player)
  33. g:SetEsp()
  34. end
  35. end
  36. )
  37. local h = game["Workspace"]
  38. local i = game["Players"]
  39. local j = game["RunService"]
  40. local k = i.LocalPlayer
  41. local l = k:GetMouse()
  42. local m = workspace.CurrentCamera
  43. local n = m.worldToViewportPoint
  44. local o = Drawing.new
  45. local p = Color3.fromRGB
  46. local q = Vector3.new
  47. local r = Vector2.new
  48. local s = math.floor
  49. local t = math.ceil
  50. local u = {
  51. players = {},
  52. objects = {},
  53. enabled = true,
  54. fontsize = 13,
  55. font = 2,
  56. settings = {
  57. box = {enabled = true, outline = true, color = p(255, 255, 255)},
  58. distance = {enabled = true, outline = true, color = p(255, 255, 255)},
  59. viewangle = {enabled = true, color = p(255, 255, 255)}
  60. }
  61. }
  62. u.NewDrawing = function(v, w)
  63. local x = o(v)
  64. for e, f in next, w or {} do
  65. x[e] = f
  66. end
  67. return x
  68. end
  69. u.NewPlayer = function(f)
  70. u.players[f] = {
  71. boxOutline = u.NewDrawing("Square", {Color = p(0, 0, 0), Thickness = 3}),
  72. box = u.NewDrawing("Square", {Color = p(255, 255, 255), Thickness = 1}),
  73. healthBarOutline = u.NewDrawing("Line", {Color = p(0, 0, 0), Thickness = 3}),
  74. healthBar = u.NewDrawing("Line", {Color = p(255, 255, 255), Thickness = 1}),
  75. healthText = u.NewDrawing(
  76. "Text",
  77. {Color = p(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}
  78. ),
  79. distance = u.NewDrawing(
  80. "Text",
  81. {Color = p(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}
  82. ),
  83. viewAngle = u.NewDrawing("Line", {Color = p(255, 255, 255), Thickness = 1})
  84. }
  85. end
  86. for y, z in pairs(h.Players:GetChildren()) do
  87. u.NewPlayer(z)
  88. end
  89. h.Players.ChildAdded:Connect(
  90. function(f)
  91. u.NewPlayer(f)
  92. end
  93. )
  94. h.Players.ChildRemoved:Connect(
  95. function(f)
  96. for A, B in pairs(u.players[f]) do
  97. B:Remove()
  98. end
  99. u.players[f] = nil
  100. end
  101. )
  102. i.PlayerAdded:Connect(u.NewPlayer)
  103. local C =
  104. j.RenderStepped:Connect(
  105. function()
  106. for e, f in pairs(u.players) do
  107. if e:FindFirstChild("HumanoidRootPart") and e:FindFirstChild("Head") then
  108. local D = e.HumanoidRootPart
  109. local E = e.Head
  110. local F, G = m:WorldToViewportPoint(D.Position)
  111. local H =
  112. (m:WorldToViewportPoint(D.Position - q(0, 3, 0)).Y -
  113. m:WorldToViewportPoint(D.Position + q(0, 2.6, 0)).Y) /
  114. 2
  115. local I = r(s(H * 1.5), s(H * 1.9))
  116. local J = r(s(F.X - H * 1.5 / 2), s(F.Y - H * 1.6 / 2))
  117. local K = I.Y + J.Y + 1
  118. if G and u.enabled then
  119. if
  120. u.settings.distance.enabled and k.Character and
  121. k.Character:FindFirstChild("HumanoidRootPart")
  122. then
  123. f.distance.Position = r(I.X / 2 + J.X, K)
  124. f.distance.Outline = u.settings.distance.outline
  125. f.distance.Text =
  126. "[" .. s((D.Position - m.Character.HumanoidRootPart.Position).Magnitude) .. "m]"
  127. f.distance.Color = u.settings.distance.color
  128. K = K + 15
  129. f.distance.Font = u.font
  130. f.distance.Size = u.fontsize
  131. f.distance.Visible = true
  132. else
  133. f.distance.Visible = false
  134. end
  135. if u.settings.box.enabled then
  136. f.boxOutline.Size = I
  137. f.boxOutline.Position = J
  138. f.boxOutline.Visible = u.settings.box.outline
  139. f.box.Size = I
  140. f.box.Position = J
  141. f.box.Color = u.settings.box.color
  142. f.box.Visible = true
  143. else
  144. f.boxOutline.Visible = false
  145. f.box.Visible = false
  146. end
  147. if u.settings.viewangle.enabled and E and E.CFrame then
  148. f.viewAngle.From =
  149. r(m:worldToViewportPoint(E.CFrame.p).X, m:worldToViewportPoint(E.CFrame.p).Y)
  150. f.viewAngle.To =
  151. r(
  152. m:worldToViewportPoint((E.CFrame + E.CFrame.lookVector * 10).p).X,
  153. m:worldToViewportPoint((E.CFrame + E.CFrame.lookVector * 10).p).Y
  154. )
  155. f.viewAngle.Color = u.settings.viewangle.color
  156. f.viewAngle.Visible = true
  157. else
  158. f.viewAngle.Visible = false
  159. end
  160. else
  161. f.boxOutline.Visible = false
  162. f.box.Visible = false
  163. f.distance.Visible = false
  164. f.viewAngle.Visible = false
  165. end
  166. else
  167. f.boxOutline.Visible = false
  168. f.box.Visible = false
  169. f.distance.Visible = false
  170. f.viewAngle.Visible = false
  171. end
  172. end
  173. end
  174. )
  175. getgenv().esp = u
  176. end
  177. }
  178. )
  179. local L = false
  180. local M =
  181. c.Toggle(
  182. {Text = "Ore ESP", Callback = function(N)
  183. L = N
  184. end}
  185. )
  186. local o = Drawing.new
  187. local O = Color3.new
  188. local p = Color3.fromRGB
  189. local q = Vector3.new
  190. local r = Vector2.new
  191. local P = math.huge
  192. local s = math.floor
  193. local t = math.ceil
  194. local Q = Ray.new
  195. local m = game.Workspace.CurrentCamera
  196. local R = o("Line")
  197. R.Visible = false
  198. R.Thickness = 1
  199. R.Transparency = 1
  200. R.From = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
  201. R.To = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
  202. R.Color = p(255, 255, 255)
  203. local S = o("Line")
  204. S.Visible = false
  205. S.Thickness = 1
  206. S.Transparency = 1
  207. S.From = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
  208. S.To = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
  209. S.Color = p(255, 255, 255)
  210. local T =
  211. c.Button(
  212. {Text = "Crosshair", Callback = function()
  213. while true do
  214. wait()
  215. R.Visible = true
  216. S.Visible = true
  217. S.From = r(m.ViewportSize.X / 2 - 10, m.ViewportSize.Y / 2)
  218. S.To = r(m.ViewportSize.X / 2 + 10, m.ViewportSize.Y / 2)
  219. R.From = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2 - 10)
  220. R.To = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2 + 10)
  221. end
  222. end}
  223. )
  224. local U =
  225. c.Button(
  226. {
  227. Text = "Fullbright",
  228. Callback = function()
  229. game.RunService.RenderStepped:Connect(
  230. function()
  231. game.Lighting.Ambient = Color3.new(1, 1, 1)
  232. end
  233. )
  234. end
  235. }
  236. )
  237. local V =
  238. c.Button(
  239. {Text = "Hitbox Expander", Callback = function()
  240. for e, f in pairs(game.Workspace.Players:GetDescendants()) do
  241. if f.Name == "Head" and f:IsA("Part") or f:IsA("MeshPart") then
  242. f.Size = Vector3.new(6, 6, 6)
  243. f.Transparency = 0.7
  244. end
  245. end
  246. end}
  247. )
  248. local W = {}
  249. function newOre(f)
  250. W[f] = Drawing.new("Text")
  251. W[f].Font = 1
  252. W[f].Size = 13
  253. W[f].Outline = true
  254. W[f].Center = true
  255. W[f].Color = Color3.new(1, 1, 1)
  256. W[f].Visible = false
  257. W[f].Transparency = 1
  258. end
  259. for e, f in pairs(game.Workspace.Entities.IronOre:GetChildren()) do
  260. newOre(f)
  261. end
  262. for e, f in pairs(game.Workspace.Entities.NitrateOre:GetChildren()) do
  263. newOre(f)
  264. end
  265. for e, f in pairs(game.Workspace.Entities.StoneOre:GetChildren()) do
  266. newOre(f)
  267. end
  268. game.Workspace.Entities.IronOre.ChildAdded:Connect(
  269. function(f)
  270. newOre(f)
  271. end
  272. )
  273. game.Workspace.Entities.NitrateOre.ChildAdded:Connect(
  274. function(f)
  275. newOre(f)
  276. end
  277. )
  278. game.Workspace.Entities.StoneOre.ChildAdded:Connect(
  279. function(f)
  280. newOre(f)
  281. end
  282. )
  283. game.Workspace.Entities.IronOre.ChildRemoved:Connect(
  284. function(f)
  285. W[f]:Remove()
  286. W[f] = nil
  287. end
  288. )
  289. game.Workspace.Entities.NitrateOre.ChildRemoved:Connect(
  290. function(f)
  291. W[f]:Remove()
  292. W[f] = nil
  293. end
  294. )
  295. game.Workspace.Entities.StoneOre.ChildRemoved:Connect(
  296. function(f)
  297. W[f]:Remove()
  298. W[f] = nil
  299. end
  300. )
  301. game.RunService.RenderStepped:Connect(
  302. function()
  303. for e, f in pairs(W) do
  304. if e.PrimaryPart and L then
  305. local X, Y = game.Workspace.CurrentCamera:WorldToViewportPoint(e.PrimaryPart.Position)
  306. if Y then
  307. f.Text = e.Parent.Name
  308. f.Position = Vector2.new(X.X, X.Y)
  309. f.Visible = true
  310. else
  311. f.Visible = false
  312. end
  313. else
  314. f.Visible = false
  315. end
  316. end
  317. end
  318. )
  319. local Z = false
  320. local _ =
  321. c.Toggle(
  322. {Text = "Aimlock", Callback = function(a0)
  323. Z = a0
  324. end}
  325. )
  326. local a1 = game["Players"]
  327. local a2 = game["Workspace"]
  328. local a3 = game["UserInputService"]
  329. local a4 = game["RunService"]
  330. local a5 = game["HttpService"]
  331. local a6 = game["CoreGui"]
  332. local a7 = game["Lighting"]
  333. local a8 = game["GuiService"]
  334. local a9 = game["ReplicatedStorage"]
  335. local aa = a1.LocalPlayer
  336. local ab = aa:GetMouse()
  337. local ac = a2.CurrentCamera
  338. local ad = ac.worldToViewportPoint
  339. local ae = Drawing.new
  340. local af = Color3.new
  341. local ag = Color3.fromRGB
  342. local ah = Vector3.new
  343. local ai = Vector2.new
  344. local aj = math.huge
  345. local ak = math.floor
  346. local al = math.ceil
  347. local am = a8.GetGuiInset
  348. local an = Ray.new
  349. local ao = false
  350. function closest_to_mouse()
  351. local ap = nil
  352. local aq = aj
  353. for ar, v in ipairs(game.Workspace.Players:GetChildren()) do
  354. if
  355. v ~= aa and v and v:FindFirstChild("Humanoid") and v.Humanoid.Health ~= 0 and
  356. v:FindFirstChild("HumanoidRootPart") and
  357. v:FindFirstChild("Head")
  358. then
  359. local as, at = ac:WorldToViewportPoint(v.Head.Position)
  360. if at then
  361. local au = (ai(as.X, as.Y - am(a8).Y) - ai(ab.X, ab.Y)).Magnitude
  362. if au <= aq then
  363. aq = au
  364. ap = v
  365. end
  366. end
  367. end
  368. end
  369. return ap
  370. end
  371. a3.InputBegan:Connect(
  372. function(av)
  373. if av.UserInputType == Enum.UserInputType.MouseButton2 then
  374. ao = true
  375. end
  376. end
  377. )
  378. a3.InputEnded:Connect(
  379. function(av)
  380. if av.UserInputType == Enum.UserInputType.MouseButton2 then
  381. ao = false
  382. end
  383. end
  384. )
  385. local aw = function(x, y)
  386. local ax = ac.ViewportSize
  387. local ay = ax.X
  388. local az = ax.Y
  389. local aA = ay / 2
  390. local aB = az / 2
  391. local aC = 5
  392. local aD
  393. local aE
  394. if x ~= 0 then
  395. if x > aA then
  396. aD = -(aA - x)
  397. aD = aD / aC
  398. if aD + aA > aA * 2 then
  399. aD = 0
  400. end
  401. end
  402. if x < aA then
  403. aD = x - aA
  404. aD = aD / aC
  405. if aD + aA < 0 then
  406. aD = 0
  407. end
  408. end
  409. end
  410. if y ~= 0 then
  411. if y > aB then
  412. aE = -(aB - y)
  413. aE = aE / aC
  414. if aE + aB > aB * 2 then
  415. aE = 0
  416. end
  417. end
  418. if y < aB then
  419. aE = y - aB
  420. aE = aE / aC
  421. if aE + aB < 0 then
  422. aE = 0
  423. end
  424. end
  425. end
  426. return aD, aE
  427. end
  428. a4.RenderStepped:Connect(
  429. function()
  430. if Z and ao and closest_to_mouse() ~= nil then
  431. local p = ac:WorldToScreenPoint(closest_to_mouse().Head.Position)
  432. local aF, aG = aw(p.X, p.Y + 32)
  433. mousemoverel(aF, aG)
  434. end
  435. end
  436. )
  437.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement