XxmadmaxgamexX

MEH

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