Advertisement
tvnvntjyvtny2222

Untitled

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