Advertisement
memberhero

test

May 12th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 160.05 KB | None | 0 0
  1. --[[
  2.  
  3.  
  4. ---------------------------------------------------------------
  5. Remake by: 123jl123
  6. ---------------------------------------------------------------
  7. Script: Giga Vanta
  8. ---------------------------------------------------------------
  9. Type: Boss/Class
  10. ---------------------------------------------------------------
  11.  
  12.  
  13. ]]
  14. local intro = true
  15. local Removeface = true
  16. wait(0.016666666666666666)
  17. Player = game:GetService("Players").basstracker1970
  18. Character = Player.Character
  19. char = Character
  20. torso = char.Torso
  21. hed = char.Head
  22. maincolor = BrickColor.new("Eggplant")
  23. PlayerGui = Player.PlayerGui
  24. Backpack = Player.Backpack
  25. Torso = Character.Torso
  26. Head = Character.Head
  27. Humanoid = Character.Humanoid
  28. LeftArm = Character["Left Arm"]
  29. LeftLeg = Character["Left Leg"]
  30. RightArm = Character["Right Arm"]
  31. RightLeg = Character["Right Leg"]
  32. LS = Torso["Left Shoulder"]
  33. LH = Torso["Left Hip"]
  34. RS = Torso["Right Shoulder"]
  35. RH = Torso["Right Hip"]
  36. Face = Head.face
  37. Neck = Torso.Neck
  38. it = Instance.new
  39. attacktype = 1
  40. vt = Vector3.new
  41. cf = CFrame.new
  42. euler = CFrame.fromEulerAnglesXYZ
  43. angles = CFrame.Angles
  44. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  45. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  46. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  47. RootPart = Character.HumanoidRootPart
  48. RootJoint = RootPart.RootJoint
  49. RootCF = euler(-1.57, 0, 3.14)
  50. attack = false
  51. equipped = false
  52. Mouse = Player:GetMouse()
  53. mana = 0
  54. local idle = 0
  55. local Anim = "Idle"
  56. local ShotTarget = RootPart
  57. player = nil
  58. local Stats = Instance.new("Folder", Character)
  59. Stats.Name = "Stats"
  60. local Defense = Instance.new("NumberValue", Stats)
  61. Defense.Name = "Defense"
  62. Defense.Value = 0.6
  63. local Speed = Instance.new("NumberValue", Stats)
  64. Speed.Name = "Speed"
  65. Speed.Value = 1.6625
  66. local Damage = Instance.new("NumberValue", Stats)
  67. Damage.Name = "Damage"
  68. Damage.Value = 1
  69. local BlockValue = Instance.new("BoolValue", Stats)
  70. BlockValue.Name = "BlockValue"
  71. BlockValue.Value = false
  72. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  73. StaggerHitAnim.Name = "StaggerHitAnim"
  74. StaggerHitAnim.Value = false
  75. local staghitanim = false
  76. local StaggerAnim = Instance.new("BoolValue", Stats)
  77. StaggerAnim.Name = "StaggerAnim"
  78. StaggerAnim.Value = false
  79. local staganim = false
  80. local StunAnim = Instance.new("BoolValue", Stats)
  81. StunAnim.Name = "StunAnim"
  82. StunAnim.Value = false
  83. local stunanim = false
  84. local StunValue = Instance.new("NumberValue", Stats)
  85. StunValue.Name = "StunValue"
  86. StunValue.Value = 0
  87. local cooldown1 = 0
  88. local cooldown2 = 0
  89. local cooldown3 = 0
  90. local cooldown4 = 0
  91. local mana = 0
  92. CustomColor = BrickColor.new("Really black")
  93. Colorpart1 = CustomColor.r
  94. Colorpart2 = CustomColor.g
  95. Colorpart3 = CustomColor.b
  96. local scrn = Instance.new("ScreenGui", PlayerGui)
  97. local ud = UDim2.new
  98. local c3 = Color3.new
  99. local skillcolorscheme = c3(1, 1, 1)
  100. local co1 = 0
  101. local co2 = 0
  102. local co3 = 0
  103. local co4 = 0
  104. local maxmana = 0
  105. local maxstun = 1
  106. local recovermana = 0
  107. local losestun = 0
  108. local stunwait = 0
  109. local manawait = 0
  110. local skill1mana = 0
  111. local skill2mana = 0
  112. local skill3mana = 0
  113. local skill4mana = 0
  114. local menuupdatespeed = 0
  115. local constantupdate = false
  116. local showstats = false
  117. local showstunbar = false
  118. local lp = game.Players.LocalPlayer
  119. local chr = lp.Character
  120. local mouseV2 = lp:GetMouse()
  121. local euler = CFrame.fromEulerAnglesXYZ
  122. local rad = math.rad
  123. local trso = chr.Torso
  124. script.Name = "Soul Of Darkness"
  125.  
  126.  
  127. New = function(Object, Parent, Name, Data)
  128. local Object = Instance.new(Object)
  129. for Index, Value in pairs(Data or {}) do
  130. Object[Index] = Value
  131. end
  132. Object.Parent = Parent
  133. Object.Name = Name
  134. return Object
  135. end
  136. Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://190845741",Volume = 2.5,Looped = true})
  137. Music1.Pitch = 1
  138.  
  139.  
  140. Music2 = New("Sound",Torso,"Music",{SoundId = "rbxassetid://215931322",Volume = 2,Looped = false})
  141. Music2.Pitch = 1.7
  142.  
  143. TalkSound = New("Sound",Torso,"Music",{SoundId = "rbxassetid://615716445",Volume = 4,Looped = false})
  144. TalkSound.Pitch = .2
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151. hum = chr.Humanoid
  152.  
  153.  
  154. function newface()
  155. char.Head.face.Texture = "http://www.roblox.com/asset/?id=0"
  156. if Removeface == true then
  157. char.Head.face:Destroy()
  158. end
  159. local eye12 = Instance.new("Part")
  160. eye12.Parent = char
  161. eye12.Size = Vector3.new(0.2, 0.2, 0.2)
  162. eye12.Archivable = true
  163. eye12.Transparency = 0
  164. eye12.Shape = "Ball"
  165. eye12.BrickColor = maincolor
  166. eye12.Material = "Neon"
  167. eye12.CanCollide = false
  168. local mesh2 = Instance.new("SpecialMesh",eye12)
  169. mesh2.MeshType = "Sphere"
  170. mesh2.Scale = Vector3.new(.6, 1.2, 1)
  171. local weld1en2 = Instance.new("Weld")
  172. weld1en2.Parent = char.Head
  173. weld1en2.Part0 = char.Head
  174. weld1en2.Part1 = eye12
  175. weld1en2.C1 = CFrame.new(0.15, -0.15, 0.5175)
  176. local eye1 = Instance.new("Part")
  177. eye1.Parent = char
  178. eye1.Size = Vector3.new(0.2, 0.2, 0.2)
  179. eye1.Archivable = true
  180. eye1.Transparency = 0
  181. eye1.Shape = "Ball"
  182. eye1.BrickColor = maincolor
  183. eye1.Material = "Neon"
  184. eye1.CanCollide = false
  185. local mesh = Instance.new("SpecialMesh",eye1)
  186. mesh.MeshType = "Sphere"
  187. mesh.Scale = Vector3.new(.6, 1.2, 1)
  188. local weld1en = Instance.new("Weld")
  189. weld1en.Parent = char.Head
  190. weld1en.Part0 = char.Head
  191. weld1en.Part1 = eye1
  192. weld1en.C1 = CFrame.new(-0.15, -0.15, 0.5175)
  193. end
  194.  
  195.  
  196.  
  197. function CreateMesh(parent, id, x, y, z, texture)
  198. local m=Instance.new("SpecialMesh", parent)
  199. m.MeshType = "FileMesh"
  200. m.MeshId="http://www.roblox.com/asset/?id="..id
  201. if texture ~= nil then
  202. m.TextureId="http://www.roblox.com/asset/?id="..texture
  203. end
  204. m.Scale = Vector3.new(x,y,z)
  205. end
  206.  
  207.  
  208.  
  209. Hat=function()
  210. hat = Instance.new("Part", chr)
  211. hat.Transparency = 1
  212. hat.Name = "Top hat"
  213. hat.Locked = true
  214. hat.BrickColor = BrickColor.new("Really black")
  215. hat.CanCollide=true
  216. hat.Size=Vector3.new(1,1,1)
  217. hatw = Instance.new("Weld",hat)
  218. hatw.Part0=hat
  219. hatw.Part1=chr['Head']
  220. hatw.C0=CFrame.new(0,-1.7,0)
  221. hatw.C1=euler(rad(0),rad(0),rad(0))
  222. end
  223.  
  224. Hat()
  225.  
  226.  
  227.  
  228. function Name(msg)
  229. if hat.Parent then
  230. pcall(function()
  231. local Gui = Instance.new('BillboardGui', hat)
  232. Gui.ExtentsOffset = Vector3.new(0,1.5,0)
  233. Gui.Size = UDim2.new(0,200,0,300)
  234. local Frame = Instance.new('Frame',Gui)
  235. Frame.BackgroundTransparency = 1
  236. Frame.Size = UDim2.new(1,0,1,0)
  237. local Txt = Instance.new('TextLabel',Frame)
  238. Txt.BackgroundTransparency = 1
  239. Txt.Size = UDim2.new(1,0,1,0)
  240. Txt.Font = 'ArialBold'
  241. Txt.FontSize = 'Size24'
  242. Txt.Text = msg
  243. Txt.TextColor3 = BrickColor.new("Really black").Color
  244. Txt.TextStrokeColor3 = Color3.new(1,0,0)
  245. Txt.TextStrokeTransparency = 0
  246. Txt.TextWrapped = true
  247. Txt.TextScaled = false
  248. end)
  249. else
  250. end
  251. end
  252.  
  253. function Chat(msg) -- Credit to jillmiles1, kthxbye
  254. if hat.Parent then
  255. pcall(function()
  256. if hat:FindFirstChild("Vanta Chat Gui") then
  257. hat['Vanta Chat Gui']:destroy()
  258. end
  259. local Gui = Instance.new('BillboardGui', hat)
  260. Gui.Name = "Vanta Chat Gui"
  261. Gui.ExtentsOffset = Vector3.new(0,3,0)
  262. Gui.Size = UDim2.new(0,200,0,300)
  263. local Frame = Instance.new('Frame',Gui)
  264. Frame.BackgroundTransparency = 1
  265. Frame.Size = UDim2.new(1,0,1,0)
  266. local Txt = Instance.new('TextLabel',Frame)
  267. Txt.BackgroundTransparency = 1
  268. Txt.Size = UDim2.new(1,0,1,0)
  269. Txt.Font = 'ArialBold'
  270. Txt.Name = "ChatGui"
  271. Txt.FontSize = 'Size24'
  272. Txt.Text = ''
  273. Txt.TextColor3 = BrickColor.new("Really black").Color
  274. Txt.TextStrokeColor3 = Color3.new(.2,0,.6)
  275. Txt.TextStrokeTransparency = .5
  276. Txt.TextWrapped = true
  277. Txt.TextScaled = false
  278.  
  279. delay(wait(),function()
  280. for v = 1, #msg do
  281. Txt.Text=string.sub(msg,1,v)
  282. TalkSound:Play()
  283. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  284. wait(.009)
  285. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  286. wait(.009)
  287. Gui.ExtentsOffset = Vector3.new(0,3,0)
  288. end;
  289.  
  290.  
  291.  
  292. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  293. wait(.03)
  294. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  295. wait(.03)
  296. Gui.ExtentsOffset = Vector3.new(0,3,0)
  297. wait(.03)
  298. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  299. wait(.03)
  300. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  301. wait(.03)
  302. Gui.ExtentsOffset = Vector3.new(0,3,0)
  303. wait(.03)
  304. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  305. wait(.03)
  306. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  307. wait(.03)
  308. Gui.ExtentsOffset = Vector3.new(0,3,0)
  309. wait(.03)
  310. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  311. wait(.03)
  312. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  313. wait(.03)
  314. Gui.ExtentsOffset = Vector3.new(0,3,0)
  315. wait(.03)
  316. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  317. wait(.03)
  318. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  319. wait(.03)
  320. Gui.ExtentsOffset = Vector3.new(0,3,0)
  321. wait(.03)
  322. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  323. wait(.03)
  324. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  325. wait(.03)
  326. Gui.ExtentsOffset = Vector3.new(0,3,0)
  327. wait(.03)
  328.  
  329. Txt.TextStrokeTransparency = .6
  330. wait()
  331. Txt.TextStrokeTransparency = .7
  332. wait()
  333. Txt.TextStrokeTransparency = .8
  334. wait()
  335. Txt.TextStrokeTransparency = .9
  336. wait()
  337. Txt.TextStrokeTransparency = 1
  338. wait()
  339.  
  340. for v = 1, #Txt.Text do
  341. Txt.Text=string.sub(msg,-1,v)
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349. end;
  350. Gui:remove()
  351. end)
  352. end)
  353. else
  354. end
  355. end
  356.  
  357.  
  358.  
  359.  
  360. function PlaySound(id, pitch, looped)
  361. epicsound = Instance.new("Sound")
  362. epicsound.Name = "FazbearSound"
  363. epicsound.SoundId = "rbxassetid://"..id
  364. epicsound.Volume = 1.5
  365. epicsound.Pitch = pitch
  366. if looped == nil then
  367. looped = true
  368. else
  369. looped = looped
  370. end
  371. wait()
  372. epicsound.Looped = looped
  373. epicsound.Parent = workspace
  374. es=epicsound:clone()
  375. es:Stop()
  376. es.Parent = chr
  377. wait()
  378. es:Play()
  379. end
  380.  
  381.  
  382.  
  383.  
  384. lp.Chatted:connect(function(msg)
  385. Chat(msg)
  386. end)
  387.  
  388. goldie=true
  389.  
  390.  
  391. function StopMusic()
  392. if chr:FindFirstChild("FazbearSound") then
  393. if chr.FazbearSound.ClassName == "Sound" then
  394. chr.FazbearSound:Stop()
  395. wait()
  396. chr.FazbearSound:Destroy()
  397. end
  398. end
  399. end
  400.  
  401. Name("")
  402.  
  403.  
  404. mouseV2.KeyDown:connect(function(key)
  405. if key == "g" then
  406. if goldie==false then
  407. goldie=true
  408.  
  409. elseif goldie==true then
  410. goldie=false
  411.  
  412. end
  413. elseif key == "q" then -- Plays a song
  414. StopMusic()
  415. PlaySound(449394841, 0.8, false)
  416. elseif key == "e" then -- Plays a song
  417. StopMusic()
  418. PlaySound(449394892, 0.8, false)
  419. wait(2.4)
  420. StopMusic()
  421. elseif key == "t" then -- Stops any sound(s) playing from your torso
  422. StopMusic()
  423.  
  424. end
  425. end)
  426.  
  427.  
  428.  
  429. hum.Died:connect(function()
  430. es.Pitch = 10
  431. wait()
  432. es:Pause()
  433. es:Stop()
  434. es.Name = "Ded"
  435. wait()
  436. es:Destroy()
  437. end)
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444. function makeframe(par, trans, pos, size, color, name)
  445. local frame = Instance.new("Frame")
  446. frame.Parent = par
  447. frame.BackgroundTransparency = trans
  448. frame.BorderSizePixel = 0
  449. frame.Position = pos
  450. frame.Size = size
  451. frame.BackgroundColor3 = color
  452. frame.Name = name
  453. return frame
  454. end
  455. function makelabel(par, text, trans, stroketrans, name)
  456. local label = Instance.new("TextLabel")
  457. label.Parent = par
  458. label.BackgroundTransparency = 1
  459. label.Size = ud(1, 0, 1, 0)
  460. label.Position = ud(0, 0, 0, 0)
  461. label.TextColor3 = c3(255, 255, 255)
  462. label.TextStrokeTransparency = stroketrans
  463. label.TextTransparency = trans
  464. label.FontSize = Enum.FontSize.Size32
  465. label.Font = Enum.Font.Legacy
  466. label.BorderSizePixel = 0
  467. label.TextScaled = true
  468. label.Text = text
  469. label.Name = name
  470. return label
  471. end
  472. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1")
  473. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2")
  474. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3")
  475. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4")
  476. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1")
  477. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2")
  478. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3")
  479. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4")
  480. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  481. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  482. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  483. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  484. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  485. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  486. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  487. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar")
  488. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
  489. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  490. if showstunbar == true then
  491. stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame")
  492. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
  493. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  494. end
  495. if showstats == true then
  496. defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame")
  497. damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame")
  498. speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame")
  499. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  500. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  501. speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text")
  502. end
  503. function NoOutline(Part)
  504. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  505. end
  506. local weldBetween = function(a, b)
  507. local weldd = Instance.new("ManualWeld")
  508. weldd.Part0 = a
  509. weldd.Part1 = b
  510. weldd.C0 = CFrame.new()
  511. weldd.C1 = b.CFrame:inverse() * a.CFrame
  512. weldd.Parent = a
  513. return weldd
  514. end
  515. ArtificialHeartbeat = Instance.new("BindableEvent", script)
  516. ArtificialHeartbeat.Name = "ArtificialHeartbeat"
  517. script:WaitForChild("ArtificialHeartbeat")
  518. frame = 0.016666666666666666
  519. tf = 0
  520. allowframeloss = false
  521. tossremainder = false
  522. lastframe = tick()
  523. script.ArtificialHeartbeat:Fire()
  524. game:GetService("RunService").Heartbeat:connect(function(s, p)
  525. tf = tf + s
  526. if tf >= frame then
  527. if allowframeloss then
  528. script.ArtificialHeartbeat:Fire()
  529. lastframe = tick()
  530. else
  531. for i = 1, math.floor(tf / frame) do
  532. script.ArtificialHeartbeat:Fire()
  533. end
  534. lastframe = tick()
  535. end
  536. if tossremainder then
  537. tf = 0
  538. else
  539. tf = tf - frame * math.floor(tf / frame)
  540. end
  541. end
  542. end)
  543. function nooutline(part)
  544. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  545. end
  546. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  547. local fp = it("Part")
  548. fp.formFactor = formfactor
  549. fp.Parent = parent
  550. fp.Reflectance = reflectance
  551. fp.Transparency = transparency
  552. fp.CanCollide = false
  553. fp.Locked = true
  554. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  555. fp.Name = name
  556. fp.Size = size
  557. fp.Position = Character.Torso.Position
  558. nooutline(fp)
  559. fp.Material = material
  560. fp:BreakJoints()
  561. return fp
  562. end
  563. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  564. local mesh = it(Mesh)
  565. mesh.Parent = part
  566. if Mesh == "SpecialMesh" then
  567. mesh.MeshType = meshtype
  568. mesh.MeshId = meshid
  569. end
  570. mesh.Offset = offset
  571. mesh.Scale = scale
  572. return mesh
  573. end
  574. function weld(parent, part0, part1, c0, c1)
  575. local weld = it("Weld")
  576. weld.Parent = parent
  577. weld.Part0 = part0
  578. weld.Part1 = part1
  579. weld.C0 = c0
  580. weld.C1 = c1
  581. return weld
  582. end
  583. Humanoid.CameraOffset = vt(0, 12, 0)
  584. Humanoid.JumpPower = Humanoid.JumpPower * 2
  585. coroutine.resume(coroutine.create(function()
  586. Humanoid.MaxHealth = 50000
  587. wait(0.1)
  588. Humanoid.Health = Humanoid.MaxHealth
  589. end))
  590. m = Instance.new("Model", Character)
  591. m.Name = "Outer Being"
  592. healthscript = Character:FindFirstChild("Health")
  593. if healthscript ~= nil then
  594. healthscript:Destroy()
  595. end
  596. Effects = Instance.new("Folder", m)
  597. Effects.Name = "Effects"
  598. local outerbeingtransparency = 1
  599. local head2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))head2.Material = "Neon"
  600. local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25)*4)
  601. local torso2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))torso2.Material = "Neon"
  602. local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25)*4)
  603. local leftarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))leftarm2.Material = "Neon"
  604. local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
  605. local rightarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))rightarm2.Material = "Neon"
  606. local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
  607. local leftleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))leftleg2.Material = "Neon"
  608. local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
  609. local rightleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))rightleg2.Material = "Neon"
  610.  
  611. local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4)
  612. head2.CFrame = Head.CFrame
  613. torso2.CFrame = Head.CFrame
  614. leftarm2.CFrame = Head.CFrame
  615. rightarm2.CFrame = Head.CFrame
  616. leftleg2.CFrame = Head.CFrame
  617. rightleg2.CFrame = Head.CFrame
  618. local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0))
  619. local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0))
  620. local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0))
  621. local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0))
  622. local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0))
  623. local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0))
  624. head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0)
  625. torso2weld.C1 = cf(0, 0, 0)
  626. rightarm2weld.C1 = cf(0, 2.5, -0.5)
  627. leftarm2weld.C1 = cf(0, 2.5, -0.5)
  628. rightleg2weld.C1 = cf(0, 5, 0)
  629. leftleg2weld.C1 = cf(0, 5, 0)
  630. coroutine.resume(coroutine.create(function()
  631. while Humanoid.Health ~= 0 do
  632. ArtificialHeartbeat.Event:wait()
  633. head2weld.C0 = cf(0, 4, 0) * Neck.C0
  634. torso2weld.C0 = cf(0, 0, 0)
  635. rightarm2weld.C0 = cf(6, 2, 0) * RW.C0
  636. leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0
  637. rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0
  638. leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0
  639. head2.Transparency = outerbeingtransparency
  640. torso2.Transparency = outerbeingtransparency
  641. leftarm2.Transparency = outerbeingtransparency
  642. rightarm2.Transparency = outerbeingtransparency
  643. leftleg2.Transparency = outerbeingtransparency
  644. rightleg2.Transparency = outerbeingtransparency
  645. end
  646. end))
  647. Humanoid.Died:connect(function()
  648. end)
  649. for i, v in pairs(Character:GetChildren()) do
  650. if v:IsA("Model") then
  651. for _, c in pairs(v:GetChildren()) do
  652. if c:IsA("Part") then
  653. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  654. end
  655. end
  656. end
  657. end
  658. tran = 0
  659. for i,v in pairs(Character:GetChildren()) do
  660. if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then
  661. Glow1 = Color3.new(.1,0,.6)
  662. Glow2 = Color3.new(0,0,0)
  663.  
  664. GlowParticle = Instance.new("ParticleEmitter",v)
  665. GlowParticle.LightEmission = 1
  666. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  667. GlowParticle.Size = NumberSequence.new(0,2)
  668.  
  669. GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845"
  670. GlowParticle.Transparency = NumberSequence.new(tran,1)
  671. GlowParticle.LockedToPart = true
  672. GlowParticle.Lifetime = NumberRange.new(0.5)
  673. GlowParticle.Rate= 300
  674. GlowParticle.Speed =NumberRange.new(0)
  675. end end
  676. print([[
  677. Vanta loaded.
  678. Unleash your power on your enemies.]])
  679. function so(id, par, vol, pit)
  680. coroutine.resume(coroutine.create(function()
  681. local sou = Instance.new("Sound", par or workspace)
  682. sou.Volume = vol
  683. sou.Pitch = pit or 1
  684. sou.SoundId = id
  685. ArtificialHeartbeat.Event:wait()
  686. sou:play()
  687. game:GetService("Debris"):AddItem(sou, 6)
  688. end))
  689. end
  690. function clerp(a, b, t)
  691. local qa = {
  692. QuaternionFromCFrame(a)
  693. }
  694. local qb = {
  695. QuaternionFromCFrame(b)
  696. }
  697. local ax, ay, az = a.x, a.y, a.z
  698. local bx, by, bz = b.x, b.y, b.z
  699. local _t = 1 - t
  700. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  701. end
  702. function QuaternionFromCFrame(cf)
  703. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  704. local trace = m00 + m11 + m22
  705. if trace > 0 then
  706. local s = math.sqrt(1 + trace)
  707. local recip = 0.5 / s
  708. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  709. else
  710. local i = 0
  711. if m00 < m11 then
  712. i = 1
  713. end
  714. if m22 > (i == 0 and m00 or m11) then
  715. i = 2
  716. end
  717. if i == 0 then
  718. local s = math.sqrt(m00 - m11 - m22 + 1)
  719. local recip = 0.5 / s
  720. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  721. elseif i == 1 then
  722. local s = math.sqrt(m11 - m22 - m00 + 1)
  723. local recip = 0.5 / s
  724. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  725. elseif i == 2 then
  726. local s = math.sqrt(m22 - m00 - m11 + 1)
  727. local recip = 0.5 / s
  728. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  729. end
  730. end
  731. end
  732. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  733. local xs, ys, zs = x + x, y + y, z + z
  734. local wx, wy, wz = w * xs, w * ys, w * zs
  735. local xx = x * xs
  736. local xy = x * ys
  737. local xz = x * zs
  738. local yy = y * ys
  739. local yz = y * zs
  740. local zz = z * zs
  741. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  742. end
  743. function QuaternionSlerp(a, b, t)
  744. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  745. local startInterp, finishInterp
  746. if cosTheta >= 1.0E-4 then
  747. if 1 - cosTheta > 1.0E-4 then
  748. local theta = math.acos(cosTheta)
  749. local invSinTheta = 1 / math.sin(theta)
  750. startInterp = math.sin((1 - t) * theta) * invSinTheta
  751. finishInterp = math.sin(t * theta) * invSinTheta
  752. else
  753. startInterp = 1 - t
  754. finishInterp = t
  755. end
  756. elseif 1 + cosTheta > 1.0E-4 then
  757. local theta = math.acos(-cosTheta)
  758. local invSinTheta = 1 / math.sin(theta)
  759. startInterp = math.sin((t - 1) * theta) * invSinTheta
  760. finishInterp = math.sin(t * theta) * invSinTheta
  761. else
  762. startInterp = t - 1
  763. finishInterp = t
  764. end
  765. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  766. end
  767. function rayCast(Pos, Dir, Max, Ignore)
  768. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  769. end
  770. function makegui(cframe, text, color)
  771. local c = Instance.new("Part")
  772. c.Size = vt(0.2, 0.2, 0.2)
  773. c.Transparency = 1
  774. Instance.new("BodyGyro").Parent = c
  775. c.Parent = Effects
  776. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  777. local f = Instance.new("BodyPosition")
  778. f.P = 2000
  779. f.D = 100
  780. f.maxForce = vt(math.huge, math.huge, math.huge)
  781. f.position = c.Position + vt(0, 6, 0)
  782. f.Parent = c
  783. game:GetService("Debris"):AddItem(c, 5)
  784. c.CanCollide = false
  785. c.Parent = workspace
  786. c.CanCollide = false
  787. local bg = Instance.new("BillboardGui", c)
  788. bg.Adornee = c
  789. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  790. bg.StudsOffset = vt(-2, 2, 0)
  791. bg.AlwaysOnTop = false
  792. local tl = Instance.new("TextLabel", bg)
  793. tl.BackgroundTransparency = 1
  794. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  795. tl.Text = text
  796. tl.Font = Enum.Font.SourceSans
  797. tl.FontSize = Enum.FontSize.Size42
  798. tl.TextColor3 = color
  799. tl.TextScaled = false
  800. tl.TextStrokeTransparency = 0
  801. tl.TextScaled = true
  802. tl.TextWrapped = true
  803. f.Parent = c
  804. coroutine.resume(coroutine.create(function()
  805. wait(0.25)
  806. for i = 1, 5 do
  807. ArtificialHeartbeat.Event:wait()
  808. f.position = c.Position - vt(0, 0.5, 0)
  809. end
  810. end))
  811. coroutine.resume(coroutine.create(function()
  812. wait(2)
  813. for i = 1, 10 do
  814. ArtificialHeartbeat.Event:wait()
  815. tl.TextTransparency = tl.TextTransparency + 0.1
  816. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  817. f.position = c.Position + vt(0, 0.5, 0)
  818. end
  819. c.Parent = nil
  820. end))
  821. end
  822. local CritChance = Instance.new("NumberValue", Stats)
  823. CritChance.Name = "CritChance"
  824. CritChance.Value = 1
  825. local critchancenumber = 50
  826. local cancrit = false
  827. local canpenetratearmor = false
  828. local cancollidewithhitbox = false
  829. local sethitblockvaluetofalse = true
  830. local antiteamkill = false
  831. local HitPlayerSounds = {
  832. 199149137,
  833. 199149186,
  834. 199149221,
  835. 199149235,
  836. 199149269,
  837. 199149297
  838. }
  839. local HitArmorSounds = {
  840. 199149321,
  841. 199149338,
  842. 199149367,
  843. 199149409,
  844. 199149452
  845. }
  846. local HitWeaponSounds = {
  847. 199148971,
  848. 199149025,
  849. 199149072,
  850. 199149109,
  851. 199149119
  852. }
  853. local HitBlockSounds = {199148933, 199148947}
  854. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  855. if hit.Parent == nil then
  856. return
  857. end
  858. h = hit.Parent:FindFirstChild("Humanoid")
  859. for _, v in pairs(hit.Parent:children()) do
  860. if v:IsA("Humanoid") then
  861. h = v
  862. end
  863. end
  864. if antiteamkill == true then
  865. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  866. opponent = game.Players:FindFirstChild(hit.Parent.Name)
  867. end
  868. if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
  869. return
  870. end
  871. end
  872. if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
  873. StaggerHitAnim.Value = true
  874. so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  875. return
  876. end
  877. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  878. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  879. end
  880. if hit.Parent.className == "Hat" then
  881. hit = hit.Parent.Parent:findFirstChild("Head")
  882. end
  883. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  884. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  885. return
  886. end
  887. if hit.Parent:findFirstChild("Stats") ~= nil then
  888. if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
  889. hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
  890. end
  891. elseif hit.Parent:findFirstChild("StunValue") ~= nil then
  892. hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
  893. end
  894. if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
  895. hit.Parent:findFirstChild("StaggerAnim").Value = true
  896. end
  897. if hit.Parent:findFirstChild("Stats") ~= nil then
  898. if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
  899. makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  900. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  901. if ranged ~= true then
  902. if sethitblockvaluetofalse == true then
  903. hit.Parent.Stats:findFirstChild("BlockValue").Value = false
  904. end
  905. StaggerAnim.Value = true
  906. end
  907. return
  908. end
  909. elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
  910. makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  911. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  912. if ranged ~= true then
  913. if sethitblockvaluetofalse == true then
  914. hit.Parent:findFirstChild("BlockValue").Value = false
  915. end
  916. StaggerAnim.Value = true
  917. end
  918. return
  919. end
  920. local D = math.random(minim, maxim) * Damage.Value
  921. if hit.Parent:FindFirstChild("Stats") ~= nil then
  922. if hit.Parent.Stats:FindFirstChild("Defense") then
  923. if canpenetratearmor == true then
  924. else
  925. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  926. end
  927. elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
  928. end
  929. elseif hit.Parent:FindFirstChild("Defense") then
  930. if canpenetratearmor == true then
  931. else
  932. D = D / hit.Parent:FindFirstChild("Defense").Value
  933. end
  934. elseif hit.Parent:FindFirstChild("Defense") == nil then
  935. end
  936. if cancrit == true then
  937. CritChance.Value = math.random(1, critchancenumber)
  938. if CritChance.Value == critchancenumber then
  939. D = D * 2
  940. end
  941. end
  942. h.Health = h.Health - D
  943. if D <= 3 and staghit == true then
  944. if ranged ~= true then
  945. StaggerHitAnim.Value = true
  946. end
  947. so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  948. elseif D > 3 and ranged ~= true then
  949. so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  950. end
  951. if D > 2 and D < 20 then
  952. if CritChance.Value == critchancenumber then
  953. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  954. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  955. else
  956. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0))
  957. end
  958. elseif D >= 20 then
  959. if CritChance.Value == critchancenumber then
  960. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  961. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  962. else
  963. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
  964. end
  965. else
  966. if D <= 2 then
  967. if CritChance.Value == critchancenumber then
  968. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  969. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  970. else
  971. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
  972. end
  973. else
  974. end
  975. end
  976. if Type == "Normal" then
  977. vp = Instance.new("BodyVelocity")
  978. vp.P = 500
  979. vp.maxForce = vt(math.huge, 0, math.huge)
  980. if KnockbackType == 1 then
  981. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  982. elseif KnockbackType == 2 then
  983. vp.velocity = Property.CFrame.lookVector * knockback
  984. end
  985. if knockback > 0 then
  986. vp.Parent = hit.Parent.Torso
  987. end
  988. game:GetService("Debris"):AddItem(vp, 0.5)
  989. end
  990. debounce = Instance.new("BoolValue")
  991. debounce.Name = "DebounceHit"
  992. debounce.Parent = hit.Parent
  993. debounce.Value = true
  994. game:GetService("Debris"):AddItem(debounce, Delay)
  995. c = Instance.new("ObjectValue")
  996. c.Name = "creator"
  997. c.Value = Player
  998. c.Parent = h
  999. game:GetService("Debris"):AddItem(c, 0.5)
  1000. end
  1001. end
  1002. function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff)
  1003. if Location[Stat] ~= nil then
  1004. Location[Stat].Value = Location[Stat].Value - Amount
  1005. if ShowDebuff == true then
  1006. if Location[Stat].Name == "Defense" then
  1007. makegui(CFrame, "-Defense", c3(1, 1, 1))
  1008. elseif Location[Stat].Name == "Damage" then
  1009. makegui(CFrame, "-Damage", c3(1, 1, 1))
  1010. elseif Location[Stat].Name == "Speed" then
  1011. makegui(CFrame, "-Movement", c3(1, 1, 1))
  1012. end
  1013. end
  1014. coroutine.resume(coroutine.create(function()
  1015. wait(Duration)
  1016. Location[Stat].Value = Location[Stat].Value + Amount
  1017. end))
  1018. end
  1019. end
  1020. function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff)
  1021. if Location[Stat] ~= nil then
  1022. Location[Stat].Value = Location[Stat].Value + Amount
  1023. if ShowBuff == true then
  1024. if Location[Stat].Name == "Defense" then
  1025. makegui(CFrame, "+Defense", c3(1, 1, 1))
  1026. elseif Location[Stat].Name == "Damage" then
  1027. makegui(CFrame, "+Damage", c3(1, 1, 1))
  1028. elseif Location[Stat].Name == "Speed" then
  1029. makegui(CFrame, "+Movement", c3(1, 1, 1))
  1030. end
  1031. end
  1032. coroutine.resume(coroutine.create(function()
  1033. wait(Duration)
  1034. Location[Stat].Value = Location[Stat].Value - Amount
  1035. end))
  1036. end
  1037. end
  1038. function GetDist(Part1, Part2, magni)
  1039. local targ = Part1.Position - Part2.Position
  1040. local mag = targ.magnitude
  1041. if magni >= mag then
  1042. return true
  1043. else
  1044. return false
  1045. end
  1046. end
  1047. function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1048. for _, c in pairs(workspace:children()) do
  1049. local hum = c:findFirstChild("Humanoid")
  1050. if hum ~= nil then
  1051. local head = c:findFirstChild("Torso")
  1052. if head ~= nil then
  1053. local targ = head.Position - Part.Position
  1054. local mag = targ.magnitude
  1055. if magni >= mag and c.Name ~= Player.Name then
  1056. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1057. end
  1058. end
  1059. end
  1060. end
  1061. end
  1062. function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last)
  1063. local magz = (p0 - p1).magnitude
  1064. local curpos = p0
  1065. local trz = {
  1066. -ofs,
  1067. ofs
  1068. }
  1069. for i = 1, tym do
  1070. do
  1071. local li = Instance.new("Part", workspace)
  1072. li.TopSurface = 0
  1073. li.BottomSurface = 0
  1074. li.Anchored = true
  1075. li.Transparency = tra or 0.4
  1076. li.BrickColor = brickcolor
  1077. li.formFactor = "Custom"
  1078. li.CanCollide = false
  1079. li.Size = vt(th, th, magz / tym)
  1080. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1081. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  1082. if tym == i then
  1083. local magz2 = (curpos - p1).magnitude
  1084. li.Size = vt(th, th, magz2)*4
  1085. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  1086. else
  1087. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  1088. end
  1089. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  1090. game.Debris:AddItem(li, last)
  1091. coroutine.resume(coroutine.create(function()
  1092. while li.Transparency ~= 1 do
  1093. for i = 0, 1, last do
  1094. ArtificialHeartbeat.Event:wait()
  1095. li.Transparency = li.Transparency + 0.1 / last
  1096. end
  1097. end
  1098. end))
  1099. end
  1100. end
  1101. end
  1102. function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1103. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1104. prt.Anchored = true
  1105. prt.CFrame = cframe
  1106. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1107. game:GetService("Debris"):AddItem(prt, 10)
  1108. coroutine.resume(coroutine.create(function(Part, Mesh)
  1109. for i = 0, 1, delay do
  1110. ArtificialHeartbeat.Event:wait()
  1111. Part.CFrame = Part.CFrame
  1112. Part.Transparency = i
  1113. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1114. end
  1115. Part.Parent = nil
  1116. end), prt, msh)
  1117. end
  1118. function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1119. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1120. prt.Anchored = true
  1121. prt.CFrame = cframe
  1122. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1123. game:GetService("Debris"):AddItem(prt, 10)
  1124. coroutine.resume(coroutine.create(function(Part, Mesh)
  1125. for i = 0, 1, delay do
  1126. ArtificialHeartbeat.Event:wait()
  1127. Part.CFrame = Part.CFrame
  1128. Part.Transparency = i
  1129. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1130. end
  1131. Part.Parent = nil
  1132. end), prt, msh)
  1133. end
  1134. function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1135. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1136. prt.Anchored = true
  1137. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1138. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
  1139. game:GetService("Debris"):AddItem(prt, 10)
  1140. coroutine.resume(coroutine.create(function(Part, Mesh)
  1141. for i = 0, 1, delay do
  1142. ArtificialHeartbeat.Event:wait()
  1143. if rotate == true then
  1144. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1145. else
  1146. end
  1147. Part.Transparency = i
  1148. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1149. end
  1150. Part.Parent = nil
  1151. end), prt, msh)
  1152. end
  1153. function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1154. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1155. prt.Anchored = true
  1156. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1157. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
  1158. game:GetService("Debris"):AddItem(prt, 10)
  1159. CF = prt.CFrame
  1160. num = math.random(5, 20)
  1161. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  1162. for i = 0, 1, delay do
  1163. ArtificialHeartbeat.Event:wait()
  1164. if rotate == true then
  1165. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1166. else
  1167. Part.CFrame = CF2 * cf(0, i * Num, 0)
  1168. end
  1169. Part.Transparency = i
  1170. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1171. end
  1172. Part.Parent = nil
  1173. end), prt, msh, CF, num)
  1174. end
  1175. function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1176. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1177. prt.Anchored = true
  1178. prt.CFrame = cframe
  1179. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
  1180. game:GetService("Debris"):AddItem(prt, 10)
  1181. coroutine.resume(coroutine.create(function(Part, Mesh)
  1182. for i = 0, 1, delay do
  1183. ArtificialHeartbeat.Event:wait()
  1184. Part.Transparency = i
  1185. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1186. end
  1187. Part.Parent = nil
  1188. end), prt, msh)
  1189. end
  1190. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1191. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1192. prt.Anchored = true
  1193. prt.CFrame = cframe
  1194. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
  1195. game:GetService("Debris"):AddItem(prt, 10)
  1196. coroutine.resume(coroutine.create(function(Part, Mesh)
  1197. for i = 0, 1, delay do
  1198. ArtificialHeartbeat.Event:wait()
  1199. Part.Transparency = i
  1200. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1201. end
  1202. Part.Parent = nil
  1203. end), prt, msh)
  1204. end
  1205. function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay)
  1206. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1207. prt.Anchored = true
  1208. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1209. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4)
  1210. game:GetService("Debris"):AddItem(prt, 10)
  1211. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1212. CF = Part.CFrame
  1213. Numbb = 0
  1214. randnumb = math.random() - math.random()
  1215. for i = 0, 1, delay do
  1216. ArtificialHeartbeat.Event:wait()
  1217. CF = CF * cf(0, 1, 0)
  1218. if rotate == true then
  1219. Part.CFrame = CF * angles(Numbb, 0, 0)
  1220. elseif rotate == false then
  1221. Part.CFrame = CF
  1222. end
  1223. Part.Transparency = i
  1224. Numbb = Numbb + randnumb
  1225. end
  1226. Part.Parent = nil
  1227. end), prt, CF, Numbb, randnumb)
  1228. end
  1229. function ElecEffect(brickcolor, cf, x, y, z, delay)
  1230. local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt())
  1231. prt.Anchored = true
  1232. prt.CFrame = cf
  1233. xval = math.random()
  1234. yval = math.random()
  1235. zval = math.random()
  1236. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)*4)
  1237. game:GetService("Debris"):AddItem(prt, 10)
  1238. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  1239. for i = 0, 1, delay do
  1240. ArtificialHeartbeat.Event:wait()
  1241. Part.CFrame = Part.CFrame
  1242. xvaal = xvaal - 0.1 * (delay * 10)
  1243. yvaal = yvaal - 0.1 * (delay * 10)
  1244. zvaal = zvaal - 0.1 * (delay * 10)
  1245. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  1246. Part.Transparency = i
  1247. end
  1248. Part.Parent = nil
  1249. end), prt, msh, xval, yval, zval)
  1250. end
  1251. function subtractmana(k)
  1252. if k <= mana then
  1253. mana = mana - k
  1254. end
  1255. end
  1256. local idleangle = 0
  1257. local idlen = 0
  1258. local donum = 0
  1259. local sine = 0
  1260. local change = 1
  1261. local val = 0
  1262. local walkinganim = false
  1263. local handidle = false
  1264. local walk = 0
  1265. local someangle = 0
  1266. local change2 = 1
  1267. local stundelay = 0
  1268. local manadelay = 0
  1269. local dieanim = false
  1270. local robloxidleanimation = Instance.new("Animation", Torso)
  1271. robloxidleanimation.Name = "robloxidleanimation"
  1272. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1273. Animator = Humanoid:findFirstChild("Animator")
  1274. Animate = Character:findFirstChild("Animate")
  1275. Running = Head:FindFirstChild("Running")
  1276. if Running ~= nil then
  1277. Running.Volume = 0
  1278. end
  1279. local startequipped = false
  1280. local startequippedwithequipanimation = true
  1281. local disableanimator = true
  1282. local disableanimate = false
  1283. local alternatewalk = false
  1284. local customwalk = false
  1285. local hidemenu = false
  1286. local allowmenutofunction = false
  1287. local allowabilitestofunction = false
  1288. local canunequiporequip = false
  1289. local allowidle = false
  1290. local allowwalking = false
  1291. local disablemovingarms = false
  1292. local usemotorsinsteadofwelds = false
  1293. local leftarm = false
  1294. local rightarm = false
  1295. local allowhopperbin = false
  1296. local allowstunbar = false
  1297. local walkspeeddependsonspeedvalue = true
  1298. local alternatemanaregensystem = false
  1299. local showhealthmanaandstunnumbers = false
  1300. local changebarcolorsifnotenoughmana = false
  1301. local disablejumpifstaggeredorstunned = false
  1302. if hidemenu == true then
  1303. for _, v in pairs(scrn:children()) do
  1304. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  1305. v.Visible = false
  1306. end
  1307. end
  1308. end
  1309. if disablejumpifstaggeredorstunned == true then
  1310. Humanoid.Changed:connect(function(Jump)
  1311. if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then
  1312. Humanoid.Jump = false
  1313. end
  1314. end)
  1315. end
  1316. if allowmenutofunction == true then
  1317. for _, v in pairs(scrn:GetChildren()) do
  1318. if v.ClassName == "Frame" then
  1319. for _, b in pairs(v:GetChildren()) do
  1320. if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then
  1321. coroutine.resume(coroutine.create(function(TheTextLabel)
  1322. wait(menuupdatespeed)
  1323. for i = 1, 0, -0.1 do
  1324. ArtificialHeartbeat.Event:wait()
  1325. TheTextLabel.TextTransparency = i
  1326. TheTextLabel.TextStrokeTransparency = i
  1327. end
  1328. TheTextLabel.TextTransparency = 0
  1329. TheTextLabel.TextStrokeTransparency = 0
  1330. end), b)
  1331. end
  1332. end
  1333. end
  1334. end
  1335. end
  1336. if allowmenutofunction == true and allowabilitestofunction == true then
  1337. for _, v in pairs(scrn:GetChildren()) do
  1338. if v.ClassName == "Frame" then
  1339. for _, b in pairs(v:GetChildren()) do
  1340. if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
  1341. coroutine.resume(coroutine.create(function(TheTextLabel)
  1342. wait(menuupdatespeed)
  1343. for i = 1, 0, -0.1 do
  1344. ArtificialHeartbeat.Event:wait()
  1345. TheTextLabel.TextTransparency = i
  1346. TheTextLabel.TextStrokeTransparency = i
  1347. end
  1348. TheTextLabel.TextTransparency = 0
  1349. TheTextLabel.TextStrokeTransparency = 0
  1350. end), b)
  1351. end
  1352. end
  1353. end
  1354. end
  1355. end
  1356. if allowhopperbin == true then
  1357. if script.Parent.className ~= "HopperBin" then
  1358. Tool = Instance.new("HopperBin")
  1359. Tool.Parent = Backpack
  1360. Tool.Name = "Weapon Name"
  1361. script.Parent = Tool
  1362. end
  1363. Bin = script.Parent
  1364. end
  1365. if disablemovingarms == true then
  1366. RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1367. LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1368. RSH, LSH = nil, nil
  1369. if usemotorsinsteadofwelds == true then
  1370. RW = Instance.new("Motor")
  1371. LW = Instance.new("Motor")
  1372. else
  1373. RW = Instance.new("Weld")
  1374. LW = Instance.new("Weld")
  1375. end
  1376. RW.Name = "Right Shoulder"
  1377. LW.Name = "Left Shoulder"
  1378. RSH = Torso["Right Shoulder"]
  1379. LSH = Torso["Left Shoulder"]
  1380. RSH.Parent = Torso
  1381. LSH.Parent = Torso
  1382. RW.Name = "Right Shoulder"
  1383. RW.Part0 = Torso
  1384. RW.C0 = cf(1.5, 0.5, 0)
  1385. RW.C1 = cf(0, 0.5, 0)
  1386. RW.Part1 = Character["Right Arm"]
  1387. RW.Parent = nil
  1388. LW.Name = "Left Shoulder"
  1389. LW.Part0 = Torso
  1390. LW.C0 = cf(-1.5, 0.5, 0)
  1391. LW.C1 = cf(0, 0.5, 0)
  1392. LW.Part1 = Character["Left Arm"]
  1393. LW.Parent = nil
  1394. else
  1395. RW = Torso["Right Shoulder"]
  1396. LW = Torso["Left Shoulder"]
  1397. LH = Torso["Left Hip"]
  1398. RH = Torso["Right Hip"]
  1399. RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  1400. LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  1401. end
  1402. if allowidle == true then
  1403. coroutine.resume(coroutine.create(function()
  1404. while true do
  1405. for i = 0, 1, 0.08 do
  1406. wait()
  1407. idleangle = idleangle + 0.005 * idlen
  1408. idlen = idlen - 0.1
  1409. end
  1410. idlen = 0
  1411. for i = 0, 1, 0.08 do
  1412. wait()
  1413. idleangle = idleangle - 0.005 * idlen
  1414. idlen = idlen - 0.1
  1415. end
  1416. idlen = 0
  1417. idleangle = 0
  1418. end
  1419. end))
  1420. end
  1421. function equipanim()
  1422. attack = true
  1423. local equipvelocity = Instance.new("BodyVelocity", Torso)
  1424. equipvelocity.P = 500
  1425. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  1426. equipvelocity.Velocity = Vector3.new(0, 0.1, 0)
  1427. if intro == true then
  1428. Music2:Play()
  1429. for i = 0, 1, 0.02 do
  1430. ArtificialHeartbeat.Event:wait()
  1431.  
  1432. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1433. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1434. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(40), math.rad(-10)) * RWC0, 0.15)
  1435. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1436. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
  1437. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.15)
  1438. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1439. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1440. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1441. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1442. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1443. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  1444. end
  1445. wait(1)
  1446. end
  1447. for i = 0, 1, 0.02 do
  1448. ArtificialHeartbeat.Event:wait()
  1449. MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), 15, 15, 15, 0.5, 0.5, 0.5, 0.04)
  1450. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05)
  1451. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1452. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1453. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1454. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1455. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  1456. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1457. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1458. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1459. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1460. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1461. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  1462. end
  1463. for i = 0, 1, 0.02 do
  1464. ArtificialHeartbeat.Event:wait()
  1465.  
  1466. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05)
  1467. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1468. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1469. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1470. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1471. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  1472. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1473. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1474. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1475. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1476. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1477. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  1478. end
  1479. if intro == true then
  1480. Chat("...")
  1481. wait(4)
  1482. Chat("my soul hurts...")
  1483. wait(4)
  1484. Chat("...")
  1485. wait(2)
  1486. Chat("but i can feel it now...")
  1487. wait(4)
  1488. Chat("the power darkness...")
  1489. wait(4)
  1490. Chat("...")
  1491. wait(2)
  1492. Chat("the lost feeling...")
  1493. wait(2)
  1494. Chat("...")
  1495. wait(2)
  1496. Chat("the feeling of being free")
  1497. wait(2.1)
  1498. end
  1499. coroutine.resume(coroutine.create(function()
  1500. for i = 0, 1, 0.1 do
  1501. wait()
  1502. outerbeingtransparency = outerbeingtransparency - 0.05
  1503. end
  1504. outerbeingtransparency = 0.5
  1505. end))
  1506.  
  1507. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  1508. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  1509. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  1510. so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
  1511. so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
  1512. so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
  1513. so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
  1514. newface()
  1515. local BC = char["Body Colors"]
  1516. BC.HeadColor = BrickColor.new("Black")
  1517. BC.LeftArmColor = BrickColor.new("Black")
  1518. BC.LeftLegColor = BrickColor.new("Black")
  1519. BC.RightArmColor = BrickColor.new("Black")
  1520. BC.RightLegColor = BrickColor.new("Black")
  1521. BC.TorsoColor = BrickColor.new("Black")
  1522.  
  1523. local HBill = Instance.new("BillboardGui", hed)
  1524. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  1525. local HHealth, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
  1526. local HText, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel")
  1527. HBill.Size = UDim2.new(15,0,2.2,0)
  1528. HBill.Name = "Health Display"
  1529. HBill.StudsOffset = Vector3.new(0,13,0)
  1530. HBill.AlwaysOnTop = true
  1531. HBill.Enabled = true
  1532.  
  1533. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1534. HMain.BackgroundTransparency = 0.8
  1535. HMain.Size = UDim2.new(1,0,1,0)
  1536. HBarBack.Parent = HMain
  1537. HBarBack.BackgroundColor3 = Color3.new(.5,0,1)
  1538. HBarBack.BorderColor3 = Color3.new(0,0,0)
  1539. HBarBack.BorderSizePixel = 2
  1540. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  1541. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551. HHealth.BackgroundTransparency = 1
  1552. HHealth.Size = UDim2.new(1,0,0.5,0)
  1553. HHealth.Font = "Code"
  1554. HHealth.TextScaled = true
  1555. HHealth.TextColor3 = Color3.new(1,1,1)
  1556. HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color
  1557. HHealth.TextStrokeTransparency = 0
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566. HName.Parent = HMain
  1567. HName.BackgroundTransparency = 1
  1568. HName.Size = UDim2.new(1,0,.3,0)
  1569. HName.Font = "Code"
  1570. HName.Text = ""
  1571. HName.TextScaled = true
  1572. HName.TextColor3 = BrickColor.new("Forest green").Color
  1573. HName.TextStrokeColor3 = Color3.new(0,0,0)
  1574. HName.TextStrokeTransparency = 0
  1575. HName.TextYAlignment = "Top"
  1576. HName.Position = UDim2.new(0, 0, 0, 0)
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. Humanoid = char.Humanoid
  1586.  
  1587. function GainCharge(Humanoid)
  1588. HHealth.Text = ""..Humanoid.Health.." HP"
  1589. if Humanoid.Health < 100 and dieanim == false then
  1590. HHealth.Text = "0 HP"
  1591. end
  1592. HBill.Frame.Frame.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,.3,0)
  1593. if Humanoid.Health >= Humanoid.MaxHealth/2 then
  1594. HBill.Frame.Frame.BackgroundColor3 = Color3.new(.5,0,1)
  1595. elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then
  1596. HBill.Frame.Frame.BackgroundColor3 = Color3.new(.2,0,1)
  1597. elseif Humanoid.Health <= Humanoid.MaxHealth/4 then
  1598. HBill.Frame.Frame.BackgroundColor3 = Color3.new(0,0,0)
  1599. end
  1600.  
  1601. end
  1602.  
  1603. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  1604. HHealth.Text = ""..Humanoid.Health.." HP"
  1605. for i = 0, 1, 0.02 do
  1606. ArtificialHeartbeat.Event:wait()
  1607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1608. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1609. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15)
  1610. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15)
  1611. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1612. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1613. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1614. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1615. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1616. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1617. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1618. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1619. end
  1620.  
  1621. equipvelocity:Destroy()
  1622. Speed.Value = Speed.Value - 0.1
  1623. Defense.Value = Defense.Value + 0.4
  1624. attack = false
  1625.  
  1626.  
  1627. wait(.1)
  1628. Music2:Stop()
  1629. Music1:Play()
  1630. end
  1631. function unequipanim()
  1632. attack = true
  1633. coroutine.resume(coroutine.create(function()
  1634. Humanoid.MaxHealth = math.huge
  1635. wait(0.1)
  1636. Humanoid.Health = Humanoid.MaxHealth
  1637. end))
  1638. local equipvelocity = Instance.new("BodyVelocity", Torso)
  1639. equipvelocity.P = 500
  1640. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  1641. equipvelocity.Velocity = Vector3.new(0, 1, 0)
  1642. so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
  1643. for i = 0, 1, 0.005 do
  1644. ArtificialHeartbeat.Event:wait()
  1645. MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  1646. BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05)
  1647. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15)
  1648. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1649. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1650. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1651. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  1652. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  1653. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1654. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1655. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1656. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  1657. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  1658. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  1659. end
  1660. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  1661. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  1662. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  1663. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
  1664. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
  1665. for i = 1, 2 do
  1666. so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
  1667. so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
  1668. end
  1669. Chat("AAAAAAAAAAAAAAAAAAHHHHH!!!")
  1670. coroutine.resume(coroutine.create(function()
  1671. for i = 0, 1, 0.01 do
  1672. tran = tran + 0.1
  1673.  
  1674.  
  1675.  
  1676. for i,v in pairs(Character:GetChildren()) do
  1677. if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then
  1678. Glow1 = Color3.new(.5,0,1)
  1679. Glow2 = Color3.new(0,0,0)
  1680.  
  1681.  
  1682.  
  1683.  
  1684. v.ParticleEmitter.Transparency = NumberSequence.new(tran,1)
  1685.  
  1686. end end
  1687.  
  1688.  
  1689.  
  1690. wait()
  1691. outerbeingtransparency = outerbeingtransparency + 0.005
  1692. end
  1693. outerbeingtransparency = 1
  1694. end))
  1695. Face.Transparency = 1
  1696. for _, v in pairs(Character:children()) do
  1697. if v:IsA("Part") and v.ClassName ~= "Model" then
  1698. coroutine.resume(coroutine.create(function(Part)
  1699. for i = 0, 1, 0.01 do
  1700. wait()
  1701. Part.Transparency = Part.Transparency + 0.01
  1702. end
  1703. Part.Anchored = true
  1704. Part.Transparency = 1
  1705. end), v)
  1706. elseif v:IsA("Hat") then
  1707. coroutine.resume(coroutine.create(function(Hat)
  1708. for i = 0, 1, 0.01 do
  1709. wait()
  1710. Hat.Transparency = Hat.Transparency + 0.01
  1711. end
  1712. Hat.Anchored = true
  1713. Hat.Transparency = 1
  1714. end), v.Handle)
  1715. end
  1716. end
  1717. local deathnum = 0
  1718. for i = 0, 1, 0.005 do
  1719. ArtificialHeartbeat.Event:wait()
  1720. if deathnum >= 10 then
  1721. deathnum = 0
  1722. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1723. refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
  1724. refpart.Anchored = true
  1725. game:GetService("Debris"):AddItem(refpart, 1)
  1726. MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01)
  1727. MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01)
  1728. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  1729. end
  1730. BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05)
  1731. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15)
  1732. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15)
  1733. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15)
  1734. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15)
  1735. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15)
  1736. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15)
  1737. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1738. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1739. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1740. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1741. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1742. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1743. deathnum = deathnum + 1
  1744. end
  1745. Humanoid.MaxHealth = 0
  1746. Humanoid.Health = 0
  1747. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  1748. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008)
  1749. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008)
  1750. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
  1751. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
  1752. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
  1753. so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
  1754. attack = false
  1755. end
  1756. if startequipped == true then
  1757. equipped = true
  1758. if disableanimate == true then
  1759. Animate.Disabled = true
  1760. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1761. idleanimation:Play()
  1762. end
  1763. if disableanimator == true then
  1764. Animator.Parent = nil
  1765. end
  1766. if disablemovingarms == true then
  1767. RW.Parent = Torso
  1768. LW.Parent = Torso
  1769. RSH.Parent = nil
  1770. LSH.Parent = nil
  1771. end
  1772. Speed.Value = Speed.Value - 0.1
  1773. Defense.Value = Defense.Value + 0.4
  1774. elseif startequippedwithequipanimation == true then
  1775. equipped = true
  1776. if disableanimate == true then
  1777. Animate.Disabled = true
  1778. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1779. idleanimation:Play()
  1780. end
  1781. if disableanimator == true then
  1782. Animator.Parent = nil
  1783. end
  1784. if disablemovingarms == true then
  1785. RW.Parent = Torso
  1786. LW.Parent = Torso
  1787. RSH.Parent = nil
  1788. LSH.Parent = nil
  1789. end
  1790. equipanim()
  1791. end
  1792. function StaggerHit()
  1793. attack = true
  1794. attack = false
  1795. end
  1796. function Stagger()
  1797. attack = true
  1798. attack = false
  1799. end
  1800. function Stun()
  1801. attack = true
  1802. attack = false
  1803. end
  1804. function EAbility()
  1805. attack = true
  1806. attack = false
  1807. end
  1808. function attackone()
  1809. attack = true
  1810.  
  1811. --[[
  1812. local equipvelocity3 = Instance.new("BodyVelocity", Torso)
  1813. equipvelocity3.P = 500
  1814. equipvelocity3.maxForce = vt(math.huge, math.huge, math.huge)
  1815. equipvelocity3.Velocity = Vector3.new(0, 0, 0)
  1816. game:GetService("Debris"):AddItem(equipvelocity3, 1)
  1817.  
  1818. --]]
  1819. local oldspeedvalue = Speed.Value
  1820. Speed.Value = .1
  1821.  
  1822. for i = 0, 0.5, .02 do
  1823. ArtificialHeartbeat.Event:wait()
  1824. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.1)
  1825. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1826. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(50)) * RWC0, 0.15)
  1827. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(-50)) * LWC0, 0.15)
  1828.  
  1829. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.15)
  1830. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1831.  
  1832.  
  1833. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1834. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1835. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1836. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1837. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1838. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1839. end
  1840.  
  1841. ---------------------------------
  1842. for i = 0, .2, .02 do
  1843. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  1844. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  1845. ArtificialHeartbeat.Event:wait()
  1846. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15)
  1847. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1848. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1849. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1850.  
  1851. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
  1852. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
  1853.  
  1854.  
  1855. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1856. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1857. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1858. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1859. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15)
  1860. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1861. end
  1862. local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
  1863. refpart4.CFrame = RootPart.CFrame * cf(0, 0, -17)
  1864. game:GetService("Debris"):AddItem(refpart4, 1)
  1865. MagniDamage(refpart4, 10, 5, 20, math.random(1, 10), "Normal", 0, 1, 0, nil, true, true)
  1866. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
  1867. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
  1868. ----------------------------------------
  1869. for i = 0, .5, .02 do
  1870.  
  1871. ArtificialHeartbeat.Event:wait()
  1872. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15)
  1873. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1874. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  1875. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15)
  1876.  
  1877. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
  1878. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
  1879.  
  1880.  
  1881. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1882. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1883. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1884. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1885. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15)
  1886. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1887. end
  1888. ----------------------------------------
  1889. Speed.Value = oldspeedvalue
  1890. --]]
  1891.  
  1892. attack = false
  1893. end
  1894. function attacktwo()
  1895. attack = true
  1896. local oldspeedvalue = Speed.Value
  1897. Speed.Value = .2
  1898.  
  1899. so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
  1900. for i = 0, 1, 0.05 do
  1901. ArtificialHeartbeat.Event:wait()
  1902. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1903. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  1904. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  1905. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1906. RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.15)
  1907. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1908. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1909. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1910. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1911. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1912. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 1.5, 0), 0.15)
  1913. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1914. end
  1915. for i = 0, 0.5, 0.05 do
  1916. MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05)
  1917. ArtificialHeartbeat.Event:wait()
  1918. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1919. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  1920. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15)
  1921. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15)
  1922. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3)
  1923. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1924. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1925. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1926. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1927. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1928. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3)
  1929. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1930. end
  1931. Speed.Value = .0
  1932. local refpart4 = part(3, Effects, "Neon", 0, 0, BrickColor.new("Dark indigo"), "Effect", vt())
  1933. refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4)
  1934. game:GetService("Debris"):AddItem(refpart4, .5)
  1935. MagniDamage(refpart4, 15, 10, 30, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true)
  1936. MagicBlock(CustomColor, true, refpart4.CFrame * cf(0, -0, 0), 30, 30, 30, 15, 15, 15, 0.08)
  1937. MagicRing(CustomColor, refpart4.CFrame* cf(1, 1, 0) * angles(math.rad(90), math.rad(math.random(-0, 0)), math.rad(math.random(-0, 0))), 1, 1, 20, 1.1, 1.1, -0.5, 0.03)
  1938. for i = 0, 0.5, 0.05 do
  1939.  
  1940. ArtificialHeartbeat.Event:wait()
  1941. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1942. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  1943. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15)
  1944. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15)
  1945. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3)
  1946. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  1947. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1948. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1949. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1950. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1951. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3)
  1952. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1953. end
  1954. ----------------------------------------
  1955. ------------------------------
  1956. Speed.Value = oldspeedvalue
  1957. attack = false
  1958. end
  1959. function attackthree()
  1960. attack = true
  1961. local oldspeedvalue = Speed.Value
  1962. Speed.Value = .1
  1963. for i = 0, .5, 0.05 do
  1964. ArtificialHeartbeat.Event:wait()
  1965. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1966. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15)
  1967. RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(20), math.rad(90)) * RWC0, 0.10)
  1968. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1969. RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1970. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1971. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1972. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1973. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1974. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1975. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1976. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1977. end
  1978.  
  1979. Speed.Value = 0
  1980. for i = 0, .5, 0.05 do
  1981. ArtificialHeartbeat.Event:wait()
  1982. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  1983. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1984. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15)
  1985. RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(10), math.rad(90)) * RWC0, 0.15)
  1986. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  1987. RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1988. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1989. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  1990. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  1991. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1992. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  1993. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  1994. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  1995. end
  1996.  
  1997. local orbnumber = math.random(2, 2)
  1998. coroutine.resume(coroutine.create(function()
  1999. for i = 1, orbnumber do
  2000. wait(.1)
  2001. local orbblastpart = part(3, Effects, "Neon", 0, 1, CustomColor, "Effect", vt())
  2002. local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
  2003. orbblastpart.Anchored = true
  2004. game:GetService("Debris"):AddItem(orbblastpart, 5)
  2005. orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10)))
  2006.  
  2007. so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
  2008. coroutine.resume(coroutine.create(function(Part)
  2009. wait()
  2010. local spread = vt(math.random(-.1, .1), math.random(-.1, .1), math.random(-.1, .1)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100
  2011. local TheHit = Part.Position + vt(0, -1, 0)
  2012. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  2013. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  2014. local mag = (rightarm2.Position - pos).magnitude
  2015. MagicCylinder(CustomColor, cf((rightarm2.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, -1.5, 0, -1.5, 0.08)
  2016. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  2017. Part.Parent = nil
  2018. if hit ~= nil then
  2019. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2020. refpart.CFrame = cf(pos)
  2021. refpart.Anchored = true
  2022. game:GetService("Debris"):AddItem(refpart, 1)
  2023.  
  2024. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05)
  2025. MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06)
  2026. so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
  2027. Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
  2028. MagniDamage(refpart, 10, 5, 8, 0, "Normal", 0, 1, 0, nil, true, true)
  2029. end
  2030. end), orbblastpart)
  2031. end
  2032.  
  2033. end))
  2034.  
  2035. for i = 0, 1, 0.05 do
  2036. ArtificialHeartbeat.Event:wait()
  2037. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  2038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2039. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2040. RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * RWC0, 0.15)
  2041. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2042. RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2043. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2044. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2045. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2046. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2047. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2048. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2049. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2050. end
  2051. Speed.Value = oldspeedvalue
  2052. attack = false
  2053. end
  2054. function attackfour()
  2055. attack = true
  2056. for i = 0, 0.8, 0.05 do
  2057. ArtificialHeartbeat.Event:wait()
  2058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 6 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.15)
  2059. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2060. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-45)) * RWC0, 0.15)
  2061. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-60), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2062. RH.C0 = clerp(RH.C0, cf(.99, -0.0 - idleangle, -.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2063. LH.C0 = clerp(LH.C0, cf(-.99, -1.5 - idleangle, -.2) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.15)
  2064. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2065. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2066. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2067. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2068. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2, 0, 0), 0.15)
  2069. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(1, 4, 0), 0.15)
  2070. end
  2071.  
  2072.  
  2073. for i = 0, 0.6, 0.05 do
  2074. ArtificialHeartbeat.Event:wait()
  2075.  
  2076. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  2077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15)
  2078. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2079. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15)
  2080. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2081. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2082. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2083. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2084. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2085. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2086. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2087. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15)
  2088. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2089. end
  2090. local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
  2091. refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4)
  2092. MagniDamage(refpart4, 13, 5, 20, math.random(5, 10), "Normal", 0, 1, 0, nil, true, true)
  2093. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
  2094. game:GetService("Debris"):AddItem(refpart4, .5)
  2095. for i = 0, 0.6, 0.05 do
  2096. ArtificialHeartbeat.Event:wait()
  2097.  
  2098. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  2099. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15)
  2100. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2101. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15)
  2102. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2103. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2104. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2105. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2106. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2107. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2108. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2109. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15)
  2110. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2111. end
  2112.  
  2113.  
  2114. local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
  2115. refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4)
  2116. MagniDamage(refpart4, 13, 20, 20, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true)
  2117. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
  2118. game:GetService("Debris"):AddItem(refpart4, .5)
  2119. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08)
  2120. attack = false
  2121. end
  2122. --[[
  2123. for i = 0, 0.5, 0.05 do
  2124. ArtificialHeartbeat.Event:wait()
  2125. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2126. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2127. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2128. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2129. RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2130. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2131. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2132. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2133. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2134. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2135. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2136. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2137. end
  2138. --]]
  2139. function Move1()
  2140. Chat("darkness... ")
  2141. attack = true
  2142. for i = 0, 1, 0.25 do
  2143. ArtificialHeartbeat.Event:wait()
  2144. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2145. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2146. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2147. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2148. if Anim ~= "Walk" then
  2149. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2150. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2151. elseif Anim == "Walk" then
  2152. if walkinganim == true then
  2153. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2154. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2155. else
  2156. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2157. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2158. end
  2159. end
  2160.  
  2161. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2162. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2163. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2164. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2165. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2166. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2167. end
  2168. for i = 0, 1, 0.04 do
  2169. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  2170. ArtificialHeartbeat.Event:wait()
  2171. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2172. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2173. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2174. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2175. if Anim ~= "Walk" then
  2176. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2177. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2178. elseif Anim == "Walk" then
  2179. if walkinganim == true then
  2180. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2181. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2182. else
  2183. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2184. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2185. end
  2186. end
  2187. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2188. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2189. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2190. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2191. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2192. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2193. end
  2194. for i = 0, 3, 0.04 do
  2195. ArtificialHeartbeat.Event:wait()
  2196. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  2197. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2198. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2199. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2200. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2201. if Anim ~= "Walk" then
  2202. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2203. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2204. elseif Anim == "Walk" then
  2205. if walkinganim == true then
  2206. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2207. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2208. else
  2209. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2210. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2211. end
  2212. end
  2213. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2214. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2215. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2216. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2217. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2218. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2219. end
  2220.  
  2221. Chat("fall...")
  2222. local orbnumber = math.random(30, 40)
  2223. coroutine.resume(coroutine.create(function()
  2224. for i = 1, orbnumber do
  2225. wait()
  2226. local orbblastpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt())
  2227. local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4)
  2228. orbblastpart.Anchored = true
  2229. game:GetService("Debris"):AddItem(orbblastpart, 5)
  2230. orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10)))
  2231. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05)
  2232. MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 1.5, 1.5, 1.5, 0.04)
  2233. so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
  2234. coroutine.resume(coroutine.create(function(Part)
  2235. wait(.8)
  2236. local spread = vt(math.random(-26, 26), math.random(-10, 10), math.random(-26, 26)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100
  2237. local TheHit = Part.Position + vt(0, -1, 0)
  2238. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  2239. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  2240. local mag = (Part.Position - pos).magnitude
  2241. MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, -0.5, 0, -0.5, 0.08)
  2242. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  2243. Part.Parent = nil
  2244. if hit ~= nil then
  2245. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2246. refpart.CFrame = cf(pos)
  2247. refpart.Anchored = true
  2248. game:GetService("Debris"):AddItem(refpart, 1)
  2249. MagicBlock(CustomColor, true, Part.CFrame, 18, 18, 18, 0.25, 0.25, 0.25, 0.05)
  2250. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05)
  2251. MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06)
  2252. so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
  2253. Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
  2254. MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true)
  2255. end
  2256. end), orbblastpart)
  2257. end
  2258.  
  2259. end))
  2260. local equipvelocity2 = Instance.new("BodyVelocity", Torso)
  2261. equipvelocity2.P = 500
  2262. equipvelocity2.maxForce = vt(math.huge, math.huge, math.huge)
  2263. equipvelocity2.Velocity = Vector3.new(0, 0, 0)
  2264. game:GetService("Debris"):AddItem(equipvelocity2, 2)
  2265. for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do
  2266. ArtificialHeartbeat.Event:wait()
  2267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8 + idleangle) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.15)
  2268. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2269. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(0)) * RWC0, 0.04)
  2270. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2271.  
  2272. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
  2273. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  2274.  
  2275.  
  2276. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2277. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2278. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2279. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2280. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2281. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2282. end
  2283. for i = 0, 1, 0.25 do
  2284. ArtificialHeartbeat.Event:wait()
  2285. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2286. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2287. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2288. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2289. if Anim ~= "Walk" then
  2290. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2291. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2292. elseif Anim == "Walk" then
  2293. if walkinganim == true then
  2294. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2295. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2296. else
  2297. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2298. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2299. end
  2300. end
  2301. Humanoid.WalkSpeed = 16 * Speed.Value
  2302. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2303. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2304. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2305. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2306. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2307. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2308. end
  2309. attack = false
  2310. end
  2311. function Move2()
  2312. Chat("Die!")
  2313. attack = true
  2314. local oldspeedvalue = Speed.Value
  2315. Speed.Value = 0
  2316. for i = 0, .5, 0.25 do
  2317. ArtificialHeartbeat.Event:wait()
  2318. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2319. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2320. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2321. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2322. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2323. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2324. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2325. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2326. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2327. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2328. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2329. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2330. end
  2331. for i = 0, .5, 0.015 do
  2332. ArtificialHeartbeat.Event:wait()
  2333. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2334. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2335. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2336. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2337. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2338. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2339. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2340. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2341. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2342. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2343. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2344. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2345. end
  2346. so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
  2347. for i = 0, 1.7, 0.25 do
  2348. ArtificialHeartbeat.Event:wait()
  2349. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1)
  2350. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1)
  2351. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2352. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2353. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2354. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2355. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2356. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  2357. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2358. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2359. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2360. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2361. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2362. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2363. end
  2364. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2365. refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
  2366. refpart.Anchored = true
  2367. game:GetService("Debris"):AddItem(refpart, 1)
  2368. local TheHit = refpart.Position + vt(0, -1, 0)
  2369. local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
  2370. local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
  2371. local mag = (refpart.Position - pos).magnitude
  2372. local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2373. refpart2.CFrame = cf(pos)
  2374. refpart2.Anchored = true
  2375. game:GetService("Debris"):AddItem(refpart2, 1)
  2376. MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.4, 0, 0.4, 0.025)
  2377. if hit ~= nil then
  2378. MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 2.5, 2.5, 2.5, 0.02)
  2379. MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 7, 7, 7, 0.02)
  2380. MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, .6, 1.2, .6, 0.03)
  2381. MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025)
  2382. so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
  2383. so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
  2384. MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
  2385. end
  2386. for i = 0, 1, 0.02 do
  2387. ArtificialHeartbeat.Event:wait()
  2388. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2389. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2390. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2391. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2392. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2393. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  2394. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2395. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2396. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2397. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2398. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2399. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2400. end
  2401. Speed.Value = Speed.Value + oldspeedvalue
  2402. attack = false
  2403. end
  2404. function Move3()
  2405. Chat("...")
  2406. attack = true
  2407. local oldspeedvalue = Speed.Value
  2408. Speed.Value = 0
  2409. so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
  2410. for i = 0, 1, 0.05 do
  2411. ArtificialHeartbeat.Event:wait()
  2412. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2413. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  2414. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  2415. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2416. RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  2417. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  2418. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2419. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2420. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2421. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2422. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2423. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2424. end
  2425. for i = 0, 1.5, 0.05 do
  2426. MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05)
  2427. ArtificialHeartbeat.Event:wait()
  2428. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2429. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  2430. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  2431. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2432. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.2)
  2433. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  2434. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2435. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2436. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2437. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2438. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15)
  2439. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2440. end
  2441. MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025)
  2442. local num = 0
  2443. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2444. refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6)
  2445. refpart.Anchored = true
  2446. game:GetService("Debris"):AddItem(refpart, 3)
  2447. for i = 1, 40 do
  2448. local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2449. refpart2.CFrame = refpart.CFrame * cf(0, 0, num)
  2450. refpart2.Anchored = true
  2451. game:GetService("Debris"):AddItem(refpart2, 1)
  2452. local TheHit = refpart2.Position + vt(0, -1, 0)
  2453. local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit)
  2454. local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character)
  2455. if hit ~= nil then
  2456. local refpart3 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2457. refpart3.CFrame = cf(pos)
  2458. refpart3.Anchored = true
  2459. game:GetService("Debris"):AddItem(refpart3, 1)
  2460. MagicSphere(BrickColor.new("Dark indigo"), refpart3.CFrame, 40, 20, 40, -2, -1, -2, 0.015)
  2461. MagicWave(CustomColor, refpart3.CFrame, 7, 10, 7,-0.08, -.2, -0.08, 0.03)
  2462. so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
  2463. MagniDamage(refpart3, 20, 2, 6, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true)
  2464. end
  2465. num = num - 5
  2466. wait()
  2467. end
  2468. Speed.Value = Speed.Value + oldspeedvalue
  2469. attack = false
  2470. end
  2471.  
  2472.  
  2473. function DanceMoves()
  2474. attack = true
  2475.  
  2476. local oldspeedvalue = Speed.Value
  2477. Speed.Value = 0
  2478.  
  2479. for i = 0,3 do
  2480. --[
  2481. for i = 0, 0.5, 0.05 do
  2482. ArtificialHeartbeat.Event:wait()
  2483. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2484. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2485. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2486. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2487. RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2488. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2489. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2490. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2491. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2492. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2493. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2494. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2495. end
  2496.  
  2497. --]]
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516. for i = 0, 1.5, 0.05 do
  2517. ArtificialHeartbeat.Event:wait()
  2518. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(-10), math.rad(45)), 0.15)
  2519. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(45)), 0.15)
  2520. RW.C0 = clerp(RW.C0, cf(1.25, 0.1 + idleangle, 0) * angles(math.rad(90), math.rad(-20), math.rad(-50)) * RWC0, 0.15)
  2521. LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.2) * angles(math.rad(90), math.rad(-70), math.rad(-80)) * LWC0, 0.15)
  2522. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2523. LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2524. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2525. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2526. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 1.5, -0.5), 0.15)
  2527. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2528. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2529. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(3, 2.5, 0), 0.15)
  2530. end
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538. for i = 0, 0.5, 0.05 do
  2539. ArtificialHeartbeat.Event:wait()
  2540. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2541. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2542. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2543. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2544. RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2545. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2546. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2547. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2548. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2549. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2550. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2551. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2552. end
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564. for i = 0, 1.5, 0.05 do
  2565. ArtificialHeartbeat.Event:wait()
  2566. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(10), math.rad(-45)), 0.15)
  2567. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-45)), 0.15)
  2568. RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(70), math.rad(80)) * RWC0, 0.15)
  2569. LW.C0 = clerp(LW.C0, cf(-1.25, 0.1 + idleangle, -0.2) * angles(math.rad(90), math.rad(20), math.rad(50)) * LWC0, 0.15)
  2570. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2571. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2572. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2573. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2574. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2575. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 1.5, -0.5), 0.15)
  2576. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-3, 2.5, 0), 0.15)
  2577. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2578. end
  2579. end
  2580. Speed.Value = Speed.Value + oldspeedvalue
  2581. attack = false
  2582. end
  2583.  
  2584. function Move4()
  2585. Chat("Shadow Blast!...")
  2586. attack = true
  2587. for i = 0, 1, 0.25 do
  2588. ArtificialHeartbeat.Event:wait()
  2589. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2590. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2591. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2592. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2593. if Anim ~= "Walk" then
  2594. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2595. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2596. elseif Anim == "Walk" then
  2597. if walkinganim == true then
  2598. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2599. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2600. else
  2601. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2602. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2603. end
  2604. end
  2605. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2606. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2607. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2608. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2609. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2610. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2611. end
  2612. for i = 0, 1, 0.04 do
  2613. ArtificialHeartbeat.Event:wait()
  2614. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2615. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2616. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2617. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2618. if Anim ~= "Walk" then
  2619. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2620. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2621. elseif Anim == "Walk" then
  2622. if walkinganim == true then
  2623. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2624. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2625. else
  2626. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2627. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2628. end
  2629. end
  2630. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2631. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2632. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2633. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2634. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2635. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2636. end
  2637. local orbpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt())
  2638. local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
  2639. local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0))
  2640. game:GetService("Debris"):AddItem(orbpart, 5)
  2641. so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
  2642. coroutine.resume(coroutine.create(function(Part, Mesh)
  2643. for i = 0, 0.4, 0.005 do
  2644. ArtificialHeartbeat.Event:wait()
  2645. Mesh.Scale = Mesh.Scale + vt(0.90, 0.90, 0.90)
  2646. MagicBlock(CustomColor, true, orbpart.CFrame, 30, 30, 30, -5, -5, -5, 0.05)
  2647. MagicBlock("Black", true, orbpart.CFrame, 24, 24, 24, 3,3,3, 0.4)
  2648.  
  2649. local orbchargeeffect = part(3, Effects, "Neon", 0, 0, CustomColor, "Effect", vt())
  2650. local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(8, math.random(10, 15), 8))
  2651. local orbchargecframe = angles(math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150))) * cf(0, math.random(10, 50), 0)
  2652. orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe
  2653. orbchargeeffect.Anchored = true
  2654. game:GetService("Debris"):AddItem(orbchargeeffect, 2)
  2655. coroutine.resume(coroutine.create(function(Part, Mesh)
  2656. for i = 0, 1, 0.1 do
  2657. ArtificialHeartbeat.Event:wait()
  2658. Part.Transparency = i
  2659. Part.CFrame = Part.CFrame * cf(0, -1, 0)
  2660. end
  2661. Part.Parent = nil
  2662. end), orbchargeeffect, orbchargeeffectmesh)
  2663. end
  2664. wait(0.2)
  2665. local range = 1999
  2666. local MainPos = Part.Position
  2667. local MainPos2 = Mouse.Hit.p
  2668. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2669. local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent)
  2670. local mag = (MainPos - pos).magnitude
  2671. MagicCylinder("Black", cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 2.5, 0, 2.5, 0.015)
  2672. MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 3.0, 0, 3.0, 0.015)
  2673. for i = 1, 5 do
  2674. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0)
  2675. MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
  2676. end
  2677. for i = 0, 5 do
  2678. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0)
  2679. MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02)
  2680. end
  2681. so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
  2682. so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
  2683. so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
  2684. if hit ~= nil then
  2685. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2686. refpart.CFrame = cf(pos)
  2687. refpart.Anchored = true
  2688. game:GetService("Debris"):AddItem(refpart, 1)
  2689. MagicBlock(CustomColor, true, refpart.CFrame, 45, 45, 45, 4, 4, 4, 0.01)
  2690. MagicSphere("Black", refpart.CFrame, 35, 35, 35, 4, 4, 4, 0.02)
  2691. so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
  2692. so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
  2693. so("http://www.roblox.com/Asset?ID=87767777", refpart, 2, 2)
  2694. Damagefunc(hit, 40, 80, 60, "Normal", RootPart, 0, 1, 0, nil, true, true)
  2695. MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true)
  2696. end
  2697. for i = 0, 1, 0.01 do
  2698. ArtificialHeartbeat.Event:wait()
  2699. Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5)
  2700. Part.Transparency = Part.Transparency + 0.01
  2701. end
  2702. Part.Parent = nil
  2703. end), orbpart, orbmesh)
  2704. for i = 0, 0.35, 0.004 do
  2705. ArtificialHeartbeat.Event:wait()
  2706. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2707. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2708. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2709. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2710. if Anim ~= "Walk" then
  2711. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2712. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2713. elseif Anim == "Walk" then
  2714. if walkinganim == true then
  2715. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2716. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2717. else
  2718. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2719. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2720. end
  2721. end
  2722. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2723. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2724. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2725. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2726. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2727. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2728. end
  2729. for i = 0, 1, 0.25 do
  2730. ArtificialHeartbeat.Event:wait()
  2731. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2732. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2733. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2734. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2735. if Anim ~= "Walk" then
  2736. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2737. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2738. elseif Anim == "Walk" then
  2739. if walkinganim == true then
  2740. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2741. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2742. else
  2743. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2744. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2745. end
  2746. end
  2747. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2748. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2749. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2750. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2751. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2752. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2753. end
  2754. attack = false
  2755. end
  2756. function Move5()
  2757. Chat("Soul Blast!")
  2758. attack = true
  2759. local oldspeedvalue = Speed.Value
  2760. Speed.Value = 0
  2761. for i = 0, 1, 0.25 do
  2762. ArtificialHeartbeat.Event:wait()
  2763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2764. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2765. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-10)) * RWC0, 0.15)
  2766. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2767. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2768. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2769. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2770. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2771. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2772. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2773. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2774. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2775. end
  2776.  
  2777. for i = 0, 1, 0.015 do
  2778. ArtificialHeartbeat.Event:wait()
  2779. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2780. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2781. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-10)) * RWC0, 0.15)
  2782. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15)
  2783. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2784. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2785. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2786. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2787. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2788. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2789. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2790. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2791. end
  2792. wait(.1)
  2793. so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
  2794. for i = 0, 1, 0.25 do
  2795. ArtificialHeartbeat.Event:wait()
  2796. MagicBlock(BrickColor.new("Dark indigo"), true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2797. MagicBlock(BrickColor.new("Dark indigo"), true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2799. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2800. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2801. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2802. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2803. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  2804. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2805. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2806. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2807. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2808. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2809. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2810. end
  2811. local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
  2812. refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
  2813. refpart.Anchored = true
  2814. game:GetService("Debris"):AddItem(refpart, 1)
  2815. local TheHit = refpart.Position + vt(0, -1, 0)
  2816. local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
  2817. local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
  2818. local mag = (refpart.Position - pos).magnitude
  2819. local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt())
  2820. refpart2.CFrame = cf(pos)
  2821. refpart2.Anchored = true
  2822. game:GetService("Debris"):AddItem(refpart2, 1)
  2823. MagicCylinder(BrickColor.new("Dark indigo"), cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 145, mag * 145, 145, 0.1, 0, 0.1, 0.015)
  2824. if hit ~= nil then
  2825. MagicBlock(BrickColor.new("Dark indigo"), true, refpart2.CFrame, 15, 15, 15, 15.5, 15.5, 15.5, 0.005)
  2826. MagicSphere(BrickColor.new("Really black"), refpart2.CFrame, 15, 15, 15, 14, 14, 14, 0.005)
  2827. MagicWave(BrickColor.new("Dark indigo"), refpart2.CFrame, 5, 5, 5, 2, 0.5, 2, 0.025)
  2828. MagicRing(BrickColor.new("Dark indigo"), refpart2.CFrame * angles(math.rad(90), 0, 0), 12.5, 12.5, 12.5, 5, 5, 5, 0.025)
  2829. so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
  2830. so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
  2831. MagniDamage(refpart2, 99, 129, 149, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
  2832. end
  2833. for i = 0, 1, 0.02 do
  2834. ArtificialHeartbeat.Event:wait()
  2835. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2836. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2837. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2838. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2839. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2840. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  2841. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2842. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2843. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2844. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2845. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2846. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2847. end
  2848. Speed.Value = Speed.Value + oldspeedvalue
  2849. attack = false
  2850. end
  2851.  
  2852. hold = false
  2853. Mouse.Button1Down:connect(function()
  2854. if attack == true or equipped == false then
  2855. return
  2856. end
  2857. hold = true
  2858. if attacktype == 1 then
  2859. attacktype = 2
  2860. attackone()
  2861. elseif attacktype == 2 then
  2862. attacktype = 3
  2863. attacktwo()
  2864. elseif attacktype == 3 then
  2865. attacktype = 4
  2866. attackthree()
  2867. elseif attacktype == 4 then
  2868. attacktype = 1
  2869. attackfour()
  2870. end
  2871. coroutine.resume(coroutine.create(function()
  2872. for i = 1, 50 do
  2873. if attack == false then
  2874. wait()
  2875. end
  2876. end
  2877. if attack == false then
  2878. attacktype = 1
  2879. end
  2880. end))
  2881. end)
  2882. if allowhopperbin == true then
  2883. function ob1u(Mouse)
  2884. hold = false
  2885. end
  2886. end
  2887. Mouse.KeyDown:connect(function(key)
  2888. if key == "f" and canunequiporequip == true and attack == false then
  2889. if equipped == false then
  2890. equipped = true
  2891.  
  2892. if disableanimate == true then
  2893. Animate.Disabled = true
  2894. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2895. idleanimation:Play()
  2896. end
  2897. if disableanimator == true then
  2898. Animator.Parent = nil
  2899. end
  2900. if disablemovingarms == true then
  2901. RW.Parent = Torso
  2902. LW.Parent = Torso
  2903. RSH.Parent = nil
  2904. LSH.Parent = nil
  2905. end
  2906. equipanim()
  2907. elseif equipped == true then
  2908. equipped = false
  2909. unequipanim()
  2910. ArtificialHeartbeat.Event:wait()
  2911. if disablemovingarms == true then
  2912. RW.Parent = nil
  2913. LW.Parent = nil
  2914. RSH.Parent = Torso
  2915. LSH.Parent = Torso
  2916. end
  2917. if disableanimator == true then
  2918. Animator.Parent = Humanoid
  2919. end
  2920. if disableanimate == true then
  2921. Animate.Disabled = false
  2922. end
  2923. end
  2924. end
  2925. if key == "e" and attack == false and equipped == true then
  2926. EAbility()
  2927. end
  2928. if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then
  2929. subtractmana(skill1mana)
  2930. cooldown1 = 0
  2931. Move1()
  2932. end
  2933. if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then
  2934. subtractmana(skill2mana)
  2935. cooldown2 = 0
  2936. Move2()
  2937. end
  2938. if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then
  2939. subtractmana(skill3mana)
  2940. cooldown3 = 0
  2941. Move3()
  2942. end
  2943. if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
  2944. subtractmana(skill4mana)
  2945. cooldown4 = 0
  2946. Move4()
  2947. end
  2948. if key == "b" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
  2949. subtractmana(skill4mana)
  2950. cooldown4 = 0
  2951. Move5()
  2952. end
  2953. if key == "t" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
  2954. DanceMoves()
  2955. end
  2956. if key == "m" then
  2957. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  2958. if hitfloor == nil then
  2959. RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0)
  2960. end
  2961. end
  2962. end)
  2963. if allowhopperbin == true then
  2964. function key2(key)
  2965. end
  2966. end
  2967. if allowhopperbin == true then
  2968. function s(Mouse)
  2969. Mouse.Button1Down:connect(function()
  2970. ob1d(Mouse)
  2971. end)
  2972. Mouse.Button1Up:connect(function()
  2973. ob1u(Mouse)
  2974. end)
  2975. Mouse.KeyDown:connect(key)
  2976. Mouse.KeyUp:connect(key2)
  2977. end
  2978. end
  2979. if allowhopperbin == true then
  2980. function ds(Mouse)
  2981. end
  2982. end
  2983. if allowhopperbin == true then
  2984. Bin.Selected:connect(s)
  2985. Bin.Deselected:connect(ds)
  2986. end
  2987. function updateskills()
  2988. if allowabilitestofunction == true then
  2989. if cooldown1 <= co1 then
  2990. cooldown1 = cooldown1 + 0.03333333333333333
  2991. if cooldown1 >= co1 then
  2992. cooldown1 = co1
  2993. end
  2994. end
  2995. if cooldown2 <= co2 then
  2996. cooldown2 = cooldown2 + 0.03333333333333333
  2997. if cooldown2 >= co2 then
  2998. cooldown2 = co2
  2999. end
  3000. end
  3001. if cooldown3 <= co3 then
  3002. cooldown3 = cooldown3 + 0.03333333333333333
  3003. if cooldown3 >= co3 then
  3004. cooldown3 = co3
  3005. end
  3006. end
  3007. if cooldown4 <= co4 then
  3008. cooldown4 = cooldown4 + 0.03333333333333333
  3009. elseif cooldown4 >= co4 then
  3010. cooldown4 = co4
  3011. end
  3012. if changebarcolorsifnotenoughmana == true then
  3013. if mana <= skill1mana then
  3014. bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3015. else
  3016. bar4.BackgroundColor3 = skillcolorscheme
  3017. end
  3018. if mana <= skill2mana then
  3019. bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3020. else
  3021. bar3.BackgroundColor3 = skillcolorscheme
  3022. end
  3023. if mana <= skill3mana then
  3024. bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3025. else
  3026. bar1.BackgroundColor3 = skillcolorscheme
  3027. end
  3028. if mana <= skill4mana then
  3029. bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3030. else
  3031. bar2.BackgroundColor3 = skillcolorscheme
  3032. end
  3033. elseif changebarcolorsifnotenoughmana == false then
  3034. bar1.BackgroundColor3 = skillcolorscheme
  3035. bar2.BackgroundColor3 = skillcolorscheme
  3036. bar3.BackgroundColor3 = skillcolorscheme
  3037. bar4.BackgroundColor3 = skillcolorscheme
  3038. end
  3039. end
  3040. if alternatemanaregensystem == false then
  3041. if mana <= maxmana then
  3042. mana = mana + recovermana / 30
  3043. elseif mana >= maxmana then
  3044. mana = maxmana
  3045. end
  3046. elseif alternatemanaregensystem == true then
  3047. if mana >= maxmana then
  3048. mana = maxmana
  3049. elseif manadelay <= manawait then
  3050. manadelay = manadelay + 1
  3051. else
  3052. manadelay = 0
  3053. mana = mana + 1
  3054. end
  3055. end
  3056. if allowstunbar == true then
  3057. if 0 >= StunValue.Value then
  3058. StunValue.Value = 0
  3059. elseif stundelay <= stunwait then
  3060. stundelay = stundelay + 1
  3061. else
  3062. stundelay = 0
  3063. StunValue.Value = StunValue.Value - 1
  3064. end
  3065. elseif allowstunbar == false then
  3066. StunValue.Value = 0
  3067. end
  3068. end
  3069. if allowmenutofunction == true then
  3070. ArtificialHeartbeat.Event:connect(function()
  3071. updateskills()
  3072. if allowabilitestofunction == true then
  3073. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3074. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3075. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3076. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3077. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3078. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3079. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3080. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3081. end
  3082. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3083. manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3084. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3085. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3086. if allowstunbar == true then
  3087. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3088. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3089. end
  3090. if showhealthmanaandstunnumbers == true then
  3091. manatext.Text = "Mana [" .. mana .. "]"
  3092. healthtext.Text = "Health [" .. Humanoid.Health .. "]"
  3093. if allowstunbar == true then
  3094. stuntext.Text = "Stun [" .. StunValue.Value .. "]"
  3095. end
  3096. end
  3097. if showstats == true then
  3098. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3099. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3100. speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3101. defensetext.Text = "Defense: " .. Defense.Value
  3102. damagetext.Text = "Damage: " .. Damage.Value
  3103. speedtext.Text = "Speed: " .. Speed.Value
  3104. end
  3105. end)
  3106. end
  3107. ArtificialHeartbeat.Event:connect(function()
  3108. if Humanoid.Health < 100 and dieanim == false then
  3109. dieanim = true
  3110. Chat("Nooooooo!!!!")
  3111.  
  3112. unequipanim()
  3113.  
  3114. end
  3115. if Humanoid.Health > 0 then
  3116. if walkspeeddependsonspeedvalue == true then
  3117. if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then
  3118. Humanoid.WalkSpeed = 0
  3119. else
  3120. Humanoid.WalkSpeed = 16 * Speed.Value
  3121. end
  3122. end
  3123. if StunValue.Value >= maxstun then
  3124. StunValue.Value = 0
  3125. StunAnim.Value = true
  3126. end
  3127. if StaggerAnim.Value == true and staganim == false then
  3128. coroutine.resume(coroutine.create(function()
  3129. staganim = true
  3130. while attack == true do
  3131. ArtificialHeartbeat.Event:wait()
  3132. end
  3133. Stagger()
  3134. StaggerAnim.Value = false
  3135. staganim = false
  3136. end))
  3137. end
  3138. if StaggerHitAnim.Value == true and staghitanim == false then
  3139. coroutine.resume(coroutine.create(function()
  3140. staghitanim = true
  3141. while attack == true do
  3142. ArtificialHeartbeat.Event:wait()
  3143. end
  3144. StaggerHit()
  3145. StaggerHitAnim.Value = false
  3146. staghitanim = false
  3147. end))
  3148. end
  3149. if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then
  3150. coroutine.resume(coroutine.create(function()
  3151. StunValue.Value = 0
  3152. stunanim = true
  3153. while attack == true do
  3154. ArtificialHeartbeat.Event:wait()
  3155. end
  3156. Stun()
  3157. StunAnim.Value = false
  3158. stunanim = false
  3159. end))
  3160. end
  3161. sine = sine + change
  3162. someangle = someangle % 100 + change2 / 10
  3163. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  3164. local velderp = RootPart.Velocity.y
  3165. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  3166. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  3167. if donum >= 0.5 then
  3168. handidle = true
  3169. elseif donum <= 0 then
  3170. handidle = false
  3171. end
  3172. if handidle == false then
  3173. donum = donum + 0.002
  3174. else
  3175. donum = donum - 0.002
  3176. end
  3177. if equipped == true or equipped == false then
  3178. if attack == false then
  3179. idle = idle + 1
  3180. else
  3181. idle = 0
  3182. end
  3183. if not (idle >= 500) or attack == false then
  3184. end
  3185. if leftarm == true then
  3186. if Anim == "Walk" and equipped == true and attack == false then
  3187. if alternatewalk == false then
  3188. if walkinganim == true then
  3189. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3190. else
  3191. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3192. end
  3193. elseif walkinganim == true then
  3194. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3195. else
  3196. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3197. end
  3198. elseif Anim ~= "Walk" and equipped == true or attack == true then
  3199. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3200. end
  3201. end
  3202. if rightarm == true then
  3203. if Anim == "Walk" and equipped == true and attack == false then
  3204. if alternatewalk == false then
  3205. if walkinganim == true then
  3206. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3207. else
  3208. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3209. end
  3210. elseif walkinganim == true then
  3211. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3212. else
  3213. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3214. end
  3215. elseif Anim ~= "Walk" and equipped == true or attack == true then
  3216. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3217. end
  3218. end
  3219. if allowwalking == true then
  3220. if Anim == "Walk" and equipped == true then
  3221. if alternatewalk == false then
  3222. if walkinganim == true then
  3223. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3224. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3225. else
  3226. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3227. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3228. end
  3229. elseif walkinganim == true then
  3230. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3231. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3232. else
  3233. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3234. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3235. end
  3236. elseif Anim ~= "Walk" and equipped == true then
  3237. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3238. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3239. end
  3240. end
  3241. if velderp > 1 and hitfloor == nil then
  3242. Anim = "Jump"
  3243. if attack == false and equipped == true then
  3244. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3245. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1)
  3246. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1)
  3247. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1)
  3248. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1)
  3249. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1)
  3250. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3251. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3252. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3253. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3254. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3255. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3256. end
  3257. elseif velderp < -1 and hitfloor == nil then
  3258. Anim = "Fall"
  3259. if attack == false and equipped == true then
  3260. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3261. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
  3262. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1)
  3263. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1)
  3264. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  3265. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  3266. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3267. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3268. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3269. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3270. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3271. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3272. end
  3273. elseif torvel < 1 and hitfloor ~= nil then
  3274. Anim = "Idle"
  3275. if attack == false and equipped == true then
  3276. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3277. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075)
  3278. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075)
  3279. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075)
  3280. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3281. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3282. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075)
  3283. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075)
  3284. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  3285. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  3286. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075)
  3287. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075)
  3288. end
  3289. elseif torvel > 1 and hitfloor ~= nil then
  3290. Anim = "Walk"
  3291. walk = walk + 0.5
  3292. if walk >= 20 then
  3293. walk = 0
  3294. if walkinganim == true then
  3295. walkinganim = false
  3296. elseif walkinganim == false then
  3297. walkinganim = true
  3298. end
  3299. end
  3300. if attack == false and equipped == true then
  3301. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3302. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  3303. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1)
  3304. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1)
  3305. if walkinganim == true then
  3306. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1)
  3307. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1)
  3308. else
  3309. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1)
  3310. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1)
  3311. end
  3312. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3313. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3314. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3315. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3316. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3317. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3318. end
  3319. end
  3320. end
  3321. end
  3322. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement