Advertisement
SmokeDelsin

Untitled

Jan 2nd, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.85 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 = false
  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. game.Players.LocalPlayer.StarterGear.VoidRing:Destroy()
  138. script.Disabled = true
  139. end
  140. end)
  141. mouse.KeyDown:connect(function(k)
  142. key = string.byte(k)
  143. if key == shieldhotkey then
  144. print(ss)
  145. if ss == false then
  146. ss = true
  147. pcall(function() game.Workspace[lp.Name .. "Shield"]:Destroy() end)
  148. shield = loadshield(lp.Name)
  149. su = true
  150. else
  151. pcall(function() game.Workspace[lp.Name .. "Shield"]:Destroy() end)
  152. su = false
  153. hsu = false
  154. ss = false
  155. end
  156. end
  157. if key == tphotkey then
  158. m = mouse
  159. if m.Target == nil then return end
  160. if m.Target.Parent:FindFirstChild("Humanoid") == nil then
  161. rawtotp = m.Hit
  162. totp = rawtotp.p
  163. tphole(lp.Character.Torso.Position + Vector3.new(0, -2.6, 0), 0.7, false, false)
  164. wait(0.3)
  165. for i= 1, 10 do wait()
  166. lp.Character.Torso.Anchored = true
  167. lp.Character.Torso.CFrame = lp.Character.Torso.CFrame + Vector3.new(0, 0 - 0.6, 0)
  168. end
  169. lp.Character.Torso.CFrame = CFrame.new(rawtotp.X, rawtotp.Y, rawtotp.Z) + Vector3.new(0, -2, 0)
  170. tphole(totp, 0.7, false, false)
  171. wait(0.3)
  172. for i= 1, 20 do wait()
  173. lp.Character.Torso.Anchored = true
  174. lp.Character.Torso.CFrame = lp.Character.Torso.CFrame + Vector3.new(0, 0.3, 0)
  175. end
  176. lp.Character.Torso.Anchored = false
  177. else
  178. end
  179. end
  180. if key == killhotkey then
  181. m = mouse
  182. trgt = m.Target
  183. if trgt == nil then return end
  184. if trgt.Parent:FindFirstChild("Humanoid") == nil then return end
  185. if trgt.Parent:IsA("Workspace") then return end
  186. if game.Players:GetPlayerFromCharacter(trgt.Parent) == nil then else
  187. if game.Players:GetPlayerFromCharacter(trgt.Parent).Name == lp.Name then return end end
  188. if trgt.Parent:FindFirstChild("Torso") == nil then return end
  189. tphole(trgt.Parent.Torso.Position + Vector3.new(0, -2.6, 0), 0.7, false, true)
  190. wait(0.3)
  191. for i= 1, 15 do wait()
  192. trgt.Parent.Torso.Anchored = true
  193. trgt.Parent.Torso.CFrame = trgt.Parent.Torso.CFrame + Vector3.new(0, 0 - 0.6, 0)
  194. end
  195. trgt.Parent:BreakJoints()
  196. end
  197. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement