Advertisement
nicholasXPG

Untitled

Oct 8th, 2016
25,996
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.14 KB | None | 0 0
  1.  
  2. wait(0.016666666666667)
  3. Effects = {}
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. local mouse = Player:GetMouse()
  8. local m = Instance.new("Model", Character)
  9. m.Name = "WeaponModel"
  10. local LeftArm = Character["Left Arm"]
  11. local RightArm = Character["Right Arm"]
  12. local LeftLeg = Character["Left Leg"]
  13. local RightLeg = Character["Right Leg"]
  14. local Head = Character.Head
  15. local Torso = Character.Torso
  16. local cam = game.Workspace.CurrentCamera
  17. local RootPart = Character.HumanoidRootPart
  18. local RootJoint = RootPart.RootJoint
  19. local equipped = false
  20. local attack = false
  21. local Anim = "Idle"
  22. local idle = 0
  23. local attacktype = 1
  24. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  25. local velocity = RootPart.Velocity.y
  26. local sine = 0
  27. local change = 1
  28. local grabbed = false
  29. local cf = CFrame.new
  30. local mr = math.rad
  31. local angles = CFrame.Angles
  32. local ud = UDim2.new
  33. local vt = Vector3.new
  34. local c3 = Color3.new
  35. local mana = 0
  36. local mananum = 0
  37. local it = Instance.new
  38. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  39. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  40. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  41. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  42. xenabled = true
  43. cenabled = true
  44. venabled = true
  45. zenabled = true
  46. RSH = nil
  47. RW = Instance.new("Weld")
  48. LW = Instance.new("Weld")
  49. RH = Torso["Right Hip"]
  50. LH = Torso["Left Hip"]
  51. RSH = Torso["Right Shoulder"]
  52. LSH = Torso["Left Shoulder"]
  53. RSH.Parent = nil
  54. LSH.Parent = nil
  55. RW.Name = "RW"
  56. RW.Part0 = Torso
  57. RW.C0 = cf(1.5, 0.5, 0)
  58. RW.C1 = cf(0, 0.5, 0)
  59. RW.Part1 = RightArm
  60. RW.Parent = Torso
  61. LW.Name = "LW"
  62. LW.Part0 = Torso
  63. LW.C0 = cf(-1.5, 0.5, 0)
  64. LW.C1 = cf(0, 0.5, 0)
  65. LW.Part1 = LeftArm
  66. LW.Parent = Torso
  67. clerp = function(a, b, t)
  68. return a:lerp(b, t)
  69. end
  70.  
  71.  
  72. ----------------------------------------------------
  73. z = Instance.new("Sound", Character)
  74. z.SoundId = "rbxassetid://428255459"--
  75. z.Looped = true
  76. z.Pitch = 1
  77. z.Volume = 1
  78. wait(.1)
  79. z:Play()
  80. ----------------------------------------------------
  81.  
  82. ArtificialHB = Instance.new("BindableEvent", script)
  83. ArtificialHB.Name = "Heartbeat"
  84. script:WaitForChild("Heartbeat")
  85. frame = 0.016666666666667
  86. tf = 0
  87. allowframeloss = false
  88. tossremainder = false
  89. lastframe = tick()
  90. script.Heartbeat:Fire()
  91. game:GetService("RunService").Heartbeat:connect(function(s, p)
  92. tf = tf + s
  93. if frame <= tf then
  94. if allowframeloss then
  95. script.Heartbeat:Fire()
  96. lastframe = tick()
  97. else
  98. for i = 1, math.floor(tf / frame) do
  99. script.Heartbeat:Fire()
  100. end
  101. lastframe = tick()
  102. end
  103. if tossremainder then
  104. tf = 0
  105. else
  106. tf = tf - frame * math.floor(tf / frame)
  107. end
  108. end
  109. end
  110. )
  111. swait = function(num)
  112. if num == 0 or num == nil then
  113. ArtificialHB.Event:wait()
  114. else
  115. for i = 0, num do
  116. ArtificialHB.Event:wait()
  117. end
  118. end
  119. end
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. Magik = function(part)
  127. Spawn(function()
  128. local function lerp(a,b,c)
  129. return a+(b-a)*c
  130. end
  131. local function rndRange(rng)
  132. return math.random(-rng*1000,rng*1000)/1000
  133. end
  134. local magik = Instance.new("Part", part)
  135. magik.Anchored = true
  136. magik.Locked = true
  137. magik.Material = "Neon"
  138. magik.FormFactor = "Custom"
  139. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  140. magik.TopSurface = "Smooth"
  141. magik.BottomSurface = "Smooth"
  142. magik.Transparency = 0
  143. magik.CanCollide = false
  144.  
  145. magik.BrickColor = BrickColor.new("Royal purple")
  146.  
  147. local mr = math.rad
  148. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  149. local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  150. magik.CFrame = cf
  151. for i = 0, 1, .05 do
  152. local newTrans = lerp(.8, 1, i)
  153. local ns = lerp(1,1.2,i)
  154. magik.Transparency = newTrans
  155. magik.Size = Vector3.new(ns,ns,ns)
  156. magik.CFrame = cf
  157. wait()
  158. end
  159. magik:Destroy()
  160. wait()
  161. end)
  162. end
  163. ----------------------------------------------------
  164. Magik2 = function(part)
  165. Spawn(function()
  166. local function lerp(a,b,c)
  167. return a+(b-a)*c
  168. end
  169. local function rndRange(rng)
  170. return math.random(-rng*1000,rng*1000)/1000
  171. end
  172. local magik2 = Instance.new("Part",part)
  173. magik2.Anchored = true
  174. magik2.Locked = true
  175. magik2.FormFactor = "Custom"
  176. magik2.Size = Vector3.new(1.2, 1.2, 1.2)
  177. magik2.TopSurface = "Smooth"
  178. magik2.BottomSurface = "Smooth"
  179. magik2.Transparency = 0
  180. magik2.Material = "Neon"
  181. magik2.CanCollide = false
  182.  
  183.  
  184. magik2.BrickColor = BrickColor.new("Really black")
  185.  
  186.  
  187. local mr = math.rad
  188. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  189. local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  190. magik2.CFrame = cf
  191. for i = 0, 1, .05 do
  192. local newTrans = lerp(.8, 1, i)
  193. local ns = lerp(1,1.2,i)
  194. magik2.Transparency = newTrans
  195. magik2.Size = Vector3.new(ns,ns,ns)
  196. magik2.CFrame = cf
  197. wait()
  198. end
  199. magik2:Destroy()
  200. end)
  201. end
  202.  
  203.  
  204.  
  205. Spawn(function()
  206. while wait(.1) do
  207. Magik(RightArm)
  208. end
  209. end)
  210.  
  211. Spawn(function()
  212. while wait(.1) do
  213. Magik2(RightArm)
  214. end
  215. end)
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224. FloatPart = function()
  225. local Part = Instance.new('Part',Torso)
  226. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  227. Part.Anchored = true
  228. Part.Material = 'Neon'
  229. Part.CanCollide = false
  230. Part.BrickColor = BrickColor.new(PrimaryColor)
  231. local Mesh = Instance.new('SpecialMesh',Part)
  232. Mesh.Scale = Vector3.new(4,4,.2)
  233. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  234. Mesh.VertexColor = Vector3.new(0,170,255)
  235. spawn(function()
  236. for i = 1,30 do
  237. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  238. Part.Transparency = Part.Transparency + .035
  239. game["Run Service"].RenderStepped:wait()
  240. end
  241. Part:Destroy()
  242. end)
  243. end;
  244.  
  245. DubPart = function()
  246. local Part = Instance.new('Part',Torso)
  247. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  248. Part.Anchored = true
  249. Part.CanCollide = false
  250. Part.Material = 'Neon'
  251. Part.BrickColor = BrickColor.new(SecondaryColor)
  252. local Mesh = Instance.new('SpecialMesh',Part)
  253. Mesh.Scale = Vector3.new(7,7,.2)
  254. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  255. Mesh.VertexColor = Vector3.new(0,170,255)
  256. spawn(function()
  257. for i = 1,30 do
  258. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  259. Part.Transparency = Part.Transparency + .035
  260. game["Run Service"].RenderStepped:wait()
  261. end
  262. Part:Destroy()
  263. end)
  264. end;
  265.  
  266. Fade = function(Item,t)
  267. spawn(function()
  268. for i = 1,20 do
  269. Item.Transparency = Item.Transparency + .05
  270. if t then
  271. wait(t)
  272. else
  273. wait()
  274. end
  275. end
  276. Item:Destroy()
  277. end)
  278. end
  279.  
  280. Particle = function(PrimaryColor)
  281. local Part = Instance.new('Part',Torso)
  282. Part.BrickColor = BrickColor.new(PrimaryColor)
  283. Part.Anchored = true
  284. Part.Transparency = .3
  285. Part.CanCollide = false
  286. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
  287. local Mesh = Instance.new('BlockMesh',Part)
  288. Mesh.Scale = Vector3.new(.05,.1,.1)
  289. spawn(function()
  290. for i = 1,40 do
  291. Part.Transparency = Part.Transparency + .0125
  292. Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
  293. game["Run Service"].RenderStepped:wait()
  294. end
  295. Part:Destroy()
  296. end)
  297. end;
  298.  
  299. --[[spawn(function()
  300. while wait() do
  301. wait(.05)
  302. FloatPart()
  303. wait(.08)
  304. FloatPart()
  305. wait(.05)
  306. DubPart()
  307. wait(.08)
  308. end
  309. end)]]
  310.  
  311. game["Run Service"].RenderStepped:connect(function(_)
  312. Particle("Royal purple")
  313. Particle("Really black")
  314. --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
  315. end)
  316.  
  317.  
  318.  
  319. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  320. local fp = it("ParticleEmitter")
  321. fp.Parent = parent
  322. fp.Color = cs(col1, col2)
  323. fp.LightEmission = lightemis
  324. fp.Size = size
  325. fp.Texture = texture
  326. fp.Transparency = transparency
  327. fp.ZOffset = zoffset
  328. fp.Acceleration = accel
  329. fp.Drag = drag
  330. fp.LockedToPart = ltp
  331. fp.VelocityInheritance = velinher
  332. fp.EmissionDirection = emisdir
  333. fp.Enabled = enabled
  334. fp.Lifetime = lifetime
  335. fp.Rate = rate
  336. fp.Rotation = rotation
  337. fp.RotSpeed = rotspeed
  338. fp.Speed = speed
  339. fp.VelocitySpread = velspread
  340. return fp
  341. end
  342.  
  343.  
  344.  
  345.  
  346. local fengui = it("GuiMain")
  347. fengui.Parent = Player.PlayerGui
  348. fengui.Name = "WeaponGUI"
  349. local fenframe1 = it("TextLabel")
  350. fenframe1.Parent = fengui
  351. fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  352. fenframe1.BackgroundTransparency = 0.3
  353. fenframe1.BorderSizePixel = 5
  354. fenframe1.BorderColor3 = Color3.new(1, 1, 1)
  355. fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
  356. fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
  357. fenframe1.Text = "Z"
  358. fenframe1.TextWrapped = true
  359. fenframe1.FontSize = 7
  360. fenframe1.TextColor3 = Color3.new(1, 1, 1)
  361. local fenframe1a = it("TextLabel")
  362. fenframe1a.Parent = fengui
  363. fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  364. fenframe1a.BackgroundTransparency = 0.3
  365. fenframe1a.BorderSizePixel = 5
  366. fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
  367. fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
  368. fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
  369. fenframe1a.Text = ""
  370. local fenframe2 = it("TextLabel")
  371. fenframe2.Parent = fengui
  372. fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  373. fenframe2.BackgroundTransparency = 0.3
  374. fenframe2.BorderSizePixel = 5
  375. fenframe2.BorderColor3 = Color3.new(1, 1, 1)
  376. fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
  377. fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
  378. fenframe2.Text = "X"
  379. fenframe2.TextWrapped = true
  380. fenframe2.FontSize = 7
  381. fenframe2.TextColor3 = Color3.new(1, 1, 1)
  382. local fenframe2a = it("TextLabel")
  383. fenframe2a.Parent = fengui
  384. fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  385. fenframe2a.BackgroundTransparency = 0.3
  386. fenframe2a.BorderSizePixel = 5
  387. fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
  388. fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
  389. fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
  390. fenframe2a.Text = ""
  391. local fenframe3 = it("TextLabel")
  392. fenframe3.Parent = fengui
  393. fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  394. fenframe3.BackgroundTransparency = 0.3
  395. fenframe3.BorderSizePixel = 5
  396. fenframe3.BorderColor3 = Color3.new(1, 1, 1)
  397. fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
  398. fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
  399. fenframe3.Text = "C"
  400. fenframe3.TextWrapped = true
  401. fenframe3.FontSize = 7
  402. fenframe3.TextColor3 = Color3.new(1, 1, 1)
  403. local fenframe3a = it("TextLabel")
  404. fenframe3a.Parent = fengui
  405. fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  406. fenframe3a.BackgroundTransparency = 0.3
  407. fenframe3a.BorderSizePixel = 5
  408. fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
  409. fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
  410. fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
  411. fenframe3a.Text = ""
  412. local fenframe4 = it("TextLabel")
  413. fenframe4.Parent = fengui
  414. fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  415. fenframe4.BackgroundTransparency = 0.3
  416. fenframe4.BorderSizePixel = 5
  417. fenframe4.BorderColor3 = Color3.new(1, 1, 1)
  418. fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
  419. fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
  420. fenframe4.Text = "V"
  421. fenframe4.TextWrapped = true
  422. fenframe4.FontSize = 7
  423. fenframe4.TextColor3 = Color3.new(1, 1, 1)
  424. local fenframe4a = it("TextLabel")
  425. fenframe4a.Parent = fengui
  426. fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  427. fenframe4a.BackgroundTransparency = 0.3
  428. fenframe4a.BorderSizePixel = 5
  429. fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
  430. fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
  431. fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
  432. fenframe4a.Text = ""
  433. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  434. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  435. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  436. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  437. local RbxUtility = LoadLibrary("RbxUtility")
  438. local Create = RbxUtility.Create
  439. RemoveOutlines = function(part)
  440. part.TopSurface = 10
  441. end
  442.  
  443. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  444. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  445. RemoveOutlines(Part)
  446. return Part
  447. end
  448.  
  449. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  450. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  451. if Mesh == "SpecialMesh" then
  452. Msh.MeshType = MeshType
  453. Msh.MeshId = MeshId
  454. end
  455. return Msh
  456. end
  457.  
  458. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  459. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  460. return Weld
  461. end
  462.  
  463. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  464. if hit.Parent == nil then
  465. return
  466. end
  467. local h = hit.Parent:FindFirstChild("Humanoid")
  468. for _,v in pairs(hit.Parent:children()) do
  469. if v:IsA("Humanoid") then
  470. h = v
  471. end
  472. end
  473. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  474. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  475. return
  476. end
  477. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  478. game:GetService("Debris"):AddItem(c, 0.5)
  479. if HitSound ~= nil and HitPitch ~= nil then
  480. CreateSound(HitSound, hit, 1, HitPitch)
  481. end
  482. local Damage = math.random(minim, maxim)
  483. local blocked = false
  484. local block = hit.Parent:findFirstChild("Block")
  485. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  486. blocked = true
  487. block.Value = block.Value - 1
  488. print(block.Value)
  489. end
  490. if blocked == false then
  491. HitHealth = h.Health
  492. h.Health = h.Health - Damage
  493. if mana < 100 then
  494. mana = mana + math.random(5, 10)
  495. end
  496. if mana > 100 then
  497. mana = 100
  498. end
  499. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
  500. end
  501. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  502. else
  503. h.Health = h.Health - Damage / 2
  504. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  505. end
  506. if Type == "Knockdown" then
  507. local hum = hit.Parent.Humanoid
  508. hum.PlatformStand = true
  509. coroutine.resume(coroutine.create(function(HHumanoid)
  510. swait(1)
  511. HHumanoid.PlatformStand = false
  512. end
  513. ), hum)
  514. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  515. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  516. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  517. game:GetService("Debris"):AddItem(bodvol, 0.5)
  518. game:GetService("Debris"):AddItem(rl, 0.5)
  519. else
  520. do
  521. if Type == "Normal" then
  522. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  523. if knockback > 0 then
  524. vp.Parent = hit.Parent.Torso
  525. end
  526. game:GetService("Debris"):AddItem(vp, 0.5)
  527. else
  528. do
  529. if Type == "Up" then
  530. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  531. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  532. else
  533. do
  534. if Type == "DarkUp" then
  535. coroutine.resume(coroutine.create(function()
  536. for i = 0, 1, 0.1 do
  537. swait()
  538. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  539. end
  540. end
  541. ))
  542. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  543. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  544. else
  545. do
  546. if Type == "Snare" then
  547. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  548. game:GetService("Debris"):AddItem(bp, 1)
  549. else
  550. do
  551. if Type == "Freeze" then
  552. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  553. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  554. hit.Parent.Torso.Anchored = true
  555. coroutine.resume(coroutine.create(function(Part)
  556. swait(1.5)
  557. Part.Anchored = false
  558. end
  559. ), hit.Parent.Torso)
  560. game:GetService("Debris"):AddItem(BodPos, 3)
  561. game:GetService("Debris"):AddItem(BodGy, 3)
  562. end
  563. do
  564. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  565. game:GetService("Debris"):AddItem(debounce, Delay)
  566. c = Instance.new("ObjectValue")
  567. c.Name = "creator"
  568. c.Value = Player
  569. c.Parent = h
  570. game:GetService("Debris"):AddItem(c, 0.5)
  571. end
  572. end
  573. end
  574. end
  575. end
  576. end
  577. end
  578. end
  579. end
  580. end
  581. end
  582. end
  583. end
  584.  
  585. ShowDamage = function(Pos, Text, Time, Color)
  586. local Rate = 0.033333333333333
  587. if not Pos then
  588. local Pos = Vector3.new(0, 0, 0)
  589. end
  590. local Text = Text or ""
  591. local Time = Time or 2
  592. if not Color then
  593. local Color = Color3.new(1, 0, 1)
  594. end
  595. local EffectPart = CreatePart(workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  596. EffectPart.Anchored = true
  597. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  598. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  599. game.Debris:AddItem(EffectPart, Time + 0.1)
  600. EffectPart.Parent = game:GetService("Workspace")
  601. delay(0, function()
  602. local Frames = Time / Rate
  603. for Frame = 1, Frames do
  604. wait(Rate)
  605. local Percent = Frame / Frames
  606. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  607. TextLabel.TextTransparency = Percent
  608. end
  609. if EffectPart and EffectPart.Parent then
  610. EffectPart:Destroy()
  611. end
  612. end
  613. )
  614. end
  615.  
  616. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  617. for _,c in pairs(workspace:children()) do
  618. local hum = c:findFirstChild("Humanoid")
  619. if hum ~= nil then
  620. local head = c:findFirstChild("Torso")
  621. if head ~= nil then
  622. local targ = head.Position - Part.Position
  623. local mag = targ.magnitude
  624. if mag <= magni and c.Name ~= Player.Name then
  625. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  626. end
  627. end
  628. end
  629. end
  630. end
  631.  
  632. Handle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "Handle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
  633. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.982839942, 0.146006823, 0.234023571, 0.211453959, -0.977137685, 0.0221185088, -0.0402157828, -0.0313093588, -0.99870044, 0.976560295, 0.210289627, -0.0459168404))
  634. CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
  635. FakeHandle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "FakeHandle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
  636. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  637. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(0.200000003, 1, 0.200000003))
  638. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.07288361e-006, 0.683865368, -4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  639. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(2, 0.5, 2))
  640. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  641. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31791997, -0.975689411, 2.925138, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
  642. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  643. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1))
  644. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.4692868, -3.70743895, -1.52587891e-005, 0.916809797, -0.399324507, 1.15483999e-006, 0.399324447, 0.916809678, -4.00096178e-006, 5.56348823e-007, 4.12762165e-006, 1))
  645. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
  646. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  647. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31796861, -0.99111104, 3.62495184, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
  648. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  649. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  650. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.64674854, -0.903340101, -0.354405403, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
  651. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  652. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  653. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155968666, -0.981806874, 5.01632404, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  654. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  655. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  656. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.015683651, -0.99636519, 4.31590414, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  657. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  658. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  659. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.2746892, -0.975648642, 2.9260354, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
  660. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  661. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  662. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.27468133, -0.991158009, 3.62575912, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
  663. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  664. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  665. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155587196, -1.11407149, 4.663311, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  666. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
  667. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  668. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0131573677, 0.00466442108, 4.61167336, -1.74657907e-006, -1.09747052e-005, -1.00000012, 0.764525652, -0.644593418, 5.77419996e-006, -0.644593358, -0.764525771, 9.49576497e-006))
  669. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
  670. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  671. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.6467495, -0.918762922, 0.345379829, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
  672. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  673. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  674. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00376915932, -3.44346094, -0.00172424316, -1.00000012, -1.70432031e-006, 1.69267878e-007, 1.70432031e-006, -1.00000012, -2.12341547e-007, 1.75088644e-007, -2.12341547e-007, 1.00000012))
  675. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.300000012, 0.200000003))
  676. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  677. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.31130219e-006, -3.5749507, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  678. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 0.400000006))
  679. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 4.57000017, 0.200000003))
  680. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.96046448e-007, -1.50000107, 9.53674316e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  681. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
  682. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 1.16999996, 1))
  683. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68149614, -0.0198745728, -1.09672546e-005, 0.0220478568, 0.999756992, -2.0749867e-006, -0.999756932, 0.0220478605, -1.48452818e-006, -1.42678618e-006, 2.10851431e-006, 1.00000012))
  684. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  685. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
  686. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71543217, -0.0690839291, -9.53674316e-006, 0.19052954, 0.981681645, -1.97067857e-006, -0.981681526, 0.190529525, -1.91386789e-006, -1.49046537e-006, 2.29105353e-006, 1.00000012))
  687. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976))
  688. Part22 = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part22", Vector3.new(1, 0.729999959, 1))
  689. PartWeld = CreateWeld(m, FakeHandle, Part22, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.51120782, -3.69066477, -7.15255737e-006, 0.911903143, 0.410405785, -3.35276127e-007, -0.410405725, 0.911903143, -1.79186463e-006, -4.35044058e-007, 1.76206231e-006, 1.00000012))
  690. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
  691. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
  692. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71087646, -0.0231897831, -6.19888306e-006, 0.318961442, 0.947767794, -1.48266554e-006, -0.947767675, 0.318961442, -2.70921737e-006, -2.10118014e-006, 2.26870179e-006, 1.00000012))
  693. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.850000024))
  694. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.769999981, 1))
  695. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68154573, -0.4009372, -5.7220459e-006, 0.516243339, 0.856442034, -8.04662704e-007, -0.856442034, 0.516243339, -4.18536365e-006, -3.15741636e-006, 2.8423965e-006, 1.00000012))
  696. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  697. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 2.57999992, 0.200000003))
  698. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.4570694e-006, 1.91385686, 4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  699. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  700. Hitbox = CreatePart(m, Enum.Material.Marble, 0, 1, "Black", "Hitbox", Vector3.new(2.4000001, 3.67000008, 0.399999976))
  701. HitboxWeld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.76720476, 3.04898357, 0.00860214233, -0.699169815, 0.713988841, 0.0371726528, -0.713755548, -0.700063348, 0.0215496495, 0.0414094217, -0.0114653222, 0.999076545))
  702. rayCast = function(Position, Direction, Range, Ignore)
  703. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  704. end
  705.  
  706.  
  707. Spawn(function()
  708. while wait() do
  709. Magik(LeftArm)
  710. end
  711. end)
  712.  
  713. Spawn(function()
  714. while wait() do
  715. Magik2(LeftArm)
  716. end
  717. end)
  718.  
  719.  
  720. CreateSound = function(id, parent, vol, pit, looped)
  721. coroutine.resume(coroutine.create(function()
  722. local sou = Instance.new("Sound", parent or workspace)
  723. sou.Volume = vol
  724. sou.Pitch = pit or 1
  725. sou.SoundId = id
  726. sou.Looped = looped
  727. swait()
  728. sou:play()
  729. game:GetService("Debris"):AddItem(sou, 6)
  730. end
  731. ))
  732. end
  733.  
  734.  
  735. local getclosest = function(obj, distance)
  736. local last, lastx = distance + 1, nil
  737. for i,v in pairs(workspace:GetChildren()) do
  738. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  739. local t = v.Torso
  740. local dist = t.Position - obj.Position.magnitude
  741. if dist <= distance and dist < last then
  742. last = dist
  743. lastx = v
  744. end
  745. end
  746. end
  747. return lastx
  748. end
  749.  
  750. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  751. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  752. prt.Anchored = true
  753. prt.CFrame = cframe
  754. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  755. game:GetService("Debris"):AddItem(prt, 10)
  756. if Type == 1 or Type == nil then
  757. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  758. else
  759. if Type == 2 then
  760. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  761. end
  762. end
  763. end
  764.  
  765. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  766. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  767. prt.Anchored = true
  768. prt.CFrame = cframe
  769. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  770. game:GetService("Debris"):AddItem(prt, 10)
  771. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  772. end
  773.  
  774. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  775. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  776. prt.Anchored = true
  777. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  778. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  779. game:GetService("Debris"):AddItem(prt, 10)
  780. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  781. end
  782.  
  783. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  784. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  785. prt.Anchored = true
  786. prt.CFrame = cframe
  787. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  788. game:GetService("Debris"):AddItem(prt, 10)
  789. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  790. end
  791.  
  792. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  793. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  794. prt.Anchored = true
  795. prt.CFrame = cframe
  796. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  797. game:GetService("Debris"):AddItem(prt, 10)
  798. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  799. end
  800.  
  801. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  802. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  803. prt.Anchored = true
  804. prt.CFrame = cframe
  805. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  806. game:GetService("Debris"):AddItem(prt, 10)
  807. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  808. end
  809.  
  810. DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  811. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  812. prt.Anchored = true
  813. prt.CFrame = cframe
  814. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  815. game:GetService("Debris"):AddItem(prt, 10)
  816. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  817. end
  818.  
  819. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  820. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  821. prt.Anchored = true
  822. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  823. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  824. local num = math.random(10, 50) / 1000
  825. game:GetService("Debris"):AddItem(prt, 10)
  826. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  827. end
  828.  
  829. attackone = function()
  830. attack = true
  831. for i = 0, 1, 0.1 do
  832. swait()
  833. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  834. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  835. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  836. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  837. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  838. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  839. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  840. end
  841. local con = Hitbox.Touched:connect(function(hit)
  842. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  843. end
  844. )
  845. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  846. for i = 0, 1, 0.1 do
  847. swait()
  848. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  849. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  850. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  851. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  852. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  853. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  854. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  855. end
  856. con:disconnect()
  857. attack = false
  858. end
  859.  
  860. Deathwish = function()
  861. attack = true
  862. CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
  863. for i = 0, 1, 0.05 do
  864. swait()
  865. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
  866. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
  867. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  868. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  869. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  870. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  871. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  872. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  873. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  874. end
  875. MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp")
  876. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
  877. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  878. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
  879. for i = 0, 1, 0.05 do
  880. swait()
  881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  882. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  883. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  884. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  885. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  886. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  887. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  888. end
  889. for i = 0, 1, 0.1 do
  890. swait()
  891. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
  892. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3)
  893. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  894. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
  895. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  896. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  897. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  898. end
  899. MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
  900. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
  901. SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
  902. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  903. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
  904. for i = 0, 1, 0.1 do
  905. swait()
  906. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  907. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3)
  908. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  909. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  910. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  911. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  912. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  913. end
  914. attack = false
  915. end
  916.  
  917. ChaosDriver = function()
  918. attack = true
  919. for i = 0, 1, 0.05 do
  920. swait()
  921. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  922. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  923. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  924. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  925. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  926. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  927. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  928. end
  929. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  930. coroutine.resume(coroutine.create(function()
  931. for i = 1, 5 do
  932. swait()
  933. local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt())
  934. ef.Anchored = true
  935. ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
  936. MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
  937. game:GetService("Debris"):AddItem(ef, 0.5)
  938. CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
  939. DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07)
  940. DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07)
  941. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  942. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  943. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  944. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  945. end
  946. end
  947. ))
  948. for i = 0, 1, 0.1 do
  949. swait()
  950. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  951. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  952. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  953. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  954. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  955. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  956. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  957. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  958. end
  959. attack = false
  960. end
  961.  
  962. attacktwo = function()
  963. attack = true
  964. soundn = true
  965. for i = 0, 1, 0.1 do
  966. swait()
  967. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  968. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  969. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  970. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  971. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  972. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  973. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  974. end
  975. local con = Hitbox.Touched:connect(function(hit)
  976. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  977. end
  978. )
  979. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  980. coroutine.resume(coroutine.create(function()
  981. while soundn do
  982. wait(0.3)
  983. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  984. end
  985. end
  986. ))
  987. for i = 0, 1, 0.1 do
  988. swait()
  989. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  990. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  991. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  992. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  993. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  994. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  995. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  996. end
  997. con:disconnect()
  998. soundn = false
  999. attack = false
  1000. end
  1001.  
  1002. local soundn = false
  1003. attackthree = function()
  1004. attack = true
  1005. soundn = true
  1006. for i = 0, 1, 0.1 do
  1007. swait()
  1008. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1009. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1010. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  1011. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1012. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1013. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1014. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1015. end
  1016. local con = Hitbox.Touched:connect(function(hit)
  1017. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1018. end
  1019. )
  1020. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1021. coroutine.resume(coroutine.create(function()
  1022. while soundn do
  1023. wait(0.3)
  1024. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1025. end
  1026. end
  1027. ))
  1028. for i = 0, 1, 0.1 do
  1029. swait()
  1030. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1031. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1032. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1033. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1034. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1035. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1036. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1037. end
  1038. con:disconnect()
  1039. soundn = false
  1040. attack = false
  1041. end
  1042.  
  1043. ThanatosDriver = function()
  1044. attack = true
  1045. for i = 0, 1, 0.1 do
  1046. swait()
  1047. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1048. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1049. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1050. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1051. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1052. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1053. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1054. end
  1055. local con = Hitbox.Touched:connect(function(hit)
  1056. Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1057. end
  1058. )
  1059. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
  1060. for i = 0, 1, 0.1 do
  1061. swait()
  1062. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1063. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1064. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1065. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
  1066. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  1067. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
  1068. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  1069. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1070. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1071. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
  1072. end
  1073. con:disconnect()
  1074. attack = false
  1075. end
  1076.  
  1077. LastResort = function()
  1078. attack = true
  1079. soundn = true
  1080. CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
  1081. MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
  1082. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1083. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1084. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1085. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1086.  
  1087. RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
  1088. for i = 0, 1, 0.1 do
  1089. swait()
  1090. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1091. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1092. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1093. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1094. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1095. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1096. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1097. end
  1098. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1099. coroutine.resume(coroutine.create(function()
  1100. while soundn do
  1101. wait(0.5)
  1102. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1103. end
  1104. end
  1105. ))
  1106. for i = 0, 1, 0.1 do
  1107. swait()
  1108. MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
  1109. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1110. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1111. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1112. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1113. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1114. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1115. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1116. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1117. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1118. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1119. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1120. end
  1121. for i = 0, 1, 0.1 do
  1122. swait()
  1123. MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
  1124. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1125. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1126. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1127. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1128. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1129. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1130. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1131. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1132. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1133. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1134. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1135. end
  1136. soundn = false
  1137. attack = false
  1138. end
  1139.  
  1140. ob1u = function()
  1141. end
  1142.  
  1143. ob1d = function()
  1144. if attack == false and attacktype == 1 then
  1145. attacktype = 2
  1146. attackone()
  1147. else
  1148. if attack == false and attacktype == 2 then
  1149. attacktype = 3
  1150. attacktwo()
  1151. else
  1152. if attack == false and attacktype == 3 then
  1153. attacktype = 1
  1154. attackthree()
  1155. end
  1156. end
  1157. end
  1158. end
  1159.  
  1160. key = function(k)
  1161. k = k:lower()
  1162. if attack == false and k == "z" and zenabled == true then
  1163. zenabled = false
  1164. coroutine.resume(coroutine.create(function()
  1165. for i = 1, 0, -0.02 do
  1166. swait()
  1167. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1168. end
  1169. zenabled = true
  1170. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1171. end
  1172. ))
  1173. ThanatosDriver()
  1174. else
  1175. if attack == false and k == "x" and xenabled == true then
  1176. xenabled = false
  1177. coroutine.resume(coroutine.create(function()
  1178. for i = 1, 0, -0.005 do
  1179. swait()
  1180. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1181. end
  1182. xenabled = true
  1183. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1184. end
  1185. ))
  1186. LastResort()
  1187. else
  1188. if attack == false and k == "c" and cenabled == true then
  1189. cenabled = false
  1190. coroutine.resume(coroutine.create(function()
  1191. for i = 1, 0, -0.0025 do
  1192. swait()
  1193. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1194. end
  1195. cenabled = true
  1196. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1197. end
  1198. ))
  1199. ChaosDriver()
  1200. else
  1201. if attack == false and k == "v" and venabled == true then
  1202. venabled = false
  1203. coroutine.resume(coroutine.create(function()
  1204. for i = 1, 0, -0.0005 do
  1205. swait()
  1206. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1207. end
  1208. venabled = true
  1209. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1210. end
  1211. ))
  1212. Deathwish()
  1213. end
  1214. end
  1215. end
  1216. end
  1217. end
  1218.  
  1219. s = function(mouse)
  1220. mouse.Button1Down:connect(function()
  1221. ob1d(mouse)
  1222. end
  1223. )
  1224. mouse.Button1Up:connect(function()
  1225. ob1u(mouse)
  1226. end
  1227. )
  1228. mouse.KeyDown:connect(key)
  1229. end
  1230.  
  1231. s(mouse)
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238. rs = game:GetService'RunService'
  1239. plrs = game:GetService'Players'
  1240. lp = plrs.LocalPlayer
  1241. c = lp.Character
  1242. root = lp.Character.HumanoidRootPart
  1243. human = c.Humanoid
  1244. FPS = 0
  1245. inf = 0
  1246. opos1 = Vector3.new()
  1247. opos2 = Vector3.new()
  1248. opos3 = Vector3.new()
  1249. waves = Instance.new("Model", c)
  1250. res = Instance.new("Model", c)
  1251.  
  1252. local function b()
  1253. local t=tick();
  1254. local l=t%1*3;
  1255. local t=.5*math.pi*(l%1);
  1256. if l<1 then
  1257. return Color3.new(47,0,32);
  1258. elseif l<2 then
  1259. return Color3.new(47,0,35);
  1260. else
  1261. return Color3.new(0,0,0);
  1262. end;
  1263. end;
  1264. speedParts = function()
  1265. for i = 1, 4 do
  1266. local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -Hitbox.Velocity / 5) * (math.sin(tick()) + 2)
  1267. local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p
  1268. local opos
  1269. if i == 1 then
  1270. opos = opos1
  1271. elseif i == 2 then
  1272. opos = opos2
  1273. else
  1274. opos = opos3
  1275. end
  1276. local e
  1277. if #res:children() <= 3 then
  1278. e = Instance.new("Part")
  1279. else
  1280. e = res:FindFirstChild("Trail")
  1281. end
  1282. e.Parent = waves
  1283. e.Anchored = false
  1284. e.CanCollide = false
  1285. e.Transparency = 0
  1286. e.Material = "Neon"
  1287. e.Name = "Trail"
  1288. e.Color = b(); --Color = a();
  1289. e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01)
  1290. e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0)
  1291. if i == 1 then
  1292. opos1 = CFramepos
  1293. elseif i == 2 then
  1294. opos2 = CFramepos
  1295. else
  1296. opos3 = CFramepos
  1297. end
  1298. end
  1299. end
  1300.  
  1301. rs.RenderStepped:connect(function()
  1302. FPS = 1 / rs.RenderStepped:wait()
  1303. for i, v in pairs (waves:children()) do
  1304. v.Transparency = v.Transparency + .05 / (FPS / 400)
  1305. if v.Transparency >= .98 then
  1306. v.Transparency = 1
  1307. v.Parent = res
  1308. end
  1309. end
  1310. inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400)
  1311. speedParts()
  1312. end)
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319. while 1 do
  1320. swait()
  1321. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1322. velocity = RootPart.Velocity.y
  1323. sine = sine + change
  1324. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1325. if equipped == true or equipped == false then
  1326. if 1 < RootPart.Velocity.y and hit == nil then
  1327. Anim = "Jump"
  1328. if attack == false then
  1329. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1330. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  1331. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  1332. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1333. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1334. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1335. end
  1336. else
  1337. if RootPart.Velocity.y < -1 and hit == nil then
  1338. Anim = "Fall"
  1339. if attack == false then
  1340. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1341. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  1342. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  1343. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1344. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1345. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1346. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1347. end
  1348. else
  1349. if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
  1350. Anim = "Idle"
  1351. if attack == false then
  1352. change = 1
  1353. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.3)
  1354. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(80)), 0.3)
  1355. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1356. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1357. RH.C0 = clerp(RH.C0, cf(1, -1.2 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), 0.3)
  1358. LH.C0 = clerp(LH.C0, cf(-1.3, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  1359. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(70 - 1 * math.cos((sine) / 9)), math.rad(70)), 0.3)
  1360. end
  1361. else
  1362. if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
  1363. Anim = "Walk"
  1364. if attack == false then
  1365. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(10), math.rad(-5), math.rad(-30)), 0.3)
  1366. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(30)), 0.3)
  1367. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
  1368. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1369. RH.C0 = clerp(RH.C0, cf(1, -1, 0 + 0.5 * math.cos((sine) / 5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10 - 50 * math.cos((sine) / 5))), 0.3)
  1370. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5 - 0.5 * math.cos((sine) / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10 - 50 * math.cos((sine) / 5))), 0.3)
  1371. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(50 - 1 * math.cos((sine) / 9)), math.rad(120)), 0.3)
  1372. end
  1373. end
  1374. end
  1375. end
  1376. end
  1377. end
  1378. if 0 < #Effects then
  1379. for e = 1, #Effects do
  1380. if Effects[e] ~= nil then
  1381. local Thing = Effects[e]
  1382. if Thing ~= nil then
  1383. local Part = Thing[1]
  1384. local Mode = Thing[2]
  1385. local Delay = Thing[3]
  1386. local IncX = Thing[4]
  1387. local IncY = Thing[5]
  1388. local IncZ = Thing[6]
  1389. if Thing[1].Transparency <= 1 then
  1390. if Thing[2] == "Block1" then
  1391. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1392. Mesh = Thing[1].Mesh
  1393. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1394. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1395. else
  1396. if Thing[2] == "Block2" then
  1397. Thing[1].CFrame = Thing[1].CFrame
  1398. Mesh = Thing[7]
  1399. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1400. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1401. else
  1402. if Thing[2] == "Cylinder" then
  1403. Mesh = Thing[1].Mesh
  1404. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1405. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1406. else
  1407. if Thing[2] == "Blood" then
  1408. Mesh = Thing[7]
  1409. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1410. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1411. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1412. else
  1413. if Thing[2] == "Elec" then
  1414. Mesh = Thing[1].Mesh
  1415. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1416. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1417. else
  1418. if Thing[2] == "Disappear" then
  1419. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1420. else
  1421. if Thing[2] == "Shatter" then
  1422. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1423. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1424. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1425. Thing[6] = Thing[6] + Thing[5]
  1426. end
  1427. end
  1428. end
  1429. end
  1430. end
  1431. end
  1432. end
  1433. else
  1434. Part.Parent = nil
  1435. table.remove(Effects, e)
  1436. end
  1437. end
  1438. end
  1439. end
  1440. end
  1441. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement