The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Best GUI script pastebin roblox
By Best GUI on 2024-09-21 08:00 am | Syntax: LUA | Views: 7



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --[[Created By: Unordinary]]
  2. print("STN - Gui")
  3.  
  4. for i, v in pairs(game:GetDescendants()) do
  5.     if v.Name == "ScreenGui" then
  6.         v:Destroy()
  7.     end
  8. end
  9.  
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local Frame = Instance.new("Frame")
  12. local TextLabel = Instance.new("TextLabel")
  13. local ScrollingFrame = Instance.new("ScrollingFrame")
  14. local RelicESP = Instance.new("TextButton")
  15. local RelicAura = Instance.new("TextButton")
  16. local PlayerESP = Instance.new("TextButton")
  17. local InstaBuild = Instance.new("TextButton")
  18. local TaskAura = Instance.new("TextButton")
  19. local TaskESP = Instance.new("TextButton")
  20. local FullBright = Instance.new("TextButton")
  21. local TurnInvisible = Instance.new("TextButton")
  22. local ToggleMetalDetectorFarm = Instance.new("TextButton")
  23. local UIGradient = Instance.new("UIGradient")
  24. local cool = true
  25. local on = true
  26. local oN = true
  27.  
  28. ScreenGui.Parent = game:WaitForChild("CoreGui")
  29. ScreenGui.ResetOnSpawn = false
  30.  
  31. Frame.Parent = ScreenGui
  32. Frame.Active = true
  33. Frame.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
  34. Frame.BorderColor3 = Color3.fromRGB(226, 226, 226)
  35. Frame.Draggable = true
  36. Frame.Position = UDim2.new(0.833333313, -76, 0.606741607, -150)
  37. Frame.Selectable = true
  38. Frame.Size = UDim2.new(0, 153, 0, 33)
  39. Frame.Draggable = true
  40.  
  41. TextLabel.Parent = Frame
  42. TextLabel.Active = true
  43. TextLabel.BackgroundColor3 = Color3.fromRGB(119, 124, 127)
  44. TextLabel.BackgroundTransparency = 1.000
  45. TextLabel.BorderColor3 = Color3.fromRGB(119, 124, 127)
  46. TextLabel.Position = UDim2.new(0.327688575, 0, 0.190135613, 0)
  47. TextLabel.Size = UDim2.new(0, 50, 0, 20)
  48. TextLabel.Font = Enum.Font.SourceSans
  49. TextLabel.Text = "STN GUI"
  50. TextLabel.TextColor3 = Color3.fromRGB(187, 255, 253)
  51. TextLabel.TextSize = 14.000
  52. TextLabel.TextStrokeColor3 = Color3.fromRGB(187, 255, 253)
  53. TextLabel.TextWrapped = true
  54.  
  55. ScrollingFrame.Parent = Frame
  56. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  57. ScrollingFrame.BackgroundTransparency = 0.500
  58. ScrollingFrame.BorderSizePixel = 0
  59. ScrollingFrame.Position = UDim2.new(-0.00086286955, 0, 0.999025285, 0)
  60. ScrollingFrame.Selectable = false
  61. ScrollingFrame.Size = UDim2.new(0, 153, 0, 194)
  62. ScrollingFrame.CanvasPosition = Vector2.new(0, 150)
  63. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 60, 0)
  64. ScrollingFrame.HorizontalScrollBarInset = Enum.ScrollBarInset.Always
  65. ScrollingFrame.ScrollBarThickness = 10
  66.  
  67. RelicESP.Name = "RelicESP"
  68. RelicESP.Parent = ScrollingFrame
  69. RelicESP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. RelicESP.Position = UDim2.new(0.0466145016, 0, 0.00465609878, 0)
  71. RelicESP.Size = UDim2.new(0, 136, 0, 27)
  72. RelicESP.Style = Enum.ButtonStyle.RobloxRoundButton
  73. RelicESP.Font = Enum.Font.SourceSans
  74. RelicESP.Text = "RelicESP"
  75. RelicESP.TextColor3 = Color3.fromRGB(131, 192, 219)
  76. RelicESP.TextSize = 16.000
  77. RelicESP.TextWrapped = true
  78.  
  79. RelicAura.Name = "RelicAura"
  80. RelicAura.Parent = ScrollingFrame
  81. RelicAura.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. RelicAura.Position = UDim2.new(0.0531504489, 0, 0.0213227645, 0)
  83. RelicAura.Size = UDim2.new(0, 136, 0, 27)
  84. RelicAura.Style = Enum.ButtonStyle.RobloxRoundButton
  85. RelicAura.Font = Enum.Font.SourceSans
  86. RelicAura.Text = "RelicAura"
  87. RelicAura.TextColor3 = Color3.fromRGB(131, 192, 219)
  88. RelicAura.TextSize = 16.000
  89. RelicAura.TextWrapped = true
  90.  
  91. PlayerESP.Name = "PlayerESP"
  92. PlayerESP.Parent = ScrollingFrame
  93. PlayerESP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. PlayerESP.Position = UDim2.new(0.0531504489, 0, 0.0384944826, 0)
  95. PlayerESP.Size = UDim2.new(0, 136, 0, 27)
  96. PlayerESP.Style = Enum.ButtonStyle.RobloxRoundButton
  97. PlayerESP.Font = Enum.Font.SourceSans
  98. PlayerESP.Text = "PlayerESP"
  99. PlayerESP.TextColor3 = Color3.fromRGB(131, 192, 219)
  100. PlayerESP.TextSize = 16.000
  101. PlayerESP.TextWrapped = true
  102.  
  103. InstaBuild.Name = "InstaBuild"
  104. InstaBuild.Parent = ScrollingFrame
  105. InstaBuild.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. InstaBuild.Position = UDim2.new(0.0466145016, 0, 0.0556662008, 0)
  107. InstaBuild.Size = UDim2.new(0, 136, 0, 27)
  108. InstaBuild.Style = Enum.ButtonStyle.RobloxRoundButton
  109. InstaBuild.Font = Enum.Font.SourceSans
  110. InstaBuild.Text = "InstaBuild"
  111. InstaBuild.TextColor3 = Color3.fromRGB(131, 192, 219)
  112. InstaBuild.TextSize = 16.000
  113. InstaBuild.TextWrapped = true
  114.  
  115. TaskAura.Name = "TaskAura"
  116. TaskAura.Parent = ScrollingFrame
  117. TaskAura.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118. TaskAura.Position = UDim2.new(0.0466145016, 0, 0.072837919, 0)
  119. TaskAura.Size = UDim2.new(0, 136, 0, 27)
  120. TaskAura.Style = Enum.ButtonStyle.RobloxRoundButton
  121. TaskAura.Font = Enum.Font.SourceSans
  122. TaskAura.Text = "TaskAura"
  123. TaskAura.TextColor3 = Color3.fromRGB(131, 192, 219)
  124. TaskAura.TextSize = 16.000
  125. TaskAura.TextWrapped = true
  126.  
  127. TaskESP.Name = "TaskESP"
  128. TaskESP.Parent = ScrollingFrame
  129. TaskESP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  130. TaskESP.Position = UDim2.new(0.0531504489, 0, 0.0900096372, 0)
  131. TaskESP.Size = UDim2.new(0, 136, 0, 27)
  132. TaskESP.Style = Enum.ButtonStyle.RobloxRoundButton
  133. TaskESP.Font = Enum.Font.SourceSans
  134. TaskESP.Text = "TaskESP"
  135. TaskESP.TextColor3 = Color3.fromRGB(131, 192, 219)
  136. TaskESP.TextSize = 16.000
  137. TaskESP.TextWrapped = true
  138.  
  139. FullBright.Name = "FullBright"
  140. FullBright.Parent = ScrollingFrame
  141. FullBright.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  142. FullBright.Position = UDim2.new(0.0531504489, 0, 0.107181355, 0)
  143. FullBright.Size = UDim2.new(0, 136, 0, 27)
  144. FullBright.Style = Enum.ButtonStyle.RobloxRoundButton
  145. FullBright.Font = Enum.Font.SourceSans
  146. FullBright.Text = "FullBright"
  147. FullBright.TextColor3 = Color3.fromRGB(131, 192, 219)
  148. FullBright.TextSize = 16.000
  149. FullBright.TextWrapped = true
  150.  
  151. TurnInvisible.Name = "Turn Invisible"
  152. TurnInvisible.Parent = ScrollingFrame
  153. TurnInvisible.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  154. TurnInvisible.Position = UDim2.new(0.0466145016, 0, 0.123848021, 0)
  155. TurnInvisible.Size = UDim2.new(0, 136, 0, 27)
  156. TurnInvisible.Style = Enum.ButtonStyle.RobloxRoundButton
  157. TurnInvisible.Font = Enum.Font.SourceSans
  158. TurnInvisible.Text = "Turn Invisible"
  159. TurnInvisible.TextColor3 = Color3.fromRGB(131, 192, 219)
  160. TurnInvisible.TextSize = 16.000
  161. TurnInvisible.TextWrapped = true
  162.  
  163. ToggleMetalDetectorFarm.Name = "ToggleMetalDetectorFarm"
  164. ToggleMetalDetectorFarm.Parent = ScrollingFrame
  165. ToggleMetalDetectorFarm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  166. ToggleMetalDetectorFarm.Position = UDim2.new(0.0466145016, 0, 0.140514687, 0)
  167. ToggleMetalDetectorFarm.Size = UDim2.new(0, 136, 0, 27)
  168. ToggleMetalDetectorFarm.Style = Enum.ButtonStyle.RobloxRoundButton
  169. ToggleMetalDetectorFarm.Font = Enum.Font.SourceSans
  170. ToggleMetalDetectorFarm.Text = "Toggle Point Farm"
  171. ToggleMetalDetectorFarm.TextColor3 = Color3.fromRGB(131, 192, 219)
  172. ToggleMetalDetectorFarm.TextSize = 16.000
  173. ToggleMetalDetectorFarm.TextWrapped = true
  174.  
  175. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(125, 125, 125)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(125, 125, 125))}
  176. UIGradient.Parent = Frame
  177.  
  178. RelicESP.MouseButton1Down:connect(function()
  179.  
  180.     for i,v in pairs(game:GetService("Workspace").TempMap.Main.Relics:GetChildren()) do
  181.         if v.ClassName == "Relic" or v:IsA("MeshPart") then
  182.  
  183.             local function addGui(part)
  184.                 if v:FindFirstChild("STNESP") ~= nil then
  185.                     v:FindFirstChild("STNESP"):Destroy()
  186.                     print("Removing old ESP on " .. part.parent.Name)
  187.                 end
  188.  
  189.                 local gui = Instance.new("BillboardGui", part)
  190.                 gui.Name = "STNESP"
  191.                 gui.Size = UDim2.new(1, 0, 1, 0)
  192.                 gui.AlwaysOnTop = true
  193.  
  194.                 local frame = Instance.new("Frame", gui)
  195.                 frame.Size = UDim2.new(3, 0, 3, 0)
  196.                 frame.BackgroundTransparency = 0.5
  197.                 frame.BorderSizePixel = 0
  198.  
  199.                 if part.parent.Name == "Relic" then
  200.                     frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  201.                 end
  202.  
  203.                 print("Added ESP to " .. part.parent.Name .. "!")
  204.             end
  205.             addGui(v)
  206.         end
  207.     end
  208. end)
  209.  
  210. RelicAura.MouseButton1Click:Connect(function()
  211.     if not on then on = true
  212.         _G.On = true
  213.         if game:GetService("Workspace").TempMap.Main.Relics.Relic then
  214.             while _G.On and wait(0.1) do
  215.                 for i,v in pairs(game:GetService("Workspace").TempMap.Main.Relics:GetChildren()) do
  216.                     if v.Name == "Relic" then
  217.                         fireproximityprompt(v.RelicPrompt)
  218.                     end
  219.                 end
  220.             end
  221.         end
  222.     else on = false
  223.         _G.On = false
  224.         if game:GetService("Workspace").TempMap.Main.Relics.Relic then
  225.             while _G.On and wait(0.1) do
  226.                 for i,v in pairs(game:GetService("Workspace").TempMap.Main.Relics:GetChildren()) do
  227.                     if v.Name == "Relic" then
  228.                         fireproximityprompt(v.RelicPrompt)
  229.                     end
  230.                 end
  231.             end
  232.         end
  233.     end
  234. end)
  235.  
  236. PlayerESP.MouseButton1Down:connect(function()
  237.  
  238.     local workspace = game:GetService("Workspace")
  239.     local player = game:GetService("Players").LocalPlayer
  240.     local camera = workspace.CurrentCamera
  241.  
  242.     --// Settings:
  243.     local on = true -- Use this if your making gui
  244.  
  245.     local Box_Color = Color3.fromRGB(255, 0, 0)
  246.     local Box_Thickness = 2
  247.     local Box_Transparency = 1
  248.  
  249.     local Tracers = true
  250.     local Tracer_Color = Color3.fromRGB(255, 0, 0)
  251.     local Tracer_Thickness = 2
  252.     local Tracer_Transparency = 1
  253.  
  254.     local Autothickness = true
  255.  
  256.     local Team_Check = true
  257.     local red = Color3.fromRGB(227, 52, 52)
  258.     local green = Color3.fromRGB(88, 217, 24)
  259.  
  260.     local function NewLine()
  261.         local line = Drawing.new("Line")
  262.         line.Visible = false
  263.         line.From = Vector2.new(0, 0)
  264.         line.To = Vector2.new(1, 1)
  265.         line.Color = Box_Color
  266.         line.Thickness = Box_Thickness
  267.         line.Transparency = Box_Transparency
  268.         return line
  269.     end
  270.  
  271.     for i, v in pairs(game.Players:GetChildren()) do
  272.  
  273.         local lines = {
  274.             line1 = NewLine(),
  275.             line2 = NewLine(),
  276.             line3 = NewLine(),
  277.             line4 = NewLine(),
  278.             line5 = NewLine(),
  279.             line6 = NewLine(),
  280.             line7 = NewLine(),
  281.             line8 = NewLine(),
  282.             line9 = NewLine(),
  283.             line10 = NewLine(),
  284.             line11 = NewLine(),
  285.             line12 = NewLine(),
  286.             Tracer = NewLine()
  287.         }
  288.  
  289.         lines.Tracer.Color = Tracer_Color
  290.         lines.Tracer.Thickness = Tracer_Thickness
  291.         lines.Tracer.Transparency = Tracer_Transparency
  292.  
  293.         local function ESP()
  294.             local connection
  295.             connection = game:GetService("RunService").RenderStepped:Connect(function()
  296.                 if on and v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v.Name ~= player.Name and v.Character.Humanoid.Health > 0 and v.Character:FindFirstChild("Head") ~= nil then
  297.                     local pos, vis = camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  298.                     if vis then
  299.                         local Scale = v.Character.Head.Size.Y/2
  300.                         local Size = Vector3.new(2, 3, 1.5) * (Scale * 2)
  301.  
  302.                         local Top1 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, Size.Y, -Size.Z)).p)
  303.                         local Top2 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, Size.Y, Size.Z)).p)
  304.                         local Top3 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, Size.Y, Size.Z)).p)
  305.                         local Top4 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, Size.Y, -Size.Z)).p)
  306.  
  307.                         local Bottom1 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, -Size.Y, -Size.Z)).p)
  308.                         local Bottom2 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, -Size.Y, Size.Z)).p)
  309.                         local Bottom3 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, -Size.Y, Size.Z)).p)
  310.                         local Bottom4 = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, -Size.Y, -Size.Z)).p)
  311.  
  312.                         lines.line1.From = Vector2.new(Top1.X, Top1.Y)
  313.                         lines.line1.To = Vector2.new(Top2.X, Top2.Y)
  314.  
  315.                         lines.line2.From = Vector2.new(Top2.X, Top2.Y)
  316.                         lines.line2.To = Vector2.new(Top3.X, Top3.Y)
  317.  
  318.                         lines.line3.From = Vector2.new(Top3.X, Top3.Y)
  319.                         lines.line3.To = Vector2.new(Top4.X, Top4.Y)
  320.  
  321.                         lines.line4.From = Vector2.new(Top4.X, Top4.Y)
  322.                         lines.line4.To = Vector2.new(Top1.X, Top1.Y)
  323.  
  324.                         lines.line5.From = Vector2.new(Bottom1.X, Bottom1.Y)
  325.                         lines.line5.To = Vector2.new(Bottom2.X, Bottom2.Y)
  326.  
  327.                         lines.line6.From = Vector2.new(Bottom2.X, Bottom2.Y)
  328.                         lines.line6.To = Vector2.new(Bottom3.X, Bottom3.Y)
  329.  
  330.                         lines.line7.From = Vector2.new(Bottom3.X, Bottom3.Y)
  331.                         lines.line7.To = Vector2.new(Bottom4.X, Bottom4.Y)
  332.  
  333.                         lines.line8.From = Vector2.new(Bottom4.X, Bottom4.Y)
  334.                         lines.line8.To = Vector2.new(Bottom1.X, Bottom1.Y)
  335.  
  336.                         lines.line9.From = Vector2.new(Bottom1.X, Bottom1.Y)
  337.                         lines.line9.To = Vector2.new(Top1.X, Top1.Y)
  338.  
  339.                         lines.line10.From = Vector2.new(Bottom2.X, Bottom2.Y)
  340.                         lines.line10.To = Vector2.new(Top2.X, Top2.Y)
  341.  
  342.                         lines.line11.From = Vector2.new(Bottom3.X, Bottom3.Y)
  343.                         lines.line11.To = Vector2.new(Top3.X, Top3.Y)
  344.  
  345.                         lines.line12.From = Vector2.new(Bottom4.X, Bottom4.Y)
  346.                         lines.line12.To = Vector2.new(Top4.X, Top4.Y)
  347.  
  348.                         if Tracers then
  349.                             local trace = camera:WorldToViewportPoint((v.Character.HumanoidRootPart.CFrame * CFrame.new(0, -Size.Y, 0)).p)
  350.  
  351.                             lines.Tracer.From = Vector2.new(camera.ViewportSize.X/2, camera.ViewportSize.Y)
  352.                             lines.Tracer.To = Vector2.new(trace.X, trace.Y)
  353.                         end
  354.  
  355.                         if Team_Check then
  356.                             if v.TeamColor == player.TeamColor then
  357.                                 for u, x in pairs(lines) do
  358.                                     x.Color = green
  359.                                 end
  360.                             else
  361.                                 for u, x in pairs(lines) do
  362.                                     x.Color = red
  363.                                 end
  364.                             end
  365.                         end
  366.  
  367.                         --// Autothickness:
  368.                         if Autothickness then
  369.                             local distance = (player.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
  370.                             local value = math.clamp(1/distance*100, 0.1, 4) --0.1 is min thickness, 6 is max
  371.                             for u, x in pairs(lines) do
  372.                                 x.Thickness = value
  373.                             end
  374.                         else
  375.                             for u, x in pairs(lines) do
  376.                                 x.Thickness = Box_Thickness
  377.                             end
  378.                         end
  379.  
  380.                         for u, x in pairs(lines) do
  381.                             if x ~= lines.Tracer then
  382.                                 x.Visible = true
  383.                             end
  384.                         end
  385.                         if Tracers then
  386.                             lines.Tracer.Visible = true
  387.                         end
  388.                     else
  389.                         for u, x in pairs(lines) do
  390.                             x.Visible = false
  391.                         end
  392.                     end
  393.                 else
  394.                     for u, x in pairs(lines) do
  395.                         x.Visible = false
  396.                     end
  397.                     if game.Players:FindFirstChild(v.Name) == nil then
  398.                         connection:Disconnect()
  399.                     end
  400.                 end
  401.             end)
  402.         end
  403.         coroutine.wrap(ESP)()
  404.     end
  405.  
  406.     game.Players.PlayerAdded:Connect(function(newplr)
  407.         --// Lines for 3D box (12)
  408.         local lines = {
  409.             line1 = NewLine(),
  410.             line2 = NewLine(),
  411.             line3 = NewLine(),
  412.             line4 = NewLine(),
  413.             line5 = NewLine(),
  414.             line6 = NewLine(),
  415.             line7 = NewLine(),
  416.             line8 = NewLine(),
  417.             line9 = NewLine(),
  418.             line10 = NewLine(),
  419.             line11 = NewLine(),
  420.             line12 = NewLine(),
  421.             Tracer = NewLine()
  422.         }
  423.  
  424.         lines.Tracer.Color = Tracer_Color
  425.         lines.Tracer.Thickness = Tracer_Thickness
  426.         lines.Tracer.Transparency = Tracer_Transparency
  427.  
  428.         --// Updates ESP (lines) in render loop
  429.         local function ESP()
  430.             local connection
  431.             connection = game:GetService("RunService").RenderStepped:Connect(function()
  432.                 if on and newplr.Character ~= nil and newplr.Character:FindFirstChild("Humanoid") ~= nil and newplr.Character:FindFirstChild("HumanoidRootPart") ~= nil and newplr.Name ~= player.Name and newplr.Character.Humanoid.Health > 0 and newplr.Character:FindFirstChild("Head") ~= nil then
  433.                     local pos, vis = camera:WorldToViewportPoint(newplr.Character.HumanoidRootPart.Position)
  434.                     if vis then
  435.                         local Scale = newplr.Character.Head.Size.Y/2
  436.                         local Size = Vector3.new(2, 3, 1.5) * (Scale * 2) -- Change this for different box size
  437.  
  438.                         local Top1 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, Size.Y, -Size.Z)).p)
  439.                         local Top2 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, Size.Y, Size.Z)).p)
  440.                         local Top3 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, Size.Y, Size.Z)).p)
  441.                         local Top4 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, Size.Y, -Size.Z)).p)
  442.  
  443.                         local Bottom1 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, -Size.Y, -Size.Z)).p)
  444.                         local Bottom2 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(-Size.X, -Size.Y, Size.Z)).p)
  445.                         local Bottom3 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, -Size.Y, Size.Z)).p)
  446.                         local Bottom4 = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(Size.X, -Size.Y, -Size.Z)).p)
  447.  
  448.                         --// Top:
  449.                         lines.line1.From = Vector2.new(Top1.X, Top1.Y)
  450.                         lines.line1.To = Vector2.new(Top2.X, Top2.Y)
  451.  
  452.                         lines.line2.From = Vector2.new(Top2.X, Top2.Y)
  453.                         lines.line2.To = Vector2.new(Top3.X, Top3.Y)
  454.  
  455.                         lines.line3.From = Vector2.new(Top3.X, Top3.Y)
  456.                         lines.line3.To = Vector2.new(Top4.X, Top4.Y)
  457.  
  458.                         lines.line4.From = Vector2.new(Top4.X, Top4.Y)
  459.                         lines.line4.To = Vector2.new(Top1.X, Top1.Y)
  460.  
  461.                         --// Bottom:
  462.                         lines.line5.From = Vector2.new(Bottom1.X, Bottom1.Y)
  463.                         lines.line5.To = Vector2.new(Bottom2.X, Bottom2.Y)
  464.  
  465.                         lines.line6.From = Vector2.new(Bottom2.X, Bottom2.Y)
  466.                         lines.line6.To = Vector2.new(Bottom3.X, Bottom3.Y)
  467.  
  468.                         lines.line7.From = Vector2.new(Bottom3.X, Bottom3.Y)
  469.                         lines.line7.To = Vector2.new(Bottom4.X, Bottom4.Y)
  470.  
  471.                         lines.line8.From = Vector2.new(Bottom4.X, Bottom4.Y)
  472.                         lines.line8.To = Vector2.new(Bottom1.X, Bottom1.Y)
  473.  
  474.                         --//S ides:
  475.                         lines.line9.From = Vector2.new(Bottom1.X, Bottom1.Y)
  476.                         lines.line9.To = Vector2.new(Top1.X, Top1.Y)
  477.  
  478.                         lines.line10.From = Vector2.new(Bottom2.X, Bottom2.Y)
  479.                         lines.line10.To = Vector2.new(Top2.X, Top2.Y)
  480.  
  481.                         lines.line11.From = Vector2.new(Bottom3.X, Bottom3.Y)
  482.                         lines.line11.To = Vector2.new(Top3.X, Top3.Y)
  483.  
  484.                         lines.line12.From = Vector2.new(Bottom4.X, Bottom4.Y)
  485.                         lines.line12.To = Vector2.new(Top4.X, Top4.Y)
  486.  
  487.                         --// Tracer:
  488.                         if Tracers then
  489.                             local trace = camera:WorldToViewportPoint((newplr.Character.HumanoidRootPart.CFrame * CFrame.new(0, -Size.Y, 0)).p)
  490.                             lines.Tracer.From = Vector2.new(camera.ViewportSize.X/2, camera.ViewportSize.Y)
  491.                             lines.Tracer.To = Vector2.new(trace.X, trace.Y)
  492.                         end
  493.  
  494.                         --// Teamcheck:
  495.                         if Team_Check then
  496.                             if newplr.TeamColor == player.TeamColor then
  497.                                 for u, x in pairs(lines) do
  498.                                     x.Color = green
  499.                                 end
  500.                             else
  501.                                 for u, x in pairs(lines) do
  502.                                     x.Color = red
  503.                                 end
  504.                             end
  505.                         end
  506.  
  507.                         --// Autothickness:
  508.                         if Autothickness then
  509.                             local distance = (player.Character.HumanoidRootPart.Position - newplr.Character.HumanoidRootPart.Position).magnitude
  510.                             local value = math.clamp(1/distance*100, 0.1, 4) --0.1 is min thickness, 6 is max
  511.                             for u, x in pairs(lines) do
  512.                                 x.Thickness = value
  513.                             end
  514.                         else
  515.                             for u, x in pairs(lines) do
  516.                                 x.Thickness = Box_Thickness
  517.                             end
  518.                         end
  519.  
  520.                         for u, x in pairs(lines) do
  521.                             if x ~= lines.Tracer then
  522.                                 x.Visible = true
  523.                             end
  524.                         end
  525.                         if Tracers then
  526.                             lines.Tracer.Visible = true
  527.                         end
  528.                     else
  529.                         for u, x in pairs(lines) do
  530.                             x.Visible = false
  531.                         end
  532.                     end
  533.                 else
  534.                     for u, x in pairs(lines) do
  535.                         x.Visible = false
  536.                     end
  537.                     if game.Players:FindFirstChild(newplr.Name) == nil then
  538.                         connection:Disconnect()
  539.                     end
  540.                 end
  541.             end)
  542.         end
  543.         coroutine.wrap(ESP)()
  544.     end)
  545.  
  546.     function Create(base, team)
  547.         local bb = Instance.new('BillboardGui', game.CoreGui)
  548.         bb.Adornee = base
  549.         bb.ExtentsOffset = Vector3.new(0,1,0)
  550.         bb.AlwaysOnTop = true
  551.         bb.Size = UDim2.new(0,5,0,5)
  552.         bb.StudsOffset = Vector3.new(0,1,0)
  553.         bb.Name = 'tracker'
  554.         local frame = Instance.new('Frame',bb)
  555.         frame.ZIndex = 10
  556.         frame.BackgroundTransparency = 0.3
  557.         frame.Size = UDim2.new(1,0,1,0)
  558.         local txtlbl = Instance.new('TextLabel',bb)
  559.         txtlbl.ZIndex = 10
  560.         txtlbl.BackgroundTransparency = 1
  561.         txtlbl.Position = UDim2.new(0,0,0,-35)
  562.         txtlbl.Size = UDim2.new(1,0,10,0)
  563.         txtlbl.Font = 'ArialBold'
  564.         txtlbl.FontSize = 'Size12'
  565.         txtlbl.Text = base.Parent.Name:upper()
  566.         txtlbl.TextStrokeTransparency = 0.5
  567.         if team then
  568.             txtlbl.TextColor3 = Color3.new(0,1,1)
  569.             frame.BackgroundColor3 = Color3.new(0,1,1)
  570.         else
  571.             txtlbl.TextColor3 = Color3.new(1,0,0)
  572.             frame.BackgroundColor3 = Color3.new(1,0,0)
  573.         end
  574.     end
  575.  
  576.     function Clear()
  577.         for _,v in pairs(game.CoreGui:children()) do
  578.             if v.Name == 'tracker' and v:isA('BillboardGui') then
  579.                 v:Destroy()
  580.             end
  581.         end
  582.     end
  583.  
  584.     function Find()
  585.         Clear()
  586.         track = true
  587.         spawn(function()
  588.             while wait(1) do
  589.                 if track then
  590.                     Clear()
  591.                     for _,v in pairs(game.Players:GetChildren()) do
  592.                         if v.Name ~= game.Players.LocalPlayer.Name then
  593.                             if v.Character and v.Character.Head then
  594.                                 Create(v.Character.Head, false)
  595.                             end
  596.                         end
  597.                     end
  598.                 end
  599.                 wait(1)
  600.             end
  601.         end)
  602.     end
  603.  
  604.     Find()
  605. end)
  606.  
  607. InstaBuild.MouseButton1Down:connect(function()
  608.  
  609.     for i = 1,100 do
  610.         for i,v in pairs(game:GetService("Workspace").Misc:GetDescendants()) do
  611.             if v.Name == "BarricadePrompt" then
  612.                 fireproximityprompt(v)
  613.             end
  614.         end
  615.     end
  616. end)
  617.  
  618. TaskAura.MouseButton1Click:Connect(function()
  619.     if not oN then oN = true
  620.         _G.ON = true
  621.         while _G.ON and wait(0.1) do
  622.             for i,v in pairs(game:GetService("Workspace").TempMap.Main.BonusItems:GetDescendants()) do
  623.                 if v.ClassName == "ProximityPrompt" then
  624.                     fireproximityprompt(v)
  625.                 end
  626.             end
  627.         end
  628.     else oN = false
  629.         _G.ON = false
  630.         while _G.ON and wait(0.1) do
  631.             for i,v in pairs(game:GetService("Workspace").TempMap.Main.BonusItems:GetDescendants()) do
  632.                 if v.ClassName == "ProximityPrompt" then
  633.                     fireproximityprompt(v)
  634.                 end
  635.             end
  636.         end
  637.     end
  638. end)
  639.  
  640. TaskESP.MouseButton1Down:connect(function()
  641.  
  642.     for i, v in pairs(game:GetService("Workspace").TempMap.Main.BonusItems:GetDescendants()) do
  643.         if v:FindFirstChild("BillboardGui") ~= nil then
  644.             v:FindFirstChild("BillboardGui"):Destroy()
  645.         end
  646.  
  647.         if v.ClassName == "Model" then
  648.             local BillboardGui = Instance.new("BillboardGui")
  649.             local TextLabel = Instance.new("TextLabel")
  650.  
  651.             BillboardGui.Parent = v.Parent
  652.             BillboardGui.AlwaysOnTop = true
  653.             BillboardGui.LightInfluence = 1
  654.             BillboardGui.Size = UDim2.new(0, 50, 0, 50)
  655.             BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  656.  
  657.             TextLabel.Parent = BillboardGui
  658.             TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  659.             TextLabel.BackgroundTransparency = 1
  660.             TextLabel.Size = UDim2.new(1, 0, 1, 0)
  661.             TextLabel.Text = v.parent.Name
  662.             TextLabel.TextColor3 = Color3.new(1, 0, 0)
  663.             TextLabel.TextScaled = true
  664.         end
  665.     end
  666. end)
  667.  
  668. FullBright.MouseButton1Down:connect(function()
  669.     game:GetService("Lighting").Skybox:Destroy()
  670.     game:GetService("Lighting").FlareColorCorrection.Enabled = false
  671.     game:GetService("Lighting").BasicColorCorrection.Enabled = false
  672.     game:GetService("Lighting").PlayerBlur.Enabled = false
  673.     game:GetService("Lighting").DefaultColorCorrection.Enabled = false
  674.     game:GetService("Lighting").DefaultBloom.Enabled = false
  675.     game:GetService("Lighting").DefaultSunRays.Enabled = false
  676.     game:GetService("Lighting").DefaultBlur.Enabled = false
  677.     game:GetService("Lighting").Ambient = Color3.fromRGB(236, 236, 236)
  678.     game:GetService("Lighting").OutdoorAmbient = Color3.fromRGB(70, 70, 70)
  679.     game:GetService("Lighting").Brightness = 3
  680.     game:GetService("Lighting").ExposureCompensation = 0.25
  681.     game:GetService("Lighting").ClockTime = 14.5
  682.     game:GetService("Lighting").FogEnd = 10000000
  683.     game:GetService("Lighting").Atmosphere.Enabled = false
  684. end)
  685.  
  686. TurnInvisible.MouseButton1Down:connect(function()
  687.  
  688.     local c = game.Players.LocalPlayer.Character
  689.     c.UpperTorso.Waist:Destroy()
  690.     c.LeftUpperLeg:Destroy()
  691.     c.RightUpperLeg:Destroy()
  692. end)
  693.  
  694. ToggleMetalDetectorFarm.MouseButton1Click:Connect(function()
  695.     if not cool then cool = true
  696.         local speed = 6 -- the higher the number the slower you go.
  697.         _G.ON = true
  698.         tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(speed, Enum.EasingStyle.Linear)
  699.         while _G.ON and wait(0.1) do
  700.             game:GetService("Players").LocalPlayer.Character.Kit.Remotes.Gear:FireServer()
  701.             wait(1)
  702.             for i,v in pairs(game:GetService("Players").LocalPlayer.Character.Kit.Gear.Objects:GetChildren()) do
  703.                 if v.ClassName == "Part" then
  704.                     tween = tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(v.Position)})
  705.                     tween:Play()
  706.                     wait(10)
  707.                     fireproximityprompt(v.MetalDetectorPrompt)
  708.                 end
  709.             end
  710.         end
  711.     else cool = false
  712.         local speed = 6 -- the higher the number the slower you go.
  713.         _G.ON = false
  714.         tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(speed, Enum.EasingStyle.Linear)
  715.         while _G.ON and wait(0.1) do
  716.             game:GetService("Players").LocalPlayer.Character.Kit.Remotes.Gear:FireServer()
  717.             wait(1)
  718.             for i,v in pairs(game:GetService("Players").LocalPlayer.Character.Kit.Gear.Objects:GetChildren()) do
  719.                 if v.ClassName == "Part" then
  720.                     tween = tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(v.Position)})
  721.                     tween:Play()
  722.                     wait(10)
  723.                     fireproximityprompt(v.MetalDetectorPrompt)
  724.                 end
  725.             end
  726.         end
  727.     end
  728. end)