Advertisement
copra50

boss

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