Advertisement
MajourScripters

PointCoded's Dark Hero[Black Holes]

Mar 19th, 2016
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.85 KB | None | 0 0
  1. --[[Made By PointCoded]]--
  2. local Player = game.Players.LocalPlayer
  3. local Char = Player.Character
  4. local GUI = Player.PlayerGui
  5. local Hum = Char.Humanoid
  6. local Mouse = Player:GetMouse()
  7. local Torso = Char.Torso or nil
  8. local Head = Char.Head or nil
  9. local Head2 = Head:Clone()
  10. local Larm = Char["Left Arm"] or nil
  11. local Lleg = Char["Left Leg"] or nil
  12. local Rarm = Char["Right Arm"] or nil
  13. local v3 = Vector3.new
  14. local C = Instance.new("ObjectValue")
  15. C.Name = "creator"
  16. C.Parent = Char
  17. p= Char:GetChildren()
  18. for i= 1, #p do
  19. if p[i].className == "Hat" then
  20. p[i]:remove()
  21. end
  22. end
  23. local Rleg = Char["Right Leg"] or nil
  24. local h = Instance.new("Hat")
  25. local p = Instance.new("Part")
  26. Char["Body Colors"]:remove()
  27. h.Name = "Ultra-Fabulous Hair"
  28. p.Parent = h
  29. p.Position = Head.Position
  30. p.Name = "Handle"
  31. p.formFactor = 0
  32. p.Size = Vector3.new(2,2,2)
  33. p.BottomSurface = 0
  34. p.TopSurface = 0
  35. p.Locked = true
  36. h.Parent = Char
  37. p.BrickColor = BrickColor.new("Black")
  38. h.AttachmentPos = Vector3.new(0, 0, 0)
  39. local M = Instance.new("SpecialMesh")
  40. M.MeshId = "http://www.roblox.com/asset/?id=16627529"
  41. M.Parent = p
  42. wait()
  43. debounce = true
  44. Head.BrickColor = BrickColor.new("Pastel brown")
  45. Larm.BrickColor = BrickColor.new("Pastel brown")
  46. Rarm.BrickColor = BrickColor.new("Pastel brown")
  47. Hum.WalkSpeed = 25
  48. Hum.MaxHealth = 10000000
  49. wait(0.1)
  50. Hum.Health = 10000000
  51. Hum.JumpPower = 90
  52. p=Char:GetChildren()
  53. for i= 1, #p do
  54. if p[i].className == "Shirt" then
  55. p[i]:remove()
  56. end
  57. end
  58. p= Char:GetChildren()
  59. for i= 1, #p do
  60. if p[i].className == "Pants" then
  61. p[i]:remove()
  62. end
  63. end
  64. local Pants = Instance.new("Pants")
  65. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=186304820"
  66. Pants.Parent = Char
  67. local Shirt = Instance.new("Shirt")
  68. Shirt.Parent = Char
  69. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=184378363"
  70. function Point()
  71. local Point = Instance.new("Animation")
  72. Point.Parent = Char
  73. Point.Name = "Pointer"
  74. Point.AnimationId = "http://www.roblox.com/Asset/?ID=23480297"
  75. local Pointer=Hum:LoadAnimation(Char.Pointer)
  76. Pointer:Play()
  77. wait(2)
  78. Pointer:Stop()
  79. end
  80.  
  81. Meshes={}
  82. Meshes.SpikeBall = "9982590"
  83. Meshes.Diamond = "9756362"
  84.  
  85. function fire(v)
  86.  
  87.     local p = Instance.new("Part")
  88.  
  89.        
  90.  
  91.     local spawnPos = Torso.Position
  92.    
  93.  
  94.  
  95.     spawnPos  = spawnPos + (v * 8)
  96.  
  97.     p.Position = spawnPos
  98.     p.Size = Vector3.new(5,2,5)
  99.     p.CanCollide = false
  100.     p.Velocity = v * 200
  101.     p.Name = "Shot"
  102.     p.Transparency = 1
  103.     local D = Instance.new("Decal")
  104.     D.Parent = p
  105.     D.Texture = "http://www.roblox.com/asset/?id=43997508"
  106.     D.Face = "Top"
  107.     local D = Instance.new("Decal")
  108.     D.Parent = p
  109.     D.Texture = "http://www.roblox.com/asset/?id=43997508"
  110.     D.Face = "Bottom"
  111.     local force = Instance.new("BodyForce")
  112.     force.force = Vector3.new(0,130,0)
  113.     force.Parent = p
  114.     p.Parent = Char
  115. function onTouch(hit)
  116. if hit.Name == "Torso" or "Head" then
  117.  
  118. local humanoid = hit.Parent.Humanoid
  119. if humanoid.MaxHealth >100 then
  120. humanoid.MaxHealth = 100
  121. else
  122. if(hit.Parent:FindFirstChild("creator")==nil)then
  123. tagHumanoid(humanoid, Char.creator)
  124. humanoid.Parent.Torso.Position = p.Position
  125. humanoid.Parent.Head.Position = p.Position
  126. humanoid:TakeDamage(10000)
  127. p.Size = Vector3.new(p.Size.X - 2,p.Size.Y -1, p.Size.Z - 2)
  128. p.Position = Vector3.new(p.Position.X,p.Position.Y -1, p.Position.Z)
  129.  
  130. wait(2)
  131.  
  132. untagHumanoid(humanoid)
  133. end
  134. end
  135. end
  136. end
  137. p.Touched:connect(onTouch)
  138. function tagHumanoid(humanoid, creator)
  139. if creator ~= nil then
  140. local new_tag = creator:clone()
  141. new_tag.Parent = humanoid
  142.  
  143. end
  144. end
  145.  
  146. function untagHumanoid(humanoid)
  147. if humanoid ~= nil then
  148. local tag = humanoid:findFirstChild("creator")
  149. if tag ~= nil then
  150.  
  151. tag.Parent = nil
  152. end
  153. end
  154. end
  155. end
  156.  
  157. function BlackHole ()
  158. local p = Instance.new("Part")
  159. p.Parent = Char
  160. p.Name = "BH"
  161. p.Transparency = 1
  162. p.Size = Vector3.new(50,3,50)
  163. p.Anchored = true
  164. p.Position = Vector3.new(Char.Torso.Position.X + 3,Char.Torso.Position.Y, Char.Torso.Position.Z)
  165. p.CanCollide = false
  166. local D = Instance.new("Decal")
  167. D.Parent = p
  168. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  169. D.Face = "Top"
  170. local D = Instance.new("Decal")
  171. D.Parent = p
  172. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  173. D.Face = "Bottom"
  174.  
  175. function onTouch(hit)
  176. if hit.Name == "Torso" or "Head" then
  177.  
  178. local humanoid = hit.Parent.Humanoid
  179. if humanoid.MaxHealth >100 then
  180. humanoid.MaxHealth = 100
  181. else
  182. if(hit.Parent:FindFirstChild("creator")==nil)then
  183. tagHumanoid(humanoid, Char.creator)
  184. humanoid.Parent.Torso.Position = p.Position
  185. humanoid:TakeDamage(10000)
  186. p.Size = Vector3.new(p.Size.X - 2,p.Size.Y -1, p.Size.Z - 2)
  187. p.Position = Vector3.new(p.Position.X,p.Position.Y -1, p.Position.Z)
  188.  
  189. wait(2)
  190.  
  191. untagHumanoid(humanoid)
  192. end
  193. end
  194. end
  195. end
  196. p.Touched:connect(onTouch)
  197. function tagHumanoid(humanoid, creator)
  198. if creator ~= nil then
  199. local new_tag = creator:clone()
  200. new_tag.Parent = humanoid
  201.  
  202. end
  203. end
  204.  
  205. function untagHumanoid(humanoid)
  206. if humanoid ~= nil then
  207. local tag = humanoid:findFirstChild("creator")
  208. if tag ~= nil then
  209.  
  210. tag.Parent = nil
  211. end
  212. end
  213. end
  214.  
  215. while Char.BH do
  216. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0.2, math.rad(0),0)
  217. wait()
  218. end
  219. end
  220.  
  221. function BlackHole3 ()
  222. local p = Instance.new("Part")
  223. p.Parent = Char
  224. p.Name = "BH"
  225. p.Transparency = 1
  226. p.Size = Vector3.new(50,3,50)
  227. p.Anchored = true
  228. p.Position = Vector3.new(Char.Torso.Position.X + 3,Char.Torso.Position.Y, Char.Torso.Position.Z)
  229. p.CanCollide = false
  230. local D = Instance.new("Decal")
  231. D.Parent = p
  232. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  233. D.Face = "Top"
  234. local D = Instance.new("Decal")
  235. D.Parent = p
  236. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  237. D.Face = "Bottom"
  238. function onTouch(hit)
  239. if hit.Name == "Torso" or "Head" then
  240.  
  241. local humanoid = hit.Parent.Humanoid
  242. if humanoid.MaxHealth >100 then
  243. humanoid.MaxHealth = 100
  244. else
  245. if(hit.Parent:FindFirstChild("creator")==nil)then
  246. tagHumanoid(humanoid, Char.creator)
  247. humanoid.Parent.Torso.Position = p.Position
  248. humanoid:TakeDamage(10000)
  249. p.Size = Vector3.new(p.Size.X - 2,p.Size.Y -1, p.Size.Z - 2)
  250. p.Position = Vector3.new(p.Position.X,p.Position.Y -1, p.Position.Z)
  251.  
  252. wait(2)
  253.  
  254. untagHumanoid(humanoid)
  255. end
  256. end
  257. end
  258. end
  259. p.Touched:connect(onTouch)
  260. function tagHumanoid(humanoid, creator)
  261. if creator ~= nil then
  262. local new_tag = creator:clone()
  263. new_tag.Parent = humanoid
  264.  
  265. end
  266. end
  267.  
  268. function untagHumanoid(humanoid)
  269. if humanoid ~= nil then
  270. local tag = humanoid:findFirstChild("creator")
  271. if tag ~= nil then
  272.  
  273. tag.Parent = nil
  274. end
  275. end
  276. end
  277.  
  278. while Char.BH do
  279. p.Position = Vector3.new(p.Position.X,p.Position.Y - 0.2,p.Position.Z + 2)
  280. wait()
  281. end
  282. end
  283.  
  284. function BlackHole2 ()
  285. local p = Instance.new("Part")
  286. p.Parent = Char
  287. p.Name = "BH"
  288. p.Transparency = 1
  289. p.Size = Vector3.new(50,3,50)
  290. p.Anchored = true
  291. p.Position = Vector3.new(Char.Torso.Position.X + 3,Char.Torso.Position.Y, Char.Torso.Position.Z)
  292. p.CanCollide = false
  293. local D = Instance.new("Decal")
  294. D.Parent = p
  295. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  296. D.Face = "Top"
  297. local D = Instance.new("Decal")
  298. D.Parent = p
  299. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  300. D.Face = "Bottom"
  301. function onTouch(hit)
  302.  
  303. if hit.Name == "Torso" or "Head" then
  304.  
  305. local humanoid = hit.Parent.Humanoid
  306. if humanoid.MaxHealth >100 then
  307. humanoid.MaxHealth = 100
  308. else
  309. if(hit.Parent:FindFirstChild("creator")==nil)then
  310. tagHumanoid(humanoid, Char.creator)
  311. humanoid.Parent.Torso.Position = p.Position
  312. humanoid:TakeDamage(10000)
  313. p.Position = Vector3.new(p.Position.X,p.Position.Y -1, p.Position.Z)
  314.  
  315. wait(2)
  316.  
  317. untagHumanoid(humanoid)
  318. end
  319. end
  320. end
  321. end
  322. p.Touched:connect(onTouch)
  323. function tagHumanoid(humanoid, creator)
  324. if creator ~= nil then
  325. local new_tag = creator:clone()
  326. new_tag.Parent = humanoid
  327.  
  328. end
  329. end
  330.  
  331. function untagHumanoid(humanoid)
  332. if humanoid ~= nil then
  333. local tag = humanoid:findFirstChild("creator")
  334. if tag ~= nil then
  335.  
  336. tag.Parent = nil
  337. end
  338. end
  339. end
  340.  
  341. while Char.BH do
  342. p.Position = Vector3.new(p.Position.X + 2,p.Position.Y - 0.2,p.Position.Z)
  343. wait()
  344. end
  345. end
  346.  
  347. function BlackHole4 ()
  348. local p = Instance.new("Part")
  349. p.Parent = Char
  350. p.Name = "BH"
  351. p.Transparency = 1
  352. p.Size = Vector3.new(50,3,50)
  353. p.Anchored = true
  354. p.Position = Vector3.new(Char.Torso.Position.X + 3,Char.Torso.Position.Y, Char.Torso.Position.Z)
  355. p.CanCollide = false
  356. local D = Instance.new("Decal")
  357. D.Parent = p
  358. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  359. D.Face = "Top"
  360. local D = Instance.new("Decal")
  361. D.Parent = p
  362. D.Texture = "http://www.roblox.com/asset/?id=43997508"
  363. D.Face = "Bottom"
  364. function onTouch(hit)
  365. if hit.Name == "Torso" or "Head" then
  366.  
  367. local humanoid = hit.Parent.Humanoid
  368. if humanoid.MaxHealth >100 then
  369. humanoid.MaxHealth = 100
  370. else
  371. if(hit.Parent:FindFirstChild("creator")==nil)then
  372. tagHumanoid(humanoid, Char.creator)
  373. humanoid.Parent.Torso.Position = p.Position
  374. humanoid:TakeDamage(10000)
  375. p.Size = Vector3.new(p.Size.X - 2,p.Size.Y -1, p.Size.Z - 2)
  376. p.Position = Vector3.new(p.Position.X,p.Position.Y -1, p.Position.Z)
  377.  
  378. wait(2)
  379.  
  380. untagHumanoid(humanoid)
  381. end
  382. end
  383. end
  384. end
  385. p.Touched:connect(onTouch)
  386. function tagHumanoid(humanoid, creator)
  387. if creator ~= nil then
  388. local new_tag = creator:clone()
  389. new_tag.Parent = humanoid
  390.  
  391. end
  392. end
  393.  
  394. function untagHumanoid(humanoid)
  395. if humanoid ~= nil then
  396. local tag = humanoid:findFirstChild("creator")
  397. if tag ~= nil then
  398.  
  399. tag.Parent = nil
  400. end
  401. end
  402. end
  403.  
  404. while Char.BH do
  405. p.Position = Vector3.new(p.Position.X,p.Position.Y + 3,p.Position.Z)
  406. wait()
  407. end
  408. end
  409.  
  410. Mouse.KeyDown:connect(
  411. function(key)
  412. if key == "q" then
  413. Point()
  414. elseif key == "e" then
  415. BlackHole()
  416. elseif key =="r" then
  417. if Char.BH then
  418. Char.BH:remove()
  419. end
  420. elseif key == "t" then
  421. BlackHole2()
  422. elseif key == "y" then
  423. BlackHole3()
  424. elseif key == "u" then
  425. BlackHole4()
  426. elseif key == "p" then
  427.     local targetPos = Hum.TargetPoint
  428.     local lookAt = (targetPos - Char.Head.Position).unit
  429.  
  430.     fire(lookAt)
  431. end
  432. end)
  433.  
  434. while char.BH do
  435. char.BH:remove()
  436. wait(5)
  437. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement