Advertisement
pa1nx9

Free Roblox Script Survive the Night GUI

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