Advertisement
dylan12312

Untitled

Mar 1st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. local sound = Instance.new("Sound")
  2. sound.Name = 'WaveAdmin'
  3. sound.SoundId = "http://www.roblox.com/asset?id=1351892282"
  4. sound.Volume = 5
  5. sound.Looped = true
  6. sound:Play()
  7. sound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  8. local p = game.Players.LocalPlayer
  9. player = p
  10. local char = p.Character
  11. local mouse = p:GetMouse()
  12. local larm = char["Left Arm"]
  13. local rarm = char["Right Arm"]
  14. local lleg = char["Left Leg"]
  15. local rleg = char["Right Leg"]
  16. local hed = char.Head
  17. local torso = char.Torso
  18. local hum = char.Humanoid
  19. local cam = game.Workspace.CurrentCamera
  20. local root = char.HumanoidRootPart
  21. local deb = false
  22. local shot = 0
  23. local rs = game:GetService("RunService").RenderStepped
  24. local stanceToggle = "Landed"
  25. local animpose = "Landed"
  26. local lastanimpose = "Landed"
  27. math.randomseed(os.time())
  28.  
  29. for i, v in pairs(char:children()) do
  30. if v:IsA("Hat") then
  31. v:Destroy()
  32. end
  33. end
  34.  
  35. Debounces = {
  36. CanAttack = true,
  37. CanJoke = true,
  38. on = false,
  39. NoIdl = false,
  40. Slashing = false,
  41. Slashed = false,
  42. Reaping = false,
  43. Reaped = false,
  44. Invisible = false
  45. }
  46. local Touche = {
  47. char.Name
  48. }
  49. function Magik()
  50. Spawn(function()
  51. if Debounces.Invisible == false then
  52. local lerp = function(a, b, c)
  53. return a + (b - a) * c
  54. end
  55. local rndRange = function(rng)
  56. return math.random(-rng * 1000, rng * 1000) / 1000
  57. end
  58. local magik = Instance.new("Part", larm)
  59. local Colors = {
  60. "Really red",
  61. "Really black"
  62. }
  63. magik.Anchored = true
  64. magik.Locked = true
  65. magik.FormFactor = "Custom"
  66. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  67. magik.TopSurface = "Smooth"
  68. magik.Transparency = 0
  69. magik.BottomSurface = "Smooth"
  70. magik.CanCollide = false
  71. magik.BrickColor = BrickColor.new(Colors[math.random(1, #Colors)])
  72. local mr = math.rad
  73. local rnx, rny, rnz = mr(rndRange(180)), mr(rndRange(180)), mr(rndRange(180))
  74. local cf = larm.CFrame * CFrame.new(0, -0.8, 0) * CFrame.Angles(rnx, rny, rnz)
  75. magik.CFrame = cf
  76. for i = 0, 1, 0.05 do
  77. local newTrans = lerp(0.5, 1, i)
  78. local ns = lerp(1, 1.2, i)
  79. magik.Transparency = newTrans
  80. magik.Size = Vector3.new(ns, ns, ns)
  81. magik.CFrame = cf
  82. rs:wait()
  83. end
  84. magik:Destroy()
  85. elseif Debounces.Invisible == true then
  86. wait()
  87. end
  88. end)
  89. end
  90. function Orb()
  91. local Head = char.Head
  92. local DistanceAway = 4
  93. local Speed = 2.4
  94. local YNum = 0
  95. local MaxY = 0.5
  96. local MinY = -0.5
  97. local Up = true
  98. local Colours = {
  99. {
  100. X = 0.1,
  101. Y = 0,
  102. Z = 0
  103. },
  104. {
  105. X = 0.6,
  106. Y = 0,
  107. Z = 0
  108. }
  109. }
  110. function Run(Func)
  111. local Ok, Err = coroutine.resume(coroutine.create(Func))
  112. if not Ok then
  113. print(Err)
  114. end
  115. end
  116. local Part = Instance.new("Part")
  117. Part.BrickColor = BrickColor.new("Really Red")
  118. Part.FormFactor = "Custom"
  119. Part.Size = Vector3.new(1, 1, 1)
  120. Part.Archivable = true
  121. Part.CanCollide = false
  122. Part.Locked = true
  123. Part.Position = Head.Position
  124. Part.Anchored = true
  125. Part.Name = "Orb"
  126. Part.TopSurface = "Smooth"
  127. Part.BottomSurface = "Smooth"
  128. Part.Parent = char
  129. local Mesh = Instance.new("SpecialMesh", Part)
  130. Mesh.MeshId = "rbxassetid://1185246"
  131. Mesh.TextureId = "rbxassetid://230806497"
  132. Mesh.Scale = Part.Size * 1.5
  133. Mesh.VertexColor = Vector3.new(0, 0, 0)
  134. local Emitter = Instance.new("ParticleEmitter", Part)
  135. local color1 = Color3.new(1, 0, 0)
  136. local color2 = Color3.new(0, 0, 0)
  137. Emitter.Color = ColorSequence.new(color1, color2)
  138. Emitter.Size = NumberSequence.new(0.8)
  139. Emitter.Texture = "rbxassetid://569507471"
  140. Emitter.Lifetime = NumberRange.new(1)
  141. Emitter.Rate = 200
  142. Emitter.Rotation = NumberRange.new(720)
  143. Emitter.RotSpeed = NumberRange.new(140)
  144. Emitter.Speed = NumberRange.new(0)
  145. Run(function()
  146. local ColorNum = 2
  147. local Iter = 2
  148. local CurrentX = 0
  149. local CurrentY = 0
  150. local CurrentZ = 0
  151. for i = 1, math.huge / 0.05 do
  152. if Part.Parent ~= nil then
  153. local PrevColTab = Colours[ColorNum - 1] or Colours[#Colours]
  154. local ColTab = Colours[ColorNum]
  155. if tostring(CurrentX) ~= tostring(ColTab.X) then
  156. CurrentX = 0 < ColTab.X - PrevColTab.X and CurrentX + 0.01 or Iter <= 1.01 and 0.2 or CurrentX - 0.01
  157. end
  158. if tostring(CurrentY) ~= tostring(ColTab.Y) then
  159. CurrentY = 0 < ColTab.Y - PrevColTab.Y and CurrentY + 0.01 or Iter <= 1.01 and 0 or CurrentY - 0.01
  160. end
  161. if tostring(CurrentZ) ~= tostring(ColTab.Z) then
  162. CurrentZ = 0 < ColTab.Z - PrevColTab.Z and CurrentZ + 0.01 or Iter <= 1.01 and 0 or CurrentZ - 0.01
  163. end
  164. Mesh.VertexColor = Vector3.new(CurrentX, CurrentY, CurrentZ)
  165. if Iter < 1.01 or Iter > 2 then
  166. ColorNum = ColorNum == #Colours and 1 or ColorNum + 1
  167. Iter = 2
  168. else
  169. Iter = Iter - 0.01
  170. end
  171. game:GetService("RunService").RenderStepped:wait()
  172. else
  173. break
  174. end
  175. end
  176. end)
  177. Run(function()
  178. game:GetService("RunService").RenderStepped:connect(function()
  179. if char:findFirstChild("Torso") then
  180. local TorCF = char.Torso.CFrame
  181. local currentPos = Part.CFrame.p
  182. local X = math.sin(math.rad(360) + time() / Speed) * DistanceAway
  183. local Z = math.cos(math.rad(360) + time() / Speed) * DistanceAway / 2
  184. local Y = 0.002
  185. if YNum > MaxY then
  186. Up = false
  187. elseif YNum < MinY then
  188. Up = true
  189. end
  190. if Up == false then
  191. Y = -Y
  192. end
  193. YNum = YNum + Y
  194. local endPos = (TorCF * CFrame.new(X, 0, Z)).p
  195. local movePos = (endPos - currentPos) * 0.25
  196. currentPos = currentPos + movePos
  197. Part.CFrame = CFrame.new(currentPos + Vector3.new(0, YNum, 0), TorCF.p)
  198. end
  199. end)
  200. end)
  201. end
  202. Orb()
  203. function Singularity()
  204. pt = Instance.new("Part")
  205. pt.Parent = char
  206. pt.Name = "Singularity"
  207. pt.BrickColor = BrickColor.new("Really black")
  208. pt.Size = Vector3.new(1.8, 1, 1.8)
  209. ptmesh = Instance.new("CylinderMesh", pt)
  210. ptmesh.Scale = Vector3.new(1.8, 0.1, 1.8)
  211. ptweld = Instance.new("Weld", pt)
  212. ptweld.Part0 = larm
  213. ptweld.Part1 = pt
  214. ptweld.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  215. ptweld.C1 = CFrame.new(0, 0, 0)
  216. local childList = {}
  217. local childSize = {}
  218. local massConstant = 1
  219. mass = 24000 * massConstant
  220. function cross(v1, v2)
  221. return Vector3.new(v1.y * v2.z - v2.y * v1.z, v1.z * v2.x - v1.x * v2.z, v1.x * v2.y - v2.x * v1.y)
  222. end
  223. local min = 0
  224. local max = 4
  225. while true do
  226. repeat
  227. wait()
  228. local n = 0
  229. while true do
  230. if n % 800 == 0 then
  231. wait()
  232. end
  233. n = n + 1
  234. local child = childList[n]
  235. if child ~= pt and child.Parent ~= char and child.Parent ~= char.Wings and child.Parent ~= char.Scythe and child.cl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement