Blackdbfa

Untitled

Sep 27th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.88 KB | None | 0 0
  1. lp = game.Players.LocalPlayer
  2. script.Name = "VoidRing"
  3. repeat wait() until lp
  4. c = lp.StarterGear:GetChildren()
  5. hr = false
  6. for i= 1, #c do
  7. if c[i].Name == "VoidRing" then hr = true end end
  8. if hr == false then s = script:Clone() s.Parent = lp.StarterGear end
  9. mouse = lp:GetMouse()
  10. cam = game.Workspace.CurrentCamera
  11. repeat wait() until cam
  12. function loadring(name)
  13. -- 2 - VoidRing
  14. obj2 = Instance.new("Part")
  15. obj2.Anchored = true
  16. obj2.CanCollide = false
  17. obj2.CFrame = CFrame.new(Vector3.new(-62.5, 4.5, -42.5)) * CFrame.Angles(1.5707963705063, -0, -3.1415927410126)
  18. obj2.FormFactor = Enum.FormFactor.Plate
  19. obj2.Size = Vector3.new(1, 0.400000006, 1)
  20. obj2.BrickColor = BrickColor.new("Really black")
  21. obj2.Friction = 0.30000001192093
  22. obj2.Shape = Enum.PartType.Block
  23. obj2.Name = name .. "VoidRing"
  24. obj2.Parent = game.Workspace
  25. -- 3 - Mesh
  26. obj3 = Instance.new("SpecialMesh")
  27. obj3.MeshType = Enum.MeshType.FileMesh
  28. obj3.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  29. obj3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  30. obj3.Parent = obj2
  31. -- 4 - Fire
  32. obj4 = Instance.new("Fire", obj2)
  33. obj4.Color = Color3.new(0, 0, 0)
  34. obj4.SecondaryColor = Color3.new(0, 0, 0)
  35. obj4.Size = 4
  36. obj4.Heat = 3
  37. obj2:MakeJoints()
  38. return obj2
  39. end
  40. function loadshield(name)
  41. -- 2 - BlackHole
  42. obj2 = Instance.new("Part")
  43. obj2.Anchored = true
  44. obj2.CFrame = CFrame.new(Vector3.new(-61, 1000, -32.5)) * CFrame.Angles(3.1415927410126, -0, -3.1415927410126)
  45. obj2.Transparency = 0.20000000298023
  46. obj2.TopSurface = Enum.SurfaceType.Smooth
  47. obj2.BottomSurface = Enum.SurfaceType.Smooth
  48. obj2.Size = Vector3.new(42, 26.4000015, 4)
  49. obj2.BrickColor = BrickColor.new("Really black")
  50. obj2.Friction = 0.30000001192093
  51. obj2.Shape = Enum.PartType.Block
  52. obj2.Name = name .. "Shield"
  53. obj2.Parent = game.Workspace
  54. -- 3 - Mesh
  55. obj3 = Instance.new("SpecialMesh")
  56. obj3.MeshType = Enum.MeshType.Sphere
  57. obj3.Parent = obj2
  58. obj3.Scale = Vector3.new(1, 1, 0.25)
  59. end
  60. function tphole(pos, time, isplayer, deadly)
  61. obj2 = Instance.new("Part")
  62. if isplayer == true then
  63. obj2.CFrame = CFrame.new(0, 0, 0)
  64. obj2.Position = pos
  65. obj2.CFrame = obj2.CFrame * CFrame.Angles(math.pi / 2, 0, 0) + Vector3.new(0, -2.6, 0)
  66. else
  67. obj2.CFrame = CFrame.new(0, 0, 0)
  68. obj2.Position = pos
  69. obj2.CFrame = obj2.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  70. end
  71. obj2.TopSurface = Enum.SurfaceType.Smooth
  72. obj2.BottomSurface = Enum.SurfaceType.Smooth
  73. obj2.Size = Vector3.new(8, 8, 1)
  74. obj2.Anchored = true
  75. if deadly == true then
  76. obj2.BrickColor = BrickColor.new("Really red")
  77. else
  78. obj2.BrickColor = BrickColor.new("Really black")
  79. end
  80. obj2.Friction = 0.30000001192093
  81. obj2.Shape = Enum.PartType.Block
  82. obj2.Name = "BlackHole"
  83. obj2.Parent = game.Workspace
  84. -- 3 - Mesh
  85. obj3 = Instance.new("SpecialMesh")
  86. obj3.VertexColor = Vector3.new(0, 0, 0)
  87. obj3.Scale = Vector3.new(1, 1, 1)
  88. randc = math.random(1000000, 9999999)
  89. randc = coroutine.create(function()
  90. obj3.Scale = Vector3.new(0.1, 0.1, 0.1)
  91. random = math.random(1000000, 9999999)
  92. for random= 1, 10 do
  93. obj3.Scale = Vector3.new(0.1 * random, 0.1 * random, 0.1 * random) wait() end end)
  94. coroutine.resume(randc)
  95. obj3.MeshType = Enum.MeshType.Sphere
  96. obj3.Parent = obj2
  97. game:GetService("Debris"):AddItem(obj2, time)
  98. return obj2
  99. end
  100. loadring(lp.Name)
  101. wait()
  102. m = Instance.new("Message", cam)
  103. m.Text = "Launched Void Ring by Ethancomputermad"
  104. game:GetService("Debris"):AddItem(m, 5)
  105. ring = game.Workspace[lp.Name .. "VoidRing"]
  106. mover = true
  107. mr = coroutine.create(function() while true do wait() pcall(function() if mover == true then
  108. ring.CFrame = lp.Character["Right Arm"].CFrame * CFrame.Angles(math.pi / 2, 0, 0) * CFrame.new(0, 0, 0.9) end end) end end)
  109. coroutine.resume(mr)
  110. su = false
  111. hsu = false
  112. shield = nil
  113. ms = coroutine.create(function() while true do wait() pcall(function()
  114. shield.CFrame = lp.Character.Torso.CFrame * CFrame.new(0, 0, 0 - 10) end) end end)
  115. coroutine.resume(ms)
  116. shield = coroutine.create(function()
  117. while true do wait() if su == true then
  118. if hsu == false then hsu = true loadshield(lp.Name) wait() shield = game.Workspace[lp.Name .. "Shield"] shield.Mesh.Scale = Vector3.new(1, 1, 1)
  119. pcall(function() for i= 1, 20 do wait() shield.Mesh.Scale = Vector3.new(0.05 * i, 0.05 * i, 0.05 * i) end end) shield.Mesh.Scale = Vector3.new(1, 1, 1) end end end end)
  120. coroutine.resume(shield)
  121. st = coroutine.create(function() shield.Touched:connect(function(c)
  122. if c.Name == "Base" or c.Name:sub(1, #lp.Name) == lp.Name then else c:Destroy() end end) end)
  123. coroutine.resume(st)
  124. c = coroutine.create(function() while true do wait() w = game.Workspace:GetChildren() for i= 1, #w do
  125. pcall(function()
  126. if w[i].Name:sub(1, #lp.Name) == lp.Name then
  127. if w[i].Name:sub(#lp.Name + 1, #lp.Name) == "VoidRing" and w[i] ~= ring then
  128. w[i]:Destroy()
  129. elseif w[i].Name:sub(#lp.Name + 1, #lp.Name) == "Shield" and w[i] ~= sheild then
  130. w[i]:Destroy() end end end) end end end)
  131. coroutine.resume(c)
  132. shieldhotkey = 113
  133. tphotkey = 116
  134. killhotkey = 107
  135. ss = false pcall(function()
  136. if m.Text == "Launched Void Ring by Ethancomputermad" then else
  137. m.Text = "Plagiarism detected."
  138. game.Players.LocalPlayer.StarterGear.VoidRing:Destroy()
  139. script.Disabled = true
  140. end
  141. end)
  142. mouse.KeyDown:connect(function(k)
  143. key = string.byte(k)
  144. if key == shieldhotkey then
  145. print(ss)
  146. if ss == false then
  147. ss = true
  148. pcall(function() game.Workspace[lp.Name .. "Shield"]:Destroy() end)
  149. shield = loadshield(lp.Name)
  150. su = true
  151. else
  152. pcall(function() game.Workspace[lp.Name .. "Shield"]:Destroy() end)
  153. su = false
  154. hsu = false
  155. ss = false
  156. end
  157. end
  158. if key == tphotkey then
  159. m = mouse
  160. if m.Target == nil then return end
  161. if m.Target.Parent:FindFirstChild("Humanoid") == nil then
  162. rawtotp = m.Hit
  163. totp = rawtotp.p
  164. tphole(lp.Character.Torso.Position + Vector3.new(0, -2.6, 0), 0.7, false, false)
  165. wait(0.3)
  166. for i= 1, 10 do wait()
  167. lp.Character.Torso.Anchored = true
  168. lp.Character.Torso.CFrame = lp.Character.Torso.CFrame + Vector3.new(0, 0 - 0.6, 0)
  169. end
  170. lp.Character.Torso.CFrame = CFrame.new(rawtotp.X, rawtotp.Y, rawtotp.Z) + Vector3.new(0, -2, 0)
  171. tphole(totp, 0.7, false, false)
  172. wait(0.3)
  173. for i= 1, 20 do wait()
  174. lp.Character.Torso.Anchored = true
  175. lp.Character.Torso.CFrame = lp.Character.Torso.CFrame + Vector3.new(0, 0.3, 0)
  176. end
  177. lp.Character.Torso.Anchored = false
  178. else
  179. end
  180. end
  181. if key == killhotkey then
  182. m = mouse
  183. trgt = m.Target
  184. if trgt == nil then return end
  185. if trgt.Parent:FindFirstChild("Humanoid") == nil then return end
  186. if trgt.Parent:IsA("Workspace") then return end
  187. if game.Players:GetPlayerFromCharacter(trgt.Parent) == nil then else
  188. if game.Players:GetPlayerFromCharacter(trgt.Parent).Name == lp.Name then return end end
  189. if trgt.Parent:FindFirstChild("Torso") == nil then return end
  190. tphole(trgt.Parent.Torso.Position + Vector3.new(0, -2.6, 0), 0.7, false, true)
  191. wait(0.3)
  192. for i= 1, 15 do wait()
  193. trgt.Parent.Torso.Anchored = true
  194. trgt.Parent.Torso.CFrame = trgt.Parent.Torso.CFrame + Vector3.new(0, 0 - 0.6, 0)
  195. end
  196. trgt.Parent:BreakJoints()
  197. end
  198. end)
Add Comment
Please, Sign In to add comment