Advertisement
DarkScriptZEditors

Giga Vanta =)

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