naser2345

Epic scythe

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