Advertisement
Sazious

Untitled

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