Advertisement
Domlnus

Untitled

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