Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().whitelistKey = "Trident_93sCdEpEwLrwZxt"
- if
- getgenv().whitelistKey == "Trident_93sCdEpEwLrwZxt" or getgenv().whitelistKey == "Trident_LkdRq69up6dilb2" or
- getgenv().whitelistKey == "Trident_68GqKtD3KzN5BjL" or
- getgenv().whitelistKey == "Trident_BZwXQuiIBMUmDDk" or
- getgenv().whitelistKey == "Trident_XEGAzjmrHWyuJEw" or
- getgenv().whitelistKey == "Trident_cHwHOUEvkA8zXCP" or
- getgenv().whitelistKey == "Trident_NYPHYwaOnukwPwY" or
- getgenv().whitelistKey == "Trident_fwNpALoZ5FHv996"
- then
- else
- while true do
- end
- end
- local a = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
- local b = a.Load({Title = "Trident Survival Script", Style = 3, SizeX = 500, SizeY = 350, Theme = "Dark"})
- local c = b.New({Title = "Main"})
- local d =
- c.Button(
- {
- Text = "ESP",
- Callback = function()
- for e, f in pairs(game.Players:GetPlayers()) do
- if f:FindFirstChild("PlayerScripts") then
- local g = require(f.PlayerScripts.Client.Player)
- g:SetEsp()
- end
- end
- game.Players.PlayerAdded:Connect(
- function(f)
- if f:FindFirstChild("PlayerScripts") then
- local g = require(f.PlayerScripts.Client.Player)
- g:SetEsp()
- end
- end
- )
- local h = game["Workspace"]
- local i = game["Players"]
- local j = game["RunService"]
- local k = i.LocalPlayer
- local l = k:GetMouse()
- local m = workspace.CurrentCamera
- local n = m.worldToViewportPoint
- local o = Drawing.new
- local p = Color3.fromRGB
- local q = Vector3.new
- local r = Vector2.new
- local s = math.floor
- local t = math.ceil
- local u = {
- players = {},
- objects = {},
- enabled = true,
- fontsize = 13,
- font = 2,
- settings = {
- box = {enabled = true, outline = true, color = p(255, 255, 255)},
- distance = {enabled = true, outline = true, color = p(255, 255, 255)},
- viewangle = {enabled = true, color = p(255, 255, 255)}
- }
- }
- u.NewDrawing = function(v, w)
- local x = o(v)
- for e, f in next, w or {} do
- x[e] = f
- end
- return x
- end
- u.NewPlayer = function(f)
- u.players[f] = {
- boxOutline = u.NewDrawing("Square", {Color = p(0, 0, 0), Thickness = 3}),
- box = u.NewDrawing("Square", {Color = p(255, 255, 255), Thickness = 1}),
- healthBarOutline = u.NewDrawing("Line", {Color = p(0, 0, 0), Thickness = 3}),
- healthBar = u.NewDrawing("Line", {Color = p(255, 255, 255), Thickness = 1}),
- healthText = u.NewDrawing(
- "Text",
- {Color = p(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}
- ),
- distance = u.NewDrawing(
- "Text",
- {Color = p(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}
- ),
- viewAngle = u.NewDrawing("Line", {Color = p(255, 255, 255), Thickness = 1})
- }
- end
- for y, z in pairs(h.Players:GetChildren()) do
- u.NewPlayer(z)
- end
- h.Players.ChildAdded:Connect(
- function(f)
- u.NewPlayer(f)
- end
- )
- h.Players.ChildRemoved:Connect(
- function(f)
- for A, B in pairs(u.players[f]) do
- B:Remove()
- end
- u.players[f] = nil
- end
- )
- i.PlayerAdded:Connect(u.NewPlayer)
- local C =
- j.RenderStepped:Connect(
- function()
- for e, f in pairs(u.players) do
- if e:FindFirstChild("HumanoidRootPart") and e:FindFirstChild("Head") then
- local D = e.HumanoidRootPart
- local E = e.Head
- local F, G = m:WorldToViewportPoint(D.Position)
- local H =
- (m:WorldToViewportPoint(D.Position - q(0, 3, 0)).Y -
- m:WorldToViewportPoint(D.Position + q(0, 2.6, 0)).Y) /
- 2
- local I = r(s(H * 1.5), s(H * 1.9))
- local J = r(s(F.X - H * 1.5 / 2), s(F.Y - H * 1.6 / 2))
- local K = I.Y + J.Y + 1
- if G and u.enabled then
- if
- u.settings.distance.enabled and k.Character and
- k.Character:FindFirstChild("HumanoidRootPart")
- then
- f.distance.Position = r(I.X / 2 + J.X, K)
- f.distance.Outline = u.settings.distance.outline
- f.distance.Text =
- "[" .. s((D.Position - m.Character.HumanoidRootPart.Position).Magnitude) .. "m]"
- f.distance.Color = u.settings.distance.color
- K = K + 15
- f.distance.Font = u.font
- f.distance.Size = u.fontsize
- f.distance.Visible = true
- else
- f.distance.Visible = false
- end
- if u.settings.box.enabled then
- f.boxOutline.Size = I
- f.boxOutline.Position = J
- f.boxOutline.Visible = u.settings.box.outline
- f.box.Size = I
- f.box.Position = J
- f.box.Color = u.settings.box.color
- f.box.Visible = true
- else
- f.boxOutline.Visible = false
- f.box.Visible = false
- end
- if u.settings.viewangle.enabled and E and E.CFrame then
- f.viewAngle.From =
- r(m:worldToViewportPoint(E.CFrame.p).X, m:worldToViewportPoint(E.CFrame.p).Y)
- f.viewAngle.To =
- r(
- m:worldToViewportPoint((E.CFrame + E.CFrame.lookVector * 10).p).X,
- m:worldToViewportPoint((E.CFrame + E.CFrame.lookVector * 10).p).Y
- )
- f.viewAngle.Color = u.settings.viewangle.color
- f.viewAngle.Visible = true
- else
- f.viewAngle.Visible = false
- end
- else
- f.boxOutline.Visible = false
- f.box.Visible = false
- f.distance.Visible = false
- f.viewAngle.Visible = false
- end
- else
- f.boxOutline.Visible = false
- f.box.Visible = false
- f.distance.Visible = false
- f.viewAngle.Visible = false
- end
- end
- end
- )
- getgenv().esp = u
- end
- }
- )
- local L = false
- local M =
- c.Toggle(
- {Text = "Ore ESP", Callback = function(N)
- L = N
- end}
- )
- local o = Drawing.new
- local O = Color3.new
- local p = Color3.fromRGB
- local q = Vector3.new
- local r = Vector2.new
- local P = math.huge
- local s = math.floor
- local t = math.ceil
- local Q = Ray.new
- local m = game.Workspace.CurrentCamera
- local R = o("Line")
- R.Visible = false
- R.Thickness = 1
- R.Transparency = 1
- R.From = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
- R.To = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
- R.Color = p(255, 255, 255)
- local S = o("Line")
- S.Visible = false
- S.Thickness = 1
- S.Transparency = 1
- S.From = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
- S.To = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2)
- S.Color = p(255, 255, 255)
- local T =
- c.Button(
- {Text = "Crosshair", Callback = function()
- while true do
- wait()
- R.Visible = true
- S.Visible = true
- S.From = r(m.ViewportSize.X / 2 - 10, m.ViewportSize.Y / 2)
- S.To = r(m.ViewportSize.X / 2 + 10, m.ViewportSize.Y / 2)
- R.From = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2 - 10)
- R.To = r(m.ViewportSize.X / 2, m.ViewportSize.Y / 2 + 10)
- end
- end}
- )
- local U =
- c.Button(
- {
- Text = "Fullbright",
- Callback = function()
- game.RunService.RenderStepped:Connect(
- function()
- game.Lighting.Ambient = Color3.new(1, 1, 1)
- end
- )
- end
- }
- )
- local V =
- c.Button(
- {Text = "Hitbox Expander", Callback = function()
- for e, f in pairs(game.Workspace.Players:GetDescendants()) do
- if f.Name == "Head" and f:IsA("Part") or f:IsA("MeshPart") then
- f.Size = Vector3.new(6, 6, 6)
- f.Transparency = 0.7
- end
- end
- end}
- )
- local W = {}
- function newOre(f)
- W[f] = Drawing.new("Text")
- W[f].Font = 1
- W[f].Size = 13
- W[f].Outline = true
- W[f].Center = true
- W[f].Color = Color3.new(1, 1, 1)
- W[f].Visible = false
- W[f].Transparency = 1
- end
- for e, f in pairs(game.Workspace.Entities.IronOre:GetChildren()) do
- newOre(f)
- end
- for e, f in pairs(game.Workspace.Entities.NitrateOre:GetChildren()) do
- newOre(f)
- end
- for e, f in pairs(game.Workspace.Entities.StoneOre:GetChildren()) do
- newOre(f)
- end
- game.Workspace.Entities.IronOre.ChildAdded:Connect(
- function(f)
- newOre(f)
- end
- )
- game.Workspace.Entities.NitrateOre.ChildAdded:Connect(
- function(f)
- newOre(f)
- end
- )
- game.Workspace.Entities.StoneOre.ChildAdded:Connect(
- function(f)
- newOre(f)
- end
- )
- game.Workspace.Entities.IronOre.ChildRemoved:Connect(
- function(f)
- W[f]:Remove()
- W[f] = nil
- end
- )
- game.Workspace.Entities.NitrateOre.ChildRemoved:Connect(
- function(f)
- W[f]:Remove()
- W[f] = nil
- end
- )
- game.Workspace.Entities.StoneOre.ChildRemoved:Connect(
- function(f)
- W[f]:Remove()
- W[f] = nil
- end
- )
- game.RunService.RenderStepped:Connect(
- function()
- for e, f in pairs(W) do
- if e.PrimaryPart and L then
- local X, Y = game.Workspace.CurrentCamera:WorldToViewportPoint(e.PrimaryPart.Position)
- if Y then
- f.Text = e.Parent.Name
- f.Position = Vector2.new(X.X, X.Y)
- f.Visible = true
- else
- f.Visible = false
- end
- else
- f.Visible = false
- end
- end
- end
- )
- local Z = false
- local _ =
- c.Toggle(
- {Text = "Aimlock", Callback = function(a0)
- Z = a0
- end}
- )
- local a1 = game["Players"]
- local a2 = game["Workspace"]
- local a3 = game["UserInputService"]
- local a4 = game["RunService"]
- local a5 = game["HttpService"]
- local a6 = game["CoreGui"]
- local a7 = game["Lighting"]
- local a8 = game["GuiService"]
- local a9 = game["ReplicatedStorage"]
- local aa = a1.LocalPlayer
- local ab = aa:GetMouse()
- local ac = a2.CurrentCamera
- local ad = ac.worldToViewportPoint
- local ae = Drawing.new
- local af = Color3.new
- local ag = Color3.fromRGB
- local ah = Vector3.new
- local ai = Vector2.new
- local aj = math.huge
- local ak = math.floor
- local al = math.ceil
- local am = a8.GetGuiInset
- local an = Ray.new
- local ao = false
- function closest_to_mouse()
- local ap = nil
- local aq = aj
- for ar, v in ipairs(game.Workspace.Players:GetChildren()) do
- if
- v ~= aa and v and v:FindFirstChild("Humanoid") and v.Humanoid.Health ~= 0 and
- v:FindFirstChild("HumanoidRootPart") and
- v:FindFirstChild("Head")
- then
- local as, at = ac:WorldToViewportPoint(v.Head.Position)
- if at then
- local au = (ai(as.X, as.Y - am(a8).Y) - ai(ab.X, ab.Y)).Magnitude
- if au <= aq then
- aq = au
- ap = v
- end
- end
- end
- end
- return ap
- end
- a3.InputBegan:Connect(
- function(av)
- if av.UserInputType == Enum.UserInputType.MouseButton2 then
- ao = true
- end
- end
- )
- a3.InputEnded:Connect(
- function(av)
- if av.UserInputType == Enum.UserInputType.MouseButton2 then
- ao = false
- end
- end
- )
- local aw = function(x, y)
- local ax = ac.ViewportSize
- local ay = ax.X
- local az = ax.Y
- local aA = ay / 2
- local aB = az / 2
- local aC = 5
- local aD
- local aE
- if x ~= 0 then
- if x > aA then
- aD = -(aA - x)
- aD = aD / aC
- if aD + aA > aA * 2 then
- aD = 0
- end
- end
- if x < aA then
- aD = x - aA
- aD = aD / aC
- if aD + aA < 0 then
- aD = 0
- end
- end
- end
- if y ~= 0 then
- if y > aB then
- aE = -(aB - y)
- aE = aE / aC
- if aE + aB > aB * 2 then
- aE = 0
- end
- end
- if y < aB then
- aE = y - aB
- aE = aE / aC
- if aE + aB < 0 then
- aE = 0
- end
- end
- end
- return aD, aE
- end
- a4.RenderStepped:Connect(
- function()
- if Z and ao and closest_to_mouse() ~= nil then
- local p = ac:WorldToScreenPoint(closest_to_mouse().Head.Position)
- local aF, aG = aw(p.X, p.Y + 32)
- mousemoverel(aF, aG)
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement