MrExploiterIsTheGod

fdsfdsfsdfdsfsdfkewsoifhewiuhfewi

Mar 6th, 2021 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.35 KB | None | 0 0
  1. --// Made by Blissful#4992 - R15 Skeleton ESP
  2. --//Options:
  3. local Settings = {
  4. Color = Color3.fromRGB(255, 0, 0), -- Color of the lines of the skeleton
  5. Thickness = 2, -- Thickness of the lines of the Skeleton
  6. Transparency = 1, -- 1 Visible - 0 Not Visible
  7. AutoThickness = true -- Makes Thickness above futile, scales according to distance, good for less encumbered screen
  8. }
  9.  
  10. --//Locals, etc:
  11. local plr = game.Players.LocalPlayer
  12. local camera = game.Workspace.CurrentCamera
  13.  
  14. local function NewLine()
  15. local line = Drawing.new("Line")
  16. line.Visible = false
  17. line.From = Vector2.new(0, 0)
  18. line.To = Vector2.new(0, 0)
  19. line.Color = Settings.Color
  20. line.Thickness = Settings.Thickness
  21. line.Transparency = Settings.Transparency
  22. return line
  23. end
  24.  
  25. --//Separation: Main Function
  26.  
  27. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  28. local R15
  29. spawn(function()
  30. repeat wait() until v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil
  31. R15 = (v.Character.Humanoid.RigType == Enum.HumanoidRigType.R15) and true or false
  32. end)
  33.  
  34. local Spine = {}
  35. local SpineNames = {}
  36. local connecthead = NewLine()
  37.  
  38. local LLeg = {}
  39. local LLegNames = {}
  40. local connectlegleft = NewLine()
  41.  
  42. local RLeg = {}
  43. local RLegNames = {}
  44. local connectlegright = NewLine()
  45.  
  46. local LArm = {}
  47. local LArmNames = {}
  48. local connectarmleft = NewLine()
  49.  
  50. local RArm = {}
  51. local RArmNames = {}
  52. local connectarmright = NewLine()
  53.  
  54. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  55. if v:IsA("BasePart") and v.Transparency ~= 1 then
  56. if v.Name == "UpperTorso" or v.Name == "Torso" or v.Name == "HumanoidRootPart" or v.Name == "LowerTorso" then
  57. table.insert(SpineNames, v.Name)
  58. Spine[v.Name] = NewLine()
  59. end
  60. if v.Name == "LeftLeg" or v.Name == "LeftUpperLeg" or v.Name == "LeftLowerLeg" or v.Name == "LeftFoot" then
  61. table.insert(LLegNames, v.Name)
  62. LLeg[v.Name] = NewLine()
  63. end
  64. if v.Name == "RightLeg" or v.Name == "RightUpperLeg" or v.Name == "RightLowerLeg" or v.Name == "RightFoot" then
  65. table.insert(RLegNames, v.Name)
  66. RLeg[v.Name] = NewLine()
  67. end
  68. if v.Name == "LeftArm" or v.Name == "LeftUpperArm" or v.Name == "LeftLowerArm" or v.Name == "LeftHand" then
  69. table.insert(LArmNames, v.Name)
  70. LArm[v.Name] = NewLine()
  71. end
  72. if v.Name == "RightArm" or v.Name == "RightUpperArm" or v.Name == "RightLowerArm" or v.Name == "RightHand" then
  73. table.insert(RArmNames, v.Name)
  74. RArm[v.Name] = NewLine()
  75. end
  76. end
  77. end
  78.  
  79. local function ESP()
  80. local function ConnectLimbs(limb, root, connector)
  81. if v.Character:FindFirstChild(root) ~= nil and v.Character:FindFirstChild(limb) ~= nil then
  82. local pos1 = camera:WorldToViewportPoint(v.Character:FindFirstChild(root).Position)
  83. local pos2 = camera:WorldToViewportPoint(v.Character:FindFirstChild(limb).Position)
  84. connector.From = Vector2.new(pos1.X, pos1.Y)
  85. connector.To = Vector2.new(pos2.X, pos2.Y)
  86. end
  87. end
  88. local function Visibility(state)
  89. connecthead.Visible = state
  90. connectarmleft.Visible = state
  91. connectarmright.Visible = state
  92. connectlegleft.Visible = state
  93. connectlegright.Visible = state
  94. for u, x in pairs(Spine) do
  95. x.Visible = state
  96. end
  97. for u, x in pairs(LLeg) do
  98. x.Visible = state
  99. end
  100. for u, x in pairs(RLeg) do
  101. x.Visible = state
  102. end
  103. for u, x in pairs(LArm) do
  104. x.Visible = state
  105. end
  106. for u, x in pairs(RArm) do
  107. x.Visible = state
  108. end
  109. end
  110. local function Thickness(state)
  111. connecthead.Thickness = state
  112. connectarmleft.Thickness = state
  113. connectarmright.Thickness = state
  114. connectlegleft.Thickness = state
  115. connectlegright.Thickness = state
  116. for u, x in pairs(Spine) do
  117. x.Thickness = state
  118. end
  119. for u, x in pairs(LLeg) do
  120. x.Thickness = state
  121. end
  122. for u, x in pairs(RLeg) do
  123. x.Thickness = state
  124. end
  125. for u, x in pairs(LArm) do
  126. x.Thickness = state
  127. end
  128. for u, x in pairs(RArm) do
  129. x.Thickness = state
  130. end
  131. end
  132. local function Color(color)
  133. connecthead.Color = color
  134. connectarmleft.Color = color
  135. connectarmright.Color = color
  136. connectlegleft.Color = color
  137. connectlegright.Color = color
  138. for u, x in pairs(Spine) do
  139. x.Color = color
  140. end
  141. for u, x in pairs(LLeg) do
  142. x.Color = color
  143. end
  144. for u, x in pairs(RLeg) do
  145. x.Color = color
  146. end
  147. for u, x in pairs(LArm) do
  148. x.Color = color
  149. end
  150. for u, x in pairs(RArm) do
  151. x.Color = color
  152. end
  153. end
  154.  
  155. local connection
  156. connection = game:GetService("RunService").RenderStepped:Connect(function()
  157. if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v.Name ~= plr.Name and v.Character.Humanoid.Health > 0 then
  158. local pos, vis = camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  159. if vis then
  160. if R15 then
  161. local a = 0
  162. for u, x in pairs(Spine) do
  163. a=a+1
  164. if SpineNames[a+1] ~= nil and v.Character:FindFirstChild(SpineNames[a+1]) ~= nil and v.Character:FindFirstChild(SpineNames[a+1]).Position ~= nil then
  165. local pos1 = camera:WorldToViewportPoint(v.Character:FindFirstChild(SpineNames[a]).Position)
  166. local pos2 = camera:WorldToViewportPoint(v.Character:FindFirstChild(SpineNames[a+1]).Position)
  167. x.From = Vector2.new(pos1.X, pos1.Y)
  168. x.To = Vector2.new(pos2.X, pos2.Y)
  169. end
  170. end
  171. local b = 0
  172. for u, x in pairs(LArm) do
  173. b=b+1
  174. if LArmNames[b+1] ~= nil and v.Character:FindFirstChild(LArmNames[b+1]) ~= nil and v.Character:FindFirstChild(LArmNames[b+1]).Position ~= nil then
  175. local pos1 = camera:WorldToViewportPoint(v.Character:FindFirstChild(LArmNames[b]).Position)
  176. local pos2 = camera:WorldToViewportPoint(v.Character:FindFirstChild(LArmNames[b+1]).Position)
  177. x.From = Vector2.new(pos1.X, pos1.Y)
  178. x.To = Vector2.new(pos2.X, pos2.Y)
  179. end
  180. end
  181. local c = 0
  182. for u, x in pairs(RArm) do
  183. c=c+1
  184. if RArmNames[c+1] ~= nil and v.Character:FindFirstChild(RArmNames[c+1]) ~= nil and v.Character:FindFirstChild(RArmNames[c+1]).Position ~= nil then
  185. local pos1 = camera:WorldToViewportPoint(v.Character:FindFirstChild(RArmNames[c]).Position)
  186. local pos2 = camera:WorldToViewportPoint(v.Character:FindFirstChild(RArmNames[c+1]).Position)
  187. x.From = Vector2.new(pos1.X, pos1.Y)
  188. x.To = Vector2.new(pos2.X, pos2.Y)
  189. end
  190. end
  191. local d = 0
  192. for u, x in pairs(LLeg) do
  193. d=d+1
  194. if LLegNames[d+1] ~= nil and v.Character:FindFirstChild(LLegNames[d+1]) ~= nil and v.Character:FindFirstChild(LLegNames[d+1]).Position ~= nil then
  195. local pos1 = camera:WorldToViewportPoint(v.Character:FindFirstChild(LLegNames[d]).Position)
  196. local pos2 = camera:WorldToViewportPoint(v.Character:FindFirstChild(LLegNames[d+1]).Position)
  197. x.From = Vector2.new(pos1.X, pos1.Y)
  198. x.To = Vector2.new(pos2.X, pos2.Y)
  199. end
  200. end
  201. local e = 0
  202. for u, x in pairs(RLeg) do
  203. e=e+1
  204. if RRLegNames[e+1] ~= nil and v.Character:FindFirstChild(RLegNames[e+1]) ~= nil and v.Character:FindFirstChild(RLegNames[e+1]).Position ~= nil then
  205. local pos1 = camera:WorldToViewportPoint(v.Character:FindFirstChild(RLegNames[e]).Position)
  206. local pos2 = camera:WorldToViewportPoint(v.Character:FindFirstChild(RLegNames[e+1]).Position)
  207. x.From = Vector2.new(pos1.X, pos1.Y)
  208. x.To = Vector2.new(pos2.X, pos2.Y)
  209. end
  210. end
  211.  
  212. ConnectLimbs("LeftUpperArm", "UpperTorso", connectarmleft)
  213. ConnectLimbs("RightUpperArm", "UpperTorso", connectarmright)
  214. ConnectLimbs("LeftUpperLeg", "LowerTorso", connectlegleft)
  215. ConnectLimbs("RightUpperLeg", "LowerTorso", connectlegright)
  216. ConnectLimbs("UpperTorso", "Head", connecthead)
  217. end
  218.  
  219. if Settings.AutoThickness then
  220. local distance = (plr.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
  221. local value = math.clamp(1/distance*100, 0.1, 3) --0.1 is min thickness, 4 is max
  222. Thickness(value)
  223. else
  224. Thickness(Settings.Thickness)
  225. end
  226.  
  227. Visibility(true)
  228. else
  229. Visibility(false)
  230. end
  231. else
  232. Visibility(false)
  233. if game.Players:FindFirstChild(v.Name) == nil then
  234. connection:Disconnect()
  235. end
  236. end
  237. end)
  238. end
  239. coroutine.wrap(ESP)()
  240. end
  241.  
  242. --// Made by Blissful#4992
  243.  
  244. -- For when a player gets added:
  245. game.Players.PlayerAdded:Connect(function(newplr)
  246. repeat wait() until newplr.Character ~= nil and newplr.Character:FindFirstChild("Humanoid") ~= nil and newplr.Character:FindFirstChild("HumanoidRootPart") ~= nil
  247. local R15 = (newplr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15) and true or false
  248.  
  249. local Spine = {}
  250. local SpineNames = {}
  251. local connecthead = NewLine()
  252.  
  253. local LLeg = {}
  254. local LLegNames = {}
  255. local connectlegleft = NewLine()
  256.  
  257. local RLeg = {}
  258. local RLegNames = {}
  259. local connectlegright = NewLine()
  260.  
  261. local LArm = {}
  262. local LArmNames = {}
  263. local connectarmleft = NewLine()
  264.  
  265. local RArm = {}
  266. local RArmNames = {}
  267. local connectarmright = NewLine()
  268.  
  269. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  270. if v:IsA("BasePart") and v.Transparency ~= 1 then
  271. if v.Name == "UpperTorso" or v.Name == "Torso" or v.Name == "HumanoidRootPart" or v.Name == "LowerTorso" then
  272. table.insert(SpineNames, v.Name)
  273. Spine[v.Name] = NewLine()
  274. end
  275. if v.Name == "LeftLeg" or v.Name == "LeftUpperLeg" or v.Name == "LeftLowerLeg" or v.Name == "LeftFoot" then
  276. table.insert(LLegNames, v.Name)
  277. LLeg[v.Name] = NewLine()
  278. end
  279. if v.Name == "RightLeg" or v.Name == "RightUpperLeg" or v.Name == "RightLowerLeg" or v.Name == "RightFoot" then
  280. table.insert(RLegNames, v.Name)
  281. RLeg[v.Name] = NewLine()
  282. end
  283. if v.Name == "LeftArm" or v.Name == "LeftUpperArm" or v.Name == "LeftLowerArm" or v.Name == "LeftHand" then
  284. table.insert(LArmNames, v.Name)
  285. LArm[v.Name] = NewLine()
  286. end
  287. if v.Name == "RightArm" or v.Name == "RightUpperArm" or v.Name == "RightLowerArm" or v.Name == "RightHand" then
  288. table.insert(RArmNames, v.Name)
  289. RArm[v.Name] = NewLine()
  290. end
  291. end
  292. end
  293.  
  294.  
  295. local function ESP()
  296. local function ConnectLimbs(limb, root, connector)
  297. if newplr.Character:FindFirstChild(root) ~= nil and newplr.Character:FindFirstChild(limb) ~= nil then
  298. local pos1 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(root).Position)
  299. local pos2 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(limb).Position)
  300. connector.From = Vector2.new(pos1.X, pos1.Y)
  301. connector.To = Vector2.new(pos2.X, pos2.Y)
  302. end
  303. end
  304. local function Visibility(state)
  305. connecthead.Visible = state
  306. connectarmleft.Visible = state
  307. connectarmright.Visible = state
  308. connectlegleft.Visible = state
  309. connectlegright.Visible = state
  310. for u, x in pairs(Spine) do
  311. x.Visible = state
  312. end
  313. for u, x in pairs(LLeg) do
  314. x.Visible = state
  315. end
  316. for u, x in pairs(RLeg) do
  317. x.Visible = state
  318. end
  319. for u, x in pairs(LArm) do
  320. x.Visible = state
  321. end
  322. for u, x in pairs(RArm) do
  323. x.Visible = state
  324. end
  325. end
  326. local function Thickness(state)
  327. connecthead.Thickness = state
  328. connectarmleft.Thickness = state
  329. connectarmright.Thickness = state
  330. connectlegleft.Thickness = state
  331. connectlegright.Thickness = state
  332. for u, x in pairs(Spine) do
  333. x.Thickness = state
  334. end
  335. for u, x in pairs(LLeg) do
  336. x.Thickness = state
  337. end
  338. for u, x in pairs(RLeg) do
  339. x.Thickness = state
  340. end
  341. for u, x in pairs(LArm) do
  342. x.Thickness = state
  343. end
  344. for u, x in pairs(RArm) do
  345. x.Thickness = state
  346. end
  347. end
  348. local function Color(color)
  349. connecthead.Color = color
  350. connectarmleft.Color = color
  351. connectarmright.Color = color
  352. connectlegleft.Color = color
  353. connectlegright.Color = color
  354. for u, x in pairs(Spine) do
  355. x.Color = color
  356. end
  357. for u, x in pairs(LLeg) do
  358. x.Color = color
  359. end
  360. for u, x in pairs(RLeg) do
  361. x.Color = color
  362. end
  363. for u, x in pairs(LArm) do
  364. x.Color = color
  365. end
  366. for u, x in pairs(RArm) do
  367. x.Color = color
  368. end
  369. end
  370.  
  371. local connection
  372. connection = game:GetService("RunService").RenderStepped:Connect(function()
  373. if newplr.Character ~= nil and newplr.Character:FindFirstChild("Humanoid") ~= nil and newplr.Character:FindFirstChild("HumanoidRootPart") ~= nil and newplr.Name ~= plr.Name and newplr.Character.Humanoid.Health > 0 then
  374. local pos, vis = camera:WorldToViewportPoint(newplr.Character.HumanoidRootPart.Position)
  375. if vis then
  376. if R15 then
  377. local a = 0
  378. for u, x in pairs(Spine) do
  379. a=a+1
  380. if SpineNames[a+1] ~= nil and newplr.Character:FindFirstChild(SpineNames[a+1]) ~= nil and newplr.Character:FindFirstChild(SpineNames[a+1]).Position ~= nil then
  381. local pos1 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(SpineNames[a]).Position)
  382. local pos2 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(SpineNames[a+1]).Position)
  383. x.From = Vector2.new(pos1.X, pos1.Y)
  384. x.To = Vector2.new(pos2.X, pos2.Y)
  385. end
  386. end
  387. local b = 0
  388. for u, x in pairs(LArm) do
  389. b=b+1
  390. if LArmNames[b+1] ~= nil and newplr.Character:FindFirstChild(LArmNames[b+1]) ~= nil and newplr.Character:FindFirstChild(LArmNames[b+1]).Position ~= nil then
  391. local pos1 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(LArmNames[b]).Position)
  392. local pos2 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(LArmNames[b+1]).Position)
  393. x.From = Vector2.new(pos1.X, pos1.Y)
  394. x.To = Vector2.new(pos2.X, pos2.Y)
  395. end
  396. end
  397. local c = 0
  398. for u, x in pairs(RArm) do
  399. c=c+1
  400. if RArmNames[c+1] ~= nil and newplr.Character:FindFirstChild(RArmNames[c+1]) ~= nil and newplr.Character:FindFirstChild(RArmNames[c+1]).Position ~= nil then
  401. local pos1 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(RArmNames[c]).Position)
  402. local pos2 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(RArmNames[c+1]).Position)
  403. x.From = Vector2.new(pos1.X, pos1.Y)
  404. x.To = Vector2.new(pos2.X, pos2.Y)
  405. end
  406. end
  407. local d = 0
  408. for u, x in pairs(LLeg) do
  409. d=d+1
  410. if LLegNames[d+1] ~= nil and newplr.Character:FindFirstChild(LLegNames[d+1]) ~= nil and newplr.Character:FindFirstChild(LLegNames[d+1]).Position ~= nil then
  411. local pos1 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(LLegNames[d]).Position)
  412. local pos2 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(LLegNames[d+1]).Position)
  413. x.From = Vector2.new(pos1.X, pos1.Y)
  414. x.To = Vector2.new(pos2.X, pos2.Y)
  415. end
  416. end
  417. local e = 0
  418. for u, x in pairs(RLeg) do
  419. e=e+1
  420. if RLegNames[e+1] ~= nil and newplr.Character:FindFirstChild(RLegNames[e+1]) ~= nil and newplr.Character:FindFirstChild(RLegNames[e+1]).Position ~= nil then
  421. local pos1 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(RLegNames[e]).Position)
  422. local pos2 = camera:WorldToViewportPoint(newplr.Character:FindFirstChild(RLegNames[e+1]).Position)
  423. x.From = Vector2.new(pos1.X, pos1.Y)
  424. x.To = Vector2.new(pos2.X, pos2.Y)
  425. end
  426. end
  427.  
  428. ConnectLimbs("LeftUpperArm", "UpperTorso", connectarmleft)
  429. ConnectLimbs("RightUpperArm", "UpperTorso", connectarmright)
  430. ConnectLimbs("LeftUpperLeg", "LowerTorso", connectlegleft)
  431. ConnectLimbs("RightUpperLeg", "LowerTorso", connectlegright)
  432. ConnectLimbs("UpperTorso", "Head", connecthead)
  433. end
  434.  
  435. if Settings.AutoThickness then
  436. local distance = (plr.Character.HumanoidRootPart.Position - newplr.Character.HumanoidRootPart.Position).magnitude
  437. local value = math.clamp(1/distance*100, 0.1, 3) --0.1 is min thickness, 4 is max
  438. Thickness(value)
  439. else
  440. Thickness(Settings.Thickness)
  441. end
  442.  
  443. Visibility(true)
  444. else
  445. Visibility(false)
  446. end
  447. else
  448. Visibility(false)
  449. if game.Players:FindFirstChild(newplr.Name) == nil then
  450. connection:Disconnect()
  451. end
  452. end
  453. end)
  454. end
  455. coroutine.wrap(ESP)()
  456. end)
  457. --// Made by Blissful#4992
Add Comment
Please, Sign In to add comment