Advertisement
tvnvntjyvtny2222

Untitled

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