memberhero

Giga Vanta

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