reset234567890

Untitled

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