Advertisement
ericdesouza

Untitled

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