Advertisement
tvnvntjyvtny2222

Untitled

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