Advertisement
ZploitKing

Battle Royale Simulator GUI

Jun 23rd, 2020
4,310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.20 KB | None | 0 0
  1. (Glitchy)
  2. -- Gui to Lua
  3. -- Version: 3.2
  4.  
  5. -- Instances:
  6.  
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local Open = Instance.new("TextButton")
  9. local Menu = Instance.new("Frame")
  10. local X = Instance.new("TextButton")
  11. local TextButton = Instance.new("TextButton")
  12. local HitBox = Instance.new("TextButton")
  13. local Aim = Instance.new("TextButton")
  14. local ESP = Instance.new("TextButton")
  15. local Madeby = Instance.new("TextLabel")
  16.  
  17. --Properties:
  18.  
  19. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22. Open.Name = "Open"
  23. Open.Parent = ScreenGui
  24. Open.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  25. Open.Position = UDim2.new(0, 0, 0.809421837, 0)
  26. Open.Size = UDim2.new(0, 120, 0, 55)
  27. Open.Font = Enum.Font.SourceSans
  28. Open.Text = "OPEN"
  29. Open.TextColor3 = Color3.fromRGB(0, 0, 0)
  30. Open.TextScaled = true
  31. Open.TextSize = 14.000
  32. Open.TextWrapped = true
  33. Open.MouseButton1Down:connect(function()
  34. Open.Visible = false
  35. Menu.Visible = true
  36. end)
  37.  
  38. Menu.Name = "Menu"
  39. Menu.Parent = ScreenGui
  40. Menu.BackgroundColor3 = Color3.fromRGB(245, 128, 255)
  41. Menu.BorderColor3 = Color3.fromRGB(245, 128, 255)
  42. Menu.Position = UDim2.new(0.230656937, 0, 0.146680951, 0)
  43. Menu.Size = UDim2.new(0, 789, 0, 619)
  44. Menu.Visible = false
  45.  
  46. X.Name = "X"
  47. X.Parent = Menu
  48. X.BackgroundColor3 = Color3.fromRGB(245, 128, 255)
  49. X.BorderColor3 = Color3.fromRGB(245, 128, 255)
  50. X.Position = UDim2.new(0.93662864, 0, 0, 0)
  51. X.Size = UDim2.new(0, 50, 0, 45)
  52. X.Font = Enum.Font.SourceSans
  53. X.Text = "X"
  54. X.TextColor3 = Color3.fromRGB(0, 0, 0)
  55. X.TextScaled = true
  56. X.TextSize = 14.000
  57. X.TextWrapped = true
  58. X.MouseButton1Down:connect(function()
  59. Menu.Visible = false
  60. end)
  61.  
  62. TextButton.Name = "-"
  63. TextButton.Parent = Menu
  64. TextButton.BackgroundColor3 = Color3.fromRGB(245, 128, 255)
  65. TextButton.BorderColor3 = Color3.fromRGB(245, 128, 255)
  66. TextButton.Position = UDim2.new(0.868187606, 0, 0, 0)
  67. TextButton.Size = UDim2.new(0, 54, 0, 45)
  68. TextButton.Font = Enum.Font.SourceSans
  69. TextButton.Text = "-"
  70. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  71. TextButton.TextScaled = true
  72. TextButton.TextSize = 14.000
  73. TextButton.TextWrapped = true
  74. TextButton.MouseButton1Down:connect(function()
  75. Menu.Visible = false
  76. Open.Visible = true
  77. end)
  78.  
  79. HitBox.Name = "HitBox"
  80. HitBox.Parent = Menu
  81. HitBox.BackgroundColor3 = Color3.fromRGB(172, 60, 170)
  82. HitBox.BorderColor3 = Color3.fromRGB(172, 60, 170)
  83. HitBox.Position = UDim2.new(-3.7252903e-09, 0, 0.284329563, 0)
  84. HitBox.Size = UDim2.new(0, 230, 0, 266)
  85. HitBox.Font = Enum.Font.SourceSans
  86. HitBox.Text = "HitBox"
  87. HitBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  88. HitBox.TextScaled = true
  89. HitBox.TextSize = 14.000
  90. HitBox.TextWrapped = true
  91. HitBox.MouseButton1Down:connect(function()
  92. _G.HeadSize = 50 _G.Disabled = true game:GetService('RunService').RenderStepped:connect(function() if _G.Disabled then for i,v in next, game:GetService('Players'):GetPlayers() do if v.Name ~= game:GetService('Players').LocalPlayer.Name then pcall(function() v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize) v.Character.HumanoidRootPart.Transparency = 0.7 v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue") v.Character.HumanoidRootPart.Material = "Neon" v.Character.HumanoidRootPart.CanCollide = false end) end end end end)
  93. end)
  94.  
  95. Aim.Name = "Aim"
  96. Aim.Parent = Menu
  97. Aim.BackgroundColor3 = Color3.fromRGB(172, 60, 170)
  98. Aim.BorderColor3 = Color3.fromRGB(172, 60, 170)
  99. Aim.Position = UDim2.new(0.353612185, 0, 0.284329563, 0)
  100. Aim.Size = UDim2.new(0, 230, 0, 266)
  101. Aim.Font = Enum.Font.SourceSans
  102. Aim.Text = "AIMBOT"
  103. Aim.TextColor3 = Color3.fromRGB(0, 0, 0)
  104. Aim.TextScaled = true
  105. Aim.TextSize = 14.000
  106. Aim.TextWrapped = true
  107. Aim.MouseButton1Down:connect(function()
  108. -- Hold E when you shoot to automatically aimbot and the ESP is still a work in progress --
  109. local Headshot_Key = Enum.KeyCode.E
  110. local Torsoshot_Key = Enum.KeyCode.K
  111.  
  112. local plr = game.Players.LocalPlayer
  113. local Gui = Instance.new("ScreenGui",game.CoreGui)
  114. Gui.Name = "AimbotGui"
  115. local version = "1.0.1"
  116.  
  117. HDown = false
  118. TDown = false
  119. mouse = game.Players.LocalPlayer:GetMouse()
  120. cam = game.Workspace.CurrentCamera
  121. Players = game:service("Players")
  122.  
  123. function onKeyPress(inputObject, gameProcessedEvent)
  124. if inputObject.KeyCode == Headshot_Key then
  125. if HDown == false and TDown == false then
  126. HDown = true
  127. print("[AIMBOT] Calculating closest player")
  128. local targetpoint = mouse.Hit
  129. local p = game.Players:GetChildren()
  130. local lowestdist = 99999999999
  131. local lowestplayer = nil
  132. for i=1,#p do
  133. if p[i]~=game.Players.LocalPlayer and p[i].Character~=nil and p[i].Character~=nil and p[i].TeamColor~=game.Players.LocalPlayer.TeamColor and p[i].Character.Humanoid.Health >0 and p[i].TeamColor~=BrickColor.new("White") then
  134. local dist = p[i]:DistanceFromCharacter(Vector3.new(targetpoint.X,targetpoint.Y,targetpoint.Z))
  135. if dist < lowestdist then
  136. lowestdist = dist
  137. lowestplayer = p[i]
  138. end
  139. end
  140. end
  141. if lowestplayer~=nil then
  142. print("[AIMBOT] Targeting "..lowestplayer.Name)
  143. while HDown do
  144. wait()
  145. local TPos = lowestplayer.Character.Head.Position
  146. cam.CFrame = CFrame.new(Vector3.new(cam.CFrame.X,cam.CFrame.Y,cam.CFrame.Z),Vector3.new(TPos.X,TPos.Y,TPos.Z))
  147. end
  148. end
  149. end
  150. elseif inputObject.KeyCode == Torsoshot_Key then
  151. if TDown == false and HDown == false then
  152. TDown = true
  153. print("[AIMBOT] Calculating closest player")
  154. local targetpoint = mouse.Hit
  155. local p = game.Players:GetChildren()
  156. local lowestdist = 99999999999
  157. local lowestplayer = nil
  158. for i=1,#p do
  159. if p[i]~=game.Players.LocalPlayer and p[i].Character~=nil and p[i].Character~=nil and p[i].TeamColor~=game.Players.LocalPlayer.TeamColor and p[i].Character.Humanoid.Health >0 and p[i].TeamColor~=BrickColor.new("White") then
  160. local dist = p[i]:DistanceFromCharacter(Vector3.new(targetpoint.X,targetpoint.Y,targetpoint.Z))
  161. if dist < lowestdist then
  162. lowestdist = dist
  163. lowestplayer = p[i]
  164. end
  165. end
  166. end
  167. if lowestplayer~=nil then
  168. print("[AIMBOT] Targeting "..lowestplayer.Name)
  169. while TDown do
  170. wait()
  171. local TPos = lowestplayer.Character.Torso.Position
  172. cam.CFrame = CFrame.new(Vector3.new(cam.CFrame.X,cam.CFrame.Y,cam.CFrame.Z),Vector3.new(TPos.X,TPos.Y,TPos.Z))
  173. end
  174. end
  175. end
  176. end
  177. end
  178.  
  179. function onKeyRelease(inputObject, gameProcessedEvent)
  180. if inputObject.KeyCode == Headshot_Key then
  181. HDown = false
  182. elseif inputObject.KeyCode == Torsoshot_Key then
  183. TDown = false
  184. end
  185. end
  186.  
  187. function Esp(player, username)
  188. if player ~= Players.LocalPlayer and player.Character then
  189. local torso = player.Character:FindFirstChild("Torso")
  190. if torso then
  191. local base = Instance.new("BillboardGui", workspace.CurrentCamera)
  192. local esP = Instance.new("Frame", base)
  193. base.AlwaysOnTop = true
  194. base.Enabled = true
  195. base.Size = UDim2.new(3.5,0,4.7,0)
  196. base.Name = username
  197. base.Adornee = torso
  198. base.StudsOffset = Vector3.new(0, -0.6, 0)
  199. esP.BackgroundColor3 = Color3.new(1,0,0)
  200. esP.BackgroundTransparency = 0.8
  201. esP.BorderColor3 = Color3.new(0,0,0)
  202. esP.BorderSizePixel = 1
  203. esP.Size = UDim2.new(1,0,1,0)
  204. end
  205. end
  206. end
  207.  
  208. function CheckEsp()
  209. for x,player in pairs(Players:GetChildren()) do
  210. if player then
  211. if player.TeamColor ~= plr.TeamColor then
  212. local char = player.Character
  213. if char then
  214. local torso = char:FindFirstChild("Torso")
  215. if torso then
  216. local currentcam = workspace.CurrentCamera
  217. local playerName = player.Name
  218. if currentcam:FindFirstChild(playerName) == nil then
  219. Esp(player, playerName)
  220. end
  221. end
  222. end
  223. end
  224. end
  225. end
  226. end
  227.  
  228. local function createframe(bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex)
  229. local newframe = Instance.new("Frame")
  230. newframe.BackgroundColor3 = bkgc3
  231. newframe.BackgroundTransparency = bkgtrans
  232. newframe.BorderColor3 = borderc3
  233. newframe.BorderSizePixel = bordersize
  234. newframe.Name = name
  235. newframe.Parent = parent
  236. newframe.Position = pos
  237. newframe.Rotation = rot
  238. newframe.Size = size
  239. newframe.Visible = visible
  240. newframe.ZIndex = zindex
  241. return newframe
  242. end
  243.  
  244. local function createlabel(bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex, font, fontsize, text, textc3, textscaled, textstrokec3, textstroketrans, texttrans, textwrapped, xalign, yalign)
  245. local newlabel = Instance.new("TextLabel")
  246. newlabel.BackgroundColor3 = bkgc3
  247. newlabel.BackgroundTransparency = bkgtrans
  248. newlabel.BorderColor3 = borderc3
  249. newlabel.BorderSizePixel = bordersize
  250. newlabel.Name = name
  251. newlabel.Parent = parent
  252. newlabel.Position = pos
  253. newlabel.Rotation = rot
  254. newlabel.Size = size
  255. newlabel.Visible = visible
  256. newlabel.ZIndex = zindex
  257. newlabel.Font = font
  258. newlabel.FontSize = fontsize
  259. newlabel.Text = text
  260. newlabel.TextColor3 = textc3
  261. newlabel.TextScaled = textscaled
  262. newlabel.TextStrokeColor3 = textstrokec3
  263. newlabel.TextStrokeTransparency = textstroketrans
  264. newlabel.TextTransparency = texttrans
  265. newlabel.TextWrapped = textwrapped
  266. newlabel.TextXAlignment = xalign
  267. newlabel.TextYAlignment = yalign
  268. return newlabel
  269. end
  270.  
  271. local function createbutton(autocolor, bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex, font, fontsize, text, textc3, textscaled, textstrokec3, textstroketrans, texttrans, textwrapped, xalign, yalign)
  272. local newbutton = Instance.new("TextButton")
  273. newbutton.AutoButtonColor = autocolor
  274. newbutton.BackgroundColor3 = bkgc3
  275. newbutton.BackgroundTransparency = bkgtrans
  276. newbutton.BorderColor3 = borderc3
  277. newbutton.BorderSizePixel = bordersize
  278. newbutton.Name = name
  279. newbutton.Parent = parent
  280. newbutton.Position = pos
  281. newbutton.Rotation = rot
  282. newbutton.Size = size
  283. newbutton.Visible = visible
  284. newbutton.ZIndex = zindex
  285. newbutton.Font = font
  286. newbutton.FontSize = fontsize
  287. newbutton.Text = text
  288. newbutton.TextColor3 = textc3
  289. newbutton.TextScaled = textscaled
  290. newbutton.TextStrokeColor3 = textstrokec3
  291. newbutton.TextStrokeTransparency = textstroketrans
  292. newbutton.TextTransparency = texttrans
  293. newbutton.TextWrapped = textwrapped
  294. newbutton.TextXAlignment = xalign
  295. newbutton.TextYAlignment = yalign
  296. return newbutton
  297. end
  298.  
  299. local function createtextbox(bkgc3,bkgtrans,borderc3, bordersize, clrtext, multiline, name, parent, pos, rot, size, visible, zindex, font, fontsize, text, textc3, textscaled, textstrokec3, textstroketrans, texttrans, textwrapped, xalign, yalign)
  300. local newbox = Instance.new("TextBox")
  301. newbox.BackgroundColor3 = bkgc3
  302. newbox.BackgroundTransparency = bkgtrans
  303. newbox.BorderColor3 = borderc3
  304. newbox.BorderSizePixel = bordersize
  305. newbox.ClearTextOnFocus = clrtext
  306. newbox.MultiLine = multiline
  307. newbox.Name = name
  308. newbox.Parent = parent
  309. newbox.Position = pos
  310. newbox.Rotation = rot
  311. newbox.Size = size
  312. newbox.Visible = visible
  313. newbox.ZIndex = zindex
  314. newbox.Font = font
  315. newbox.FontSize = fontsize
  316. newbox.Text = text
  317. newbox.TextColor3 = textc3
  318. newbox.TextScaled = textscaled
  319. newbox.TextStrokeColor3 = textstrokec3
  320. newbox.TextStrokeTransparency = textstroketrans
  321. newbox.TextTransparency = texttrans
  322. newbox.TextWrapped = textwrapped
  323. newbox.TextXAlignment = xalign
  324. newbox.TextYAlignment = yalign
  325. return newbox
  326. end
  327.  
  328. local function createimagelabel(bkgc3,bkgtrans,borderc3, bordersize, name, parent, pos, rot, size, visible, zindex, image, imagetrans)
  329. local newimage = Instance.new("ImageLabel")
  330. newimage.BackgroundColor3 = bkgc3
  331. newimage.BackgroundTransparency = bkgtrans
  332. newimage.BorderColor3 = borderc3
  333. newimage.BorderSizePixel = bordersize
  334. newimage.Name = name
  335. newimage.Parent = parent
  336. newimage.Position = pos
  337. newimage.Rotation = rot
  338. newimage.Size = size
  339. newimage.Visible = visible
  340. newimage.ZIndex = zindex
  341. newimage.Image = "rbxassetid://"..image
  342. newimage.ImageTransparency = imagetrans
  343. return newimage
  344. end
  345.  
  346. -------------------------------INITIALIZE INTRO GUI-------------------------------------
  347. local IntroFrame = createframe(Color3.new(245/255,245/255,245/255),0,Color3.new(27/255,42/255,53/255),0,"IntroFrame",Gui,UDim2.new(0,-330,0,0),0,UDim2.new(0,300,1,0),true,1)
  348. --[[bar]] createframe(Color3.new(245/255,245/255,245/255),0,Color3.new(0,0,0),0,"bar",IntroFrame,UDim2.new(1,0,0,0),0,UDim2.new(0,30,0,90),true,1)
  349. --[[slant]] createimagelabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,"Slant",IntroFrame,UDim2.new(1,0,0,90),90,UDim2.new(0,30,0,30),true,1,474172996,0)
  350. --[[creator]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,"Creator",IntroFrame,UDim2.new(0,80,1,-40),0,UDim2.new(0,140,0,30),true,1,Enum.Font.Code,Enum.FontSize.Size28,"Symplicity",Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
  351. --[[creatorlabel]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,"CreatorLabel",IntroFrame,UDim2.new(0,80,1,-70),0,UDim2.new(0,140,0,30),true,1,Enum.Font.Code,Enum.FontSize.Size18,"Made by:",Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
  352. --[[desc]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,"Desc",IntroFrame,UDim2.new(0,0,0,120),0,UDim2.new(1,0,0,90),true,1,Enum.Font.SourceSansLight,Enum.FontSize.Size14,"Feel free to share, just give me creds :) The ESP was not originally created by me, I don't know who created it",Color3.new(0,0,0), true,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
  353. --[[subtitle]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,"SubTitle",IntroFrame,UDim2.new(0.5,-150,0,70),0,UDim2.new(0,300,0,40),true,1,Enum.Font.SourceSansBold,Enum.FontSize.Size32,"Aimbot/ESP",Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
  354. --[[title]] createlabel(Color3.new(1,1,1),1,Color3.new(0,0,0),0,"Title",IntroFrame,UDim2.new(0.5,-105,0,20),0,UDim2.new(0,210,0,60),true,1,Enum.Font.SourceSansBold,Enum.FontSize.Size60,"FPS",Color3.new(27/255,42/255,53/255), false,Color3.new(0,0,0),1,0,true,Enum.TextXAlignment.Center,Enum.TextYAlignment.Center)
  355.  
  356. IntroFrame:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,true)
  357. wait(3.5)
  358. IntroFrame:TweenPosition(UDim2.new(0,-330,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Quart,0.5,true)
  359. wait(0.5)
  360. Gui:Destroy()
  361.  
  362. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  363. game:GetService("UserInputService").InputEnded:connect(onKeyRelease)
  364.  
  365. while wait(1) do
  366. CheckEsp()
  367. end
  368. end)
  369.  
  370. ESP.Name = "ESP"
  371. ESP.Parent = Menu
  372. ESP.BackgroundColor3 = Color3.fromRGB(172, 60, 170)
  373. ESP.BorderColor3 = Color3.fromRGB(172, 60, 170)
  374. ESP.Position = UDim2.new(0.708491802, 0, 0.284329563, 0)
  375. ESP.Size = UDim2.new(0, 230, 0, 266)
  376. ESP.Font = Enum.Font.SourceSans
  377. ESP.Text = "ESP"
  378. ESP.TextColor3 = Color3.fromRGB(0, 0, 0)
  379. ESP.TextScaled = true
  380. ESP.TextSize = 14.000
  381. ESP.TextWrapped = true
  382. ESP.MouseButton1Down:connect(function()
  383. crashy = false -- CHANGE THIS TO TRUE IF IT CRASHES THIS GAME
  384. on = false
  385. if game.CoreGui:FindFirstChild('ESP') then
  386. game.CoreGui.ESP:Destroy()
  387. elseif game.Players.LocalPlayer.PlayerGui:FindFirstChild('ESP') then
  388. game.Players.LocalPlayer.PlayerGui.ESP:Destroy()
  389. end
  390.  
  391. function doit(hey)
  392. local t1 = Instance.new('SurfaceGui',hey)
  393. t1.AlwaysOnTop = true
  394. local t1g = Instance.new('Frame',t1)
  395. t1g.Size = UDim2.new(1,0,1,0)
  396. t1g.BackgroundColor3 = t1.Parent.BrickColor.Color
  397. local t2 = Instance.new('SurfaceGui',hey)
  398. t2.AlwaysOnTop = true
  399. t2.Face = Enum.NormalId.Right
  400. local t2g = Instance.new('Frame',t2)
  401. t2g.Size = UDim2.new(1,0,1,0)
  402. t2g.BackgroundColor3 = t2.Parent.BrickColor.Color
  403. local t3 = Instance.new('SurfaceGui',hey)
  404. t3.AlwaysOnTop = true
  405. t3.Face = Enum.NormalId.Left
  406. local t3g = Instance.new('Frame',t3)
  407. t3g.Size = UDim2.new(1,0,1,0)
  408. t3g.BackgroundColor3 = t3.Parent.BrickColor.Color
  409. local t4 = Instance.new('SurfaceGui',hey)
  410. t4.AlwaysOnTop = true
  411. t4.Face = Enum.NormalId.Back
  412. local t4g = Instance.new('Frame',t4)
  413. t4g.Size = UDim2.new(1,0,1,0)
  414. t4g.BackgroundColor3 = t4.Parent.BrickColor.Color
  415. local t5 = Instance.new('SurfaceGui',hey)
  416. t5.AlwaysOnTop = true
  417. t5.Face = Enum.NormalId.Top
  418. local t5g = Instance.new('Frame',t5)
  419. t5g.Size = UDim2.new(1,0,1,0)
  420. t5g.BackgroundColor3 = t5.Parent.BrickColor.Color
  421. local t6 = Instance.new('SurfaceGui',hey)
  422. t6.AlwaysOnTop = true
  423. t6.Face = Enum.NormalId.Bottom
  424. local t6g = Instance.new('Frame',t6)
  425. t6g.Size = UDim2.new(1,0,1,0)
  426. t6g.BackgroundColor3 = t6.Parent.BrickColor.Color
  427. end
  428. function undo(chr)
  429. for i,v in pairs(chr:GetChildren()) do
  430. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  431. for a,c in pairs(v:GetChildren()) do
  432. if c.ClassName == "SurfaceGui" then
  433. c:Destroy()
  434. end
  435. if c.ClassName == "BillboardGui" and c.Name == "thingyye" then
  436. c:Destroy()
  437. end
  438. end
  439. end
  440. end
  441. end
  442.  
  443. local gui = Instance.new('ScreenGui')
  444. if crashy == false then
  445. gui.Parent = game.CoreGui
  446. else
  447. gui.Parent = game.Players.LocalPlayer.PlayerGui
  448. end
  449. gui.Name = "ESP"
  450. gui.ResetOnSpawn = false
  451. local frame = Instance.new('Frame',gui)
  452. frame.Size = UDim2.new(0.2,0,0.3,0)
  453. frame.Position = UDim2.new(0,0,0.9,0)
  454. frame.BackgroundTransparency = 0.5
  455. frame.BackgroundColor3 = Color3.fromRGB(131,182,239)
  456. frame.BorderSizePixel = 4
  457. frame.BorderColor3 = Color3.fromRGB(66,134,244)
  458. frame.Active = true
  459. frame.Draggable = true
  460. local but = Instance.new('TextButton',frame)
  461. but.Text = "ESP On"
  462. but.TextColor3 = Color3.fromRGB(255,255,255)
  463. but.Size = UDim2.new(0.7,0,0.3,0)
  464. but.Position = UDim2.new(0.15,0,0.5,0)
  465. but.BorderSizePixel = 0
  466. but.TextScaled = true
  467. but.BackgroundColor3 = Color3.fromRGB(66,134,244)
  468. but.BackgroundTransparency = 0.4
  469. for i,v in pairs(game.Players:GetChildren()) do
  470. if v.Character ~= nil then
  471. undo(v.Character)
  472. end
  473. end
  474.  
  475. but.MouseButton1Down:connect(function()
  476. if but.Text == "ESP On" then
  477. but.Text = "ESP Off"
  478. on = true
  479. for i,v in pairs(game.Players:GetChildren()) do
  480. local cour = coroutine.wrap(function()
  481. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  482. if v.Character:FindFirstChild('Head') then
  483. local bill = Instance.new('BillboardGui',v.Character.Head)
  484. bill.Name = "thingyye"
  485. bill.AlwaysOnTop = true
  486. bill.Size = UDim2.new(2,1,2)
  487. bill.Adornee = v.Character.Head
  488. local txt = Instance.new('TextLabel',bill)
  489. txt.Text = v.Name
  490. txt.BackgroundTransparency = 1
  491. txt.Size = UDim2.new(1,0,1,0)
  492. txt.TextColor3 = v.TeamColor.Color
  493. end
  494. for a,c in pairs(v.Character:GetChildren()) do
  495. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  496. doit(c)
  497. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  498. doit(c)
  499. end
  500. end
  501. end
  502. end)
  503. cour()
  504. end
  505. else
  506. but.Text = "ESP On"
  507. on = false
  508. for i,v in pairs(game.Players:GetChildren()) do
  509. undo(v.Character)
  510. end
  511. end
  512. end)
  513.  
  514. for i,v in pairs(game.Players:GetChildren()) do
  515. v.CharacterAdded:connect(function()
  516. v.Character:WaitForChild('Head')
  517. wait(1)
  518. if on == true then
  519. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  520. local cour = coroutine.wrap(function()
  521. if v.Character:FindFirstChild('Head') then
  522. local bill = Instance.new('BillboardGui',v.Character.Head)
  523. bill.Name = "thingyye"
  524. bill.AlwaysOnTop = true
  525. bill.Size = UDim2.new(2,1,2)
  526. bill.Adornee = v.Character.Head
  527. local txt = Instance.new('TextLabel',bill)
  528. txt.Text = v.Name
  529. txt.BackgroundTransparency = 1
  530. txt.Size = UDim2.new(1,0,1,0)
  531. txt.TextColor3 = v.TeamColor.Color
  532. end
  533. for a,c in pairs(v.Character:GetChildren()) do
  534. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  535. doit(c)
  536. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  537. doit(c)
  538. end
  539. end
  540. end)
  541. cour()
  542. end
  543. end
  544. end)
  545. end
  546.  
  547. game.Players.PlayerAdded:connect(function(v)
  548. v.CharacterAdded:connect(function()
  549. v.Character:WaitForChild('Head')
  550. wait(1)
  551. if on == true then
  552. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  553. local cour = coroutine.wrap(function()
  554. if v.Character:FindFirstChild('Head') then
  555. local bill = Instance.new('BillboardGui',v.Character.Head)
  556. bill.Name = "thingyye"
  557. bill.AlwaysOnTop = true
  558. bill.Size = UDim2.new(2,1,2)
  559. bill.Adornee = v.Character.Head
  560. local txt = Instance.new('TextLabel',bill)
  561. txt.Text = v.Name
  562. txt.BackgroundTransparency = 1
  563. txt.Size = UDim2.new(1,0,1,0)
  564. txt.TextColor3 = v.TeamColor.Color
  565. end
  566. for a,c in pairs(v.Character:GetChildren()) do
  567. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  568. doit(c)
  569. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  570. doit(c)
  571. end
  572. end
  573. end)
  574. cour()
  575. end
  576. end
  577. end)
  578. end)
  579. end)
  580.  
  581. Madeby.Name = "Made by"
  582. Madeby.Parent = Menu
  583. Madeby.BackgroundColor3 = Color3.fromRGB(245, 128, 255)
  584. Madeby.BorderColor3 = Color3.fromRGB(245, 128, 255)
  585. Madeby.Position = UDim2.new(0, 0, 0.91922456, 0)
  586. Madeby.Size = UDim2.new(0, 789, 0, 50)
  587. Madeby.Font = Enum.Font.SourceSans
  588. Madeby.Text = "Discord: discord.gg/6kR7TAD - Made by OliHello#8986"
  589. Madeby.TextColor3 = Color3.fromRGB(0, 0, 0)
  590. Madeby.TextScaled = true
  591. Madeby.TextSize = 14.000
  592. Madeby.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement