Axtem

Void Ring

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