Advertisement
ssssdsd1213

Untitled

Feb 17th, 2023
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.30 KB | None | 0 0
  1. local bbg = Instance.new("BillboardGui", espf)
  2. bbg.Name = player.Name
  3. bbg.AlwaysOnTop = true
  4. bbg.Size = UDim2.new(4,0,5.4,0)
  5. bbg.ClipsDescendants = false
  6.  
  7. local outlines = Instance.new("Frame", bbg)
  8. outlines.Size = UDim2.new(1,0,1,0)
  9. outlines.BorderSizePixel = 0
  10. outlines.BackgroundTransparency = 1
  11. local left = Instance.new("Frame", outlines)
  12. left.BorderSizePixel = 0
  13. left.Size = UDim2.new(0,1,1,0)
  14. local right = left:Clone()
  15. right.Parent = outlines
  16. right.Size = UDim2.new(0,-1,1,0)
  17. right.Position = UDim2.new(1,0,0,0)
  18. local up = left:Clone()
  19. up.Parent = outlines
  20. up.Size = UDim2.new(1,0,0,1)
  21. local down = left:Clone()
  22. down.Parent = outlines
  23. down.Size = UDim2.new(1,0,0,-1)
  24. down.Position = UDim2.new(0,0,1,0)
  25.  
  26. local info = Instance.new("BillboardGui", bbg)
  27. info.Name = "info"
  28. info.Size = UDim2.new(3,0,0,54)
  29. info.StudsOffset = Vector3.new(3.6,-3,0)
  30. info.AlwaysOnTop = true
  31. info.ClipsDescendants = false
  32. local namelabel = Instance.new("TextLabel", info)
  33. namelabel.Name = "namelabel"
  34. namelabel.BackgroundTransparency = 1
  35. namelabel.TextStrokeTransparency = 0
  36. namelabel.TextXAlignment = Enum.TextXAlignment.Left
  37. namelabel.Size = UDim2.new(0,100,0,18)
  38. namelabel.Position = UDim2.new(0,0,0,0)
  39. namelabel.Text = player.Name
  40. local distancel = Instance.new("TextLabel", info)
  41. distancel.Name = "distancelabel"
  42. distancel.BackgroundTransparency = 1
  43. distancel.TextStrokeTransparency = 0
  44. distancel.TextXAlignment = Enum.TextXAlignment.Left
  45. distancel.Size = UDim2.new(0,100,0,18)
  46. distancel.Position = UDim2.new(0,0,0,18)
  47. local healthl = Instance.new("TextLabel", info)
  48. healthl.Name = "healthlabel"
  49. healthl.BackgroundTransparency = 1
  50. healthl.TextStrokeTransparency = 0
  51. healthl.TextXAlignment = Enum.TextXAlignment.Left
  52. healthl.Size = UDim2.new(0,100,0,18)
  53. healthl.Position = UDim2.new(0,0,0,36)
  54.  
  55. local uill = Instance.new("UIListLayout", info)
  56.  
  57. local forhealth = Instance.new("BillboardGui", bbg)
  58. forhealth.Name = "forhealth"
  59. forhealth.Size = UDim2.new(5,0,6,0)
  60. forhealth.AlwaysOnTop = true
  61. forhealth.ClipsDescendants = false
  62.  
  63. local healthbar = Instance.new("Frame", forhealth)
  64. healthbar.Name = "healthbar"
  65. healthbar.BackgroundColor3 = Color3.fromRGB(40,40,40)
  66. healthbar.BorderColor3 = Color3.fromRGB(0,0,0)
  67. healthbar.Size = UDim2.new(0.04,0,0.9,0)
  68. healthbar.Position = UDim2.new(0,0,0.05,0)
  69. local bar = Instance.new("Frame", healthbar)
  70. bar.Name = "bar"
  71. bar.BorderSizePixel = 0
  72. bar.BackgroundColor3 = Color3.fromRGB(94,255,69)
  73. bar.AnchorPoint = Vector2.new(0,1)
  74. bar.Position = UDim2.new(0,0,1,0)
  75. bar.Size = UDim2.new(1,0,1,0)
  76.  
  77. local co = coroutine.create(function()
  78. while wait(0.1) do
  79. if (player.Character and player.Character:FindFirstChild"HumanoidRootPart") then
  80. bbg.Adornee = player.Character.HumanoidRootPart
  81. info.Adornee = player.Character.HumanoidRootPart
  82. forhealth.Adornee = player.Character.HumanoidRootPart
  83.  
  84. if (player.Team ~= localplayer.Team) then
  85. bbg.Enabled = true
  86. info.Enabled = true
  87. forhealth.Enabled = true
  88. end
  89. if player.Character:FindFirstChild("ForceField") then
  90. outlines.BackgroundTransparency = 0.4
  91. left.BackgroundTransparency = 0.4
  92. right.BackgroundTransparency = 0.4
  93. up.BackgroundTransparency = 0.4
  94. down.BackgroundTransparency = 0.4
  95. healthl.TextTransparency = 0.4
  96. healthl.TextStrokeTransparency = 0.8
  97. distancel.TextTransparency = 0.4
  98. distancel.TextStrokeTransparency = 0.8
  99. namelabel.TextTransparency = 0.4
  100. namelabel.TextStrokeTransparency = 0.8
  101. bar.BackgroundTransparency = 0.4
  102. healthbar.BackgroundTransparency = 0.8
  103. else
  104. outlines.BackgroundTransparency = 0
  105. left.BackgroundTransparency = 0
  106. right.BackgroundTransparency = 0
  107. up.BackgroundTransparency = 0
  108. down.BackgroundTransparency = 0
  109. healthl.TextTransparency = 0
  110. healthl.TextStrokeTransparency = 0
  111. distancel.TextTransparency = 0
  112. distancel.TextStrokeTransparency = 0
  113. namelabel.TextTransparency = 0
  114. namelabel.TextStrokeTransparency = 0
  115. bar.BackgroundTransparency = 0
  116. healthbar.BackgroundTransparency = 0
  117. end
  118. if cheats.b_b == true then
  119. outlines.Visible = true
  120. else
  121. outlines.Visible = false
  122. end
  123. if cheats.b_f == true then
  124. if player.Character:FindFirstChild("ForceField") then
  125. outlines.BackgroundTransparency = 0.9
  126. else
  127. outlines.BackgroundTransparency = cheats.b_f_t
  128. end
  129. else
  130. outlines.BackgroundTransparency = 1
  131. end
  132. if cheats.b_sh == true then
  133. if (player.Character:FindFirstChild"Humanoid") then
  134. healthl.Text = "Health: "..math.floor(player.Character:FindFirstChild"Humanoid".Health)
  135. healthbar.bar.Size = UDim2.new(1,0,player.Character:FindFirstChild"Humanoid".Health/player.Character:FindFirstChild"Humanoid".MaxHealth,0)
  136. end
  137. if cheats.b_ht == "Text" then
  138. healthbar.Visible = false
  139. healthl.Visible = true
  140. end
  141. if cheats.b_ht == "Bar" then
  142. healthl.Visible = false
  143. healthbar.Visible = true
  144. end
  145. if cheats.b_ht == "Both" then
  146. healthl.Visible = true
  147. healthbar.Visible = true
  148. end
  149. else
  150. healthl.Visible = false
  151. healthbar.Visible = false
  152. end
  153. if cheats.b_sn then
  154. namelabel.Visible = true
  155. else
  156. namelabel.Visible = false
  157. end
  158. if cheats.b_sd == true then
  159. distancel.Visible = true
  160. if (localplayer.Character and localplayer.Character:FindFirstChild"HumanoidRootPart") then
  161. distancel.Text = "Distance: "..math.floor(0.5+(localplayer.Character:FindFirstChild"HumanoidRootPart".Position - player.Character:FindFirstChild"HumanoidRootPart".Position).magnitude)
  162. end
  163. else
  164. distancel.Visible = false
  165. end
  166. if cheats.b_rt == true then
  167. if (player.Team == localplayer.Team) then
  168. bbg.Enabled = true
  169. info.Enabled = true
  170. forhealth.Enabled = true
  171. end
  172. else
  173. if (player.Team == localplayer.Team) then
  174. bbg.Enabled = false
  175. info.Enabled = false
  176. forhealth.Enabled = false
  177. end
  178. end
  179. if cheats.b_tc == true then
  180. outlines.BackgroundColor3 = player.TeamColor.Color
  181. left.BackgroundColor3 = player.TeamColor.Color
  182. right.BackgroundColor3 = player.TeamColor.Color
  183. up.BackgroundColor3 = player.TeamColor.Color
  184. down.BackgroundColor3 = player.TeamColor.Color
  185. healthl.TextColor3 = player.TeamColor.Color
  186. distancel.TextColor3 = player.TeamColor.Color
  187. namelabel.TextColor3 = player.TeamColor.Color
  188. else
  189. if (player.Team == localplayer.Team) then
  190. outlines.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  191. left.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  192. right.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  193. up.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  194. down.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  195. healthl.TextColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  196. distancel.TextColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  197. namelabel.TextColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
  198. else
  199. outlines.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  200. left.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  201. right.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  202. up.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  203. down.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  204. healthl.TextColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  205. distancel.TextColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  206. namelabel.TextColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
  207. end
  208. end
  209. end
  210. if not (game:GetService"Players":FindFirstChild(player.Name)) then
  211. print(player.Name.." has left. Clearing esp.")
  212. espf:FindFirstChild(player.Name):Destroy()
  213. coroutine.yield()
  214. end
  215. end
  216. end)
  217. coroutine.resume(co)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement