Advertisement
Bendy928443534

Untitled

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