Advertisement
Guest User

Untitled

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