Advertisement
XioScripts

test

Feb 21st, 2020
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 114.28 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Script0.Name = "FakeMouseMainConversion"
  22. Script0.Parent = mas
  23. table.insert(cors,sandbox(Script0,function()
  24. wait'0.5'
  25. local RealPlayer = script.Parent.Parent
  26. local FakeMouse = script.FakeMouse:Clone();
  27. FakeMouse.Parent = RealPlayer.Character;
  28. script.FakeMouse:Destroy()
  29. do
  30. local GUID = {}
  31. do
  32. GUID.IDs = {};
  33. function GUID:new(len)
  34. local id;
  35. if(not len)then
  36. id = (tostring(function() end))
  37. id = id:gsub("function: ","")
  38. else
  39. local function genID(len)
  40. local newID = ""
  41. for i = 1,len do
  42. newID = newID..string.char(math.random(48,90))
  43. end
  44. return newID
  45. end
  46. repeat id = genID(len) until not GUID.IDs[id]
  47. local oid = id;
  48. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  49. GUID.IDs[oid]=true;
  50. end
  51. return id
  52. end
  53. end
  54.  
  55. local AHB = Instance.new("BindableEvent")
  56.  
  57. local FPS = 30
  58.  
  59. local TimeFrame = 0
  60.  
  61. local LastFrame = tick()
  62. local Frame = 1/FPS
  63.  
  64. game:service'RunService'.Heartbeat:connect(function(s,p)
  65. TimeFrame = TimeFrame + s
  66. if(TimeFrame >= Frame)then
  67. for i = 1,math.floor(TimeFrame/Frame) do
  68. AHB:Fire()
  69. end
  70. LastFrame=tick()
  71. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  72. end
  73. end)
  74.  
  75.  
  76. function swait(dur)
  77. if(dur == 0 or typeof(dur) ~= 'number')then
  78. AHB.Event:wait()
  79. else
  80. for i = 1, dur*FPS do
  81. AHB.Event:wait()
  82. end
  83. end
  84. end
  85.  
  86. local oPlayer = RealPlayer
  87. local Player = oPlayer
  88.  
  89. local loudnesses={}
  90. script.Parent = Player.Character
  91. local CoAS = {Actions={}}
  92. local Event = Instance.new("RemoteEvent")
  93. Event.Name = "UserInputEvent"
  94. Event.Parent = Player.Character
  95. local Func = Instance.new("RemoteFunction")
  96. Func.Name = "GetClientProperty"
  97. Func.Parent = Player.Character
  98. local fakeEvent = function()
  99. local t = {_fakeEvent=true,Waited={},Connected={}}
  100. t.Connect = function(self,f)
  101. local ft={}
  102. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  103. ft.Disconnect=ft.disconnect
  104.  
  105. ft.Func=function(...)
  106. for id,_ in next, t.Waited do
  107. t.Waited[id] = true
  108. end
  109. return f(...)
  110. end;
  111.  
  112. table.insert(self.Connected,ft)
  113. return ft;
  114. end
  115. t.connect = t.Connect
  116. t.Wait = function()
  117. local guid = GUID:new(25)
  118. local waitingId = guid:Get()
  119. t.Waited[waitingId]=false
  120. repeat swait() until t.Waited[waitingId]==true
  121. t.Waited[waitingId]=nil;
  122. guid:Trash()
  123. end
  124. t.wait = t.Wait
  125. return t
  126. end
  127. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  128. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  129. local Run = {RenderStepped=fakeEvent()}
  130.  
  131. function CoAS:BindAction(name,fun,touch,...)
  132. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  133. end
  134. function CoAS:UnbindAction(name)
  135. CoAS.Actions[name] = nil
  136. end
  137. local function te(self,ev,...)
  138. local t = self[ev]
  139. if t and t._fakeEvent and t.Connected then
  140. for i,v in next, t.Connected do
  141. if(v.Func and not v.Disconnected)then
  142. v.Func(...)
  143. else
  144. t.Connected[i]=nil
  145. end
  146. end
  147. end
  148. end
  149. m.TrigEvent = te
  150. UsIS.TrigEvent = te
  151. Run.TrigEvent = te
  152. Event.OnServerEvent:Connect(function(plr,io)
  153. if plr~=Player then return end
  154. --[[table.foreach(io,print)
  155. print'---']]
  156. if io.Mouse then
  157. m.Target = io.Target
  158. m.Hit = io.Hit
  159. elseif io.KeyEvent then
  160. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  161. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  162. if io.UserInputState == Enum.UserInputState.Begin then
  163. m:TrigEvent("Button1Down")
  164. else
  165. m:TrigEvent("Button1Up")
  166. end
  167. end
  168. if(not io.KeyEvent and not io.Mouse)then
  169.  
  170. for n,t in pairs(CoAS.Actions) do
  171. for _,k in pairs(t.Keys) do
  172. if k==io.KeyCode then
  173. t.Function(t.Name,io.UserInputState,io)
  174. end
  175. end
  176. end
  177. if io.UserInputState == Enum.UserInputState.Begin then
  178. UsIS:TrigEvent("InputBegan",io,false)
  179. else
  180. UsIS:TrigEvent("InputEnded",io,false)
  181. end
  182. end
  183. end)
  184.  
  185. Func.OnServerInvoke = function(plr,inst,play)
  186. if plr~=Player then return end
  187. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  188. loudnesses[inst]=play
  189. end
  190. end
  191.  
  192. function GetClientProperty(inst,prop)
  193. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  194. return loudnesses[inst]
  195. elseif(prop == 'PlaybackLoudness')then
  196. return Func:InvokeClient(Player,'RegSound',inst)
  197. end
  198. return Func:InvokeClient(Player,inst,prop)
  199. end
  200. local oldGame = game;
  201. local oldPlayer = Player;
  202. local fakePlayer = newproxy(true)
  203. getmetatable(fakePlayer).__index = function(s,i)
  204. if(i == 'GetMouse')then
  205. return function() return m; end
  206. end
  207. return Player[i]
  208. end
  209. getmetatable(fakePlayer).__newindex = function(s,i,v)
  210. Player[i]=v
  211. end
  212. getmetatable(fakePlayer).__call=function(self,...)
  213. if(self == fakePlayer)then self = Player end
  214. local wh = {...}
  215. local name = table.remove(wh,1)
  216. for i,v in next, wh do
  217. wh[i]=v
  218. end
  219. if(name == 'GetMouse')then
  220. return m;
  221. end
  222. return self(name,unpack(wh))
  223. end
  224. getmetatable(fakePlayer).__namecall=function(self,...)
  225. if(self == fakePlayer)then self = Player end
  226. local tuple={...}
  227. local name = table.remove(tuple,#tuple)
  228.  
  229. if(name == 'GetMouse')then
  230. return m;
  231. else
  232. return self[name](self,unpack(tuple))
  233. end
  234. end
  235. local oll = LoadLibrary;
  236. function LoadLibrary(libtard)
  237. local libtarddestroyed=oll(libtard)
  238. if(libtard=='RbxUtility')then
  239. local library={Create=function(obj)
  240. local inst = Instance.new(obj)
  241. return function(props)
  242. for prop,valu in next, props do
  243. inst[prop]=valu
  244. end
  245. return inst
  246. end
  247. end}
  248. setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
  249.  
  250. return library
  251. else
  252. return libtarddestroyed
  253. end
  254. end
  255. local function GetService(s,i)
  256. local service = s:GetService(i)
  257. if(i == 'Players')then
  258. local oldService = service;
  259. local fakeService = newproxy(true)
  260. getmetatable(fakeService).__index = function(s,i)
  261. if(s == fakeService)then s=oldService end
  262. if(i == 'LocalPlayer' or i == 'localPlayer')then
  263. return fakePlayer
  264. elseif(i == 'oPlayer')then
  265. return oPlayer
  266. else
  267. return s[i]
  268. end
  269. end
  270. getmetatable(fakeService).__newindex = function(s,i,v)
  271. if(s == fakeService)then s=oldService end
  272. s[i]=v
  273. end
  274. getmetatable(fakeService).__call=function(self,...)
  275. if(self == fakeService)then self = oldService end
  276. local wh = {...}
  277. local name = table.remove(wh,1)
  278. for i,v in next, wh do
  279. wh[i]=v
  280. end
  281. return self(name,unpack(wh))
  282. end
  283. getmetatable(fakeService).__namecall=function(self,...)
  284. if(self == fakeService)then self = oldService end
  285. local tuple={...}
  286. local name = table.remove(tuple,#tuple)
  287.  
  288. return self[name](self,unpack(tuple))
  289. end
  290. getmetatable(fakeService).__metatable = 'gay'
  291. return fakeService
  292. elseif(i == 'RunService')then
  293. local oldService = service;
  294. local fakeService = newproxy(true)
  295. getmetatable(fakeService).__index = function(s,i)
  296. if(s == fakeService)then s=oldService end
  297. return Run[i] or s[i]
  298. end
  299. getmetatable(fakeService).__newindex = function(s,i,v)
  300. if(s == fakeService)then s=oldService end
  301. s[i]=v
  302. end
  303. getmetatable(fakeService).__call=function(self,...)
  304. if(self == fakeService)then self = oldService end
  305. local wh = {...}
  306. local name = table.remove(wh,1)
  307. for i,v in next, wh do
  308. wh[i]=v
  309. end
  310. return self(name,unpack(wh))
  311. end
  312. getmetatable(fakeService).__namecall=function(self,...)
  313. if(self == fakeService)then self = oldService end
  314. local tuple={...}
  315. local name = table.remove(tuple,#tuple)
  316.  
  317. return self[name](self,unpack(tuple))
  318. end
  319. getmetatable(fakeService).__metatable = 'gay'
  320. return fakeService
  321. elseif(i == 'UserInputService')then
  322. return UsIS
  323. elseif(i == 'ContextActionService')then
  324. return CoAS;
  325. else
  326. return service
  327. end
  328. end
  329.  
  330. local new = Instance.new;
  331. Instance = {}
  332. Instance.new = function(inst,obje)
  333. local lp = GetService(oldGame,'Players').localPlayer
  334. local instance = new(inst)
  335. if(inst=='ObjectValue')then
  336. local fake = newproxy(true)
  337. getmetatable(fake).__index=function(self,index)
  338. if(self==fake)then self=instance end
  339. return self[index]
  340. end
  341. getmetatable(fake).__newindex=function(self,index,value)
  342. if(self==fake)then self=instance end
  343. if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
  344. self[index]=oPlayer
  345. else
  346. self[index]=value
  347. end
  348. end
  349. getmetatable(fake).__call=function(self,...)
  350. if(self == fake)then self = instance end
  351. local wh = {...}
  352. local name = table.remove(wh,1)
  353. for i,v in next, wh do
  354. if(v == fake)then v = instance end
  355. wh[i]=v
  356. end
  357. return self(name,unpack(wh))
  358. end
  359. getmetatable(fake). __namecall=function(self,...)
  360. if(self == fake)then self = instance end
  361. local tuple={...}
  362. local name = table.remove(tuple,#tuple)
  363. return self[name](self,unpack(tuple))
  364. end
  365. return fake
  366. else
  367. instance.Parent = obje
  368. return instance;
  369. end
  370.  
  371. end
  372. local serviceFunctions={
  373. service=true,
  374. GetService=true,
  375. }
  376. local fakeGame = newproxy(true)
  377. getmetatable(fakeGame).__index = function(s,i)
  378. if(s == fakeGame)then s=oldGame end
  379. local serv = GetService(oldGame,i)
  380. if serviceFunctions[i] then
  381. return GetService
  382. elseif(serv)then
  383. return serv
  384. else
  385. return s[i]
  386. end
  387. end
  388. getmetatable(fakeGame).__newindex = function(s,i,v)
  389. if(s == fakeGame)then s=oldGame end
  390. s[i]=v
  391. end
  392. getmetatable(fakeGame).__call=function(self,...)
  393. if(self == fakeGame)then self = oldGame end
  394. local wh = {...}
  395. local name = table.remove(wh,1)
  396. for i,v in next, wh do
  397. if(v == fakeGame)then v = oldGame end
  398. wh[i]=v
  399. end
  400. if serviceFunctions[name] then
  401. return GetService(self,unpack(wh))
  402. else
  403. return self(name,unpack(wh))
  404. end
  405. end
  406. getmetatable(fakeGame). __namecall=function(self,...)
  407. if(self == fakeGame)then self = oldGame end
  408. local tuple={...}
  409. local name = table.remove(tuple,#tuple)
  410.  
  411. local funcToCall=self[name]
  412.  
  413. if serviceFunctions[name] then
  414. return GetService(self,unpack(tuple))
  415. else
  416. return self[name](self,unpack(tuple))
  417. end
  418. end
  419. getmetatable(fakeGame).__metatable = 'gay'
  420.  
  421. coroutine.wrap(function()
  422. while true do
  423. Run:TrigEvent('RenderStepped')
  424. swait()
  425. end
  426. end)()
  427. game=fakeGame
  428. UserInputService,ContextActionService = UsIS,CoAS
  429. end
  430. -- PUT SCRIPT UNDER THIS LINE OF CODE AND UPLOAD IT TO ROBLOX TO CONVERT IT DONT MESS WITH THE CODE PLEASE
  431.  
  432.  
  433.  
  434. --Riven
  435. math.randomseed(tick())
  436. plr=game:service'Players'.LocalPlayer
  437. ch,char=plr.Character,plr.Character
  438. hum=ch.Humanoid
  439. tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
  440. m,mouse=plr:GetMouse(),plr:GetMouse()
  441. cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
  442. bc=BrickColor.new
  443. head=ch.Head
  444. cam=workspace.CurrentCamera
  445.  
  446. rj.C0=cfn()
  447. rj.C1=cfn()
  448.  
  449. lib={}
  450. lib.cone='1033714'
  451. lib.ring="3270017"
  452. lib.yato='579392805'
  453. lib.diamond='9756362'
  454. lib.crown='20329976'
  455. rbx='rbxassetid://'
  456.  
  457. --tb and anti sc
  458. v3 = Vector3.new
  459. cn = CFrame.new
  460. ca2 = CFrame.Angles
  461. mf = math.floor
  462. mran = math.random rn=mran
  463. mrad = math.rad rd=mrad
  464. mdeg = math.deg dg=mdeg
  465. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  466. mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
  467. ud=UDim2.new
  468. bn = BrickColor.new
  469. c3 = Color3.new
  470. --tb and anti sc
  471.  
  472. getSound=function(id)
  473. game:service'ContentProvider':Preload('rbxassetid'..tostring(id))
  474. local s=int("Sound",ch.Head)
  475. s.SoundId='rbxassetid://' .. tostring(id-1)
  476. s.Volume=1
  477. return s
  478. end
  479.  
  480. --declarations
  481.  
  482. --strings
  483. local combostring=[[]]
  484. local attackstring=[[]]
  485.  
  486. --sounds, some by qaeo
  487. blocksound=getSound(260433722)
  488. blocksound.Pitch=1
  489. startsound=getSound(588738950) --260433747
  490. startsound.Pitch=1
  491. endsound=getSound(588736246) --260433769
  492. endsound.Pitch=1
  493. endsound.Volume=2
  494. swsound=getSound(588736970)
  495. --swsound.Pitch=0.8
  496. swexp=getSound(365002939)
  497. swexp.Pitch=1
  498. spexp=getSound(365002939)
  499. spexp.Pitch=1.2
  500. startsound2=getSound(260433769)--260433769
  501. startsound2.Pitch=0.8
  502. startsound3=getSound(260433769)
  503. startsound3.Pitch=0.89
  504. chargesound=getSound(181004944)
  505. chargesound.Pitch=1
  506. basicsound=getSound(588736246)--260433747
  507. basicsound.Pitch=1.2
  508. dodgesound=getSound(177162407)
  509. dodgesound.Pitch=1.4
  510. landsound=getSound(315775190)
  511. rushsound=getSound(134012323)--134012323
  512. swoosh=getSound(231917988)
  513. --swoosh.Pitch=1.2
  514. swoosh.Volume=2
  515. aerialcharge=getSound(265109959)
  516. aerialcharge.Pitch=1.1
  517. curse=getSound(231917971)
  518. glass=getSound(130779172)
  519. magictone1=getSound(588738950)
  520. chargedupbeam=getSound(588735946)
  521. chargedupbeam.Volume=2.5
  522. diamondproj=getSound(231917751)
  523. diamondproj.PlaybackSpeed=5
  524. diamondbreak=getSound(130779172)
  525. diamondbreak.Pitch=2
  526. magicriff=getSound(588735156)
  527. bigmagic=getSound(231917773)
  528. walksound=getSound(142665236)
  529.  
  530. --tables
  531. tweenTable={}
  532. altTweenTable={}
  533. local alljoints={}
  534. textTable={}
  535. local fx={}
  536. moves={}
  537. connectlist={}
  538. cooldowns={}
  539. movers={}
  540. local linetable={}
  541. moveDescriptions={
  542. ['Dark Missile']={move='Dark Missile',key='Left Mouse Button',desc=[[A basic, dark blast that is cheap on mana and easy to use. Deals low damage.]]},
  543. ['Normal Block']={move='Normal Block',desc=[[Blocks projectile attacks where you aim.]]},
  544. ['Rive Beam']={move='Rive Beam',desc=[[A beam of energy that deals heavy damage and knocks down foes.]]},
  545. ['Dark Spikes']={move='Dark Spikes',desc=[[A series of dark stakes that explode to push enemies back and deal medium damage.]]},
  546. ['Down Slam']={move='Down Slam',key=[[Space, Space, Q]],desc=[[An aerial attack that slams the character against the ground to create a shockwave that knocks down and deals low damage to enemies.]]},
  547. ['Aerial Sword']={move='Aerial Sword',key=[[Space, Space, Hold R]],desc=[[An aerial attack with huge power; creates a sphere of dark energy that flings spectral swords which explode and deal damage.]]},
  548. ['Curse']={move='Curse',desc=[[An attack that inflicts the Cursed debuff (5% maxhealth damage every second) and lifesteals half of damage dealt.]]},
  549. ['Dark Slash']={move='Dark Slash',desc=[[Summons a spectral sword that slashes to deal huge critical damage. Very high crit chance.]]},
  550. ['Diamond Storm']={move='Diamond Storm',desc=[[Charge up dark energy to release a flurry of diamonds that explode to deal damage with high crit chance. Heals twice damage dealt. High mana cost.]]},
  551.  
  552.  
  553. }
  554.  
  555. --bool global
  556. local run=false
  557. idle=false
  558. local animPlaying=false
  559. local runLeg=false
  560. canRunLeg=false
  561. local deb=false
  562. local basicswitch=false
  563. local canExecuteMoves=true
  564. local bg=false
  565. local sprinting=false
  566. ascension=false
  567. local aright=false
  568. local aleft=false
  569. local aforward=false
  570. local aback=false
  571. local mult=2
  572.  
  573. --num
  574. maxmana=900
  575. mana=900
  576. chain=0
  577. regws=16
  578. bigws=14
  579. hum.MaxHealth=200
  580. spawn(function()
  581. wait() hum.Health=200
  582. end)
  583.  
  584. -- gui
  585. local managui=int('ScreenGui',plr.PlayerGui)
  586. managui.Name='Mana Gui'
  587. local frame=int('Frame',managui)
  588. frame.Size=UDim2.new(0.15,0,0.02,0)
  589. frame.Position=UDim2.new(1-0.17,0,0.7,0)
  590. frame.BackgroundColor3=BrickColor.new('Black').Color
  591. frame.BorderColor3=BrickColor.new('Really black').Color
  592. frame.BorderSizePixel=6
  593.  
  594. local manabartext=int('TextLabel',frame)
  595. manabartext.ZIndex=2
  596. manabartext.Size=UDim2.new(1,0,1,0)
  597. manabartext.TextColor3=BrickColor.new('White').Color
  598. manabartext.TextStrokeTransparency=1
  599. manabartext.Font='SourceSansLight'
  600. manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
  601. manabartext.FontSize='Size18'
  602. manabartext.BackgroundTransparency=1
  603.  
  604. local manabar=int('Frame',frame)
  605. manabar.Size=UDim2.new(1,0,1,0)
  606. manabar.BorderSizePixel=0
  607. manabar.BackgroundColor3=BrickColor.new('Bright blue').Color
  608. manabar.Size=UDim2.new(mana/maxmana,0,1,0)
  609.  
  610. local chainframe=int('Frame',managui)
  611. chainframe.Size=frame.Size
  612. chainframe.BackgroundTransparency=1
  613. chainframe.Position=frame.Position+UDim2.new(0.07,0,-0.05,0)
  614. local chaintext=int('TextLabel',chainframe)
  615. chaintext.BackgroundTransparency=1
  616. chaintext.TextStrokeColor3=BrickColor.new('White').Color
  617. chaintext.TextStrokeTransparency=0
  618. chaintext.Size=UDim2.new(1,0,1,0)
  619. chaintext.Font='Antique'
  620. chaintext.FontSize='Size48'
  621. chaintext.Text='0x'
  622.  
  623. local cooldownframe=int('Frame',managui)
  624. cooldownframe.Size=UDim2.new(0.3,0,0.2,0)
  625. cooldownframe.BorderSizePixel=0
  626. cooldownframe.Transparency=1
  627. cooldownframe.Position=UDim2.new(0.7,0,0.8,0)
  628.  
  629. local movebutton=int('TextButton',managui)
  630. movebutton.Position=UDim2.new(0.93,0,0.73,0)
  631. movebutton.Text='Moves'
  632. movebutton.Font='Antique'
  633. movebutton.BackgroundColor3=BrickColor.new('Really black').Color
  634. movebutton.BorderSizePixel=0
  635. movebutton.TextColor3=BrickColor.new('White').Color
  636. movebutton.FontSize='Size24'
  637. movebutton.Size=UDim2.new(0.05,0,0.025,0)
  638.  
  639. movesframe=int('Frame',managui)
  640. movesframe.Size=UDim2.new(0.3,0,0.5,0)
  641. movesframe.BackgroundColor3=BrickColor.new('Really black').Color
  642. movesframe.BorderSizePixel=6
  643. movesframe.Position=UDim2.new(0.35,0,0.25,0)
  644. movesframe.BorderColor3=BrickColor.new('Black').Color
  645. movesframe.Visible=false
  646.  
  647. local scrollframe=int('ScrollingFrame',movesframe)
  648. scrollframe.Size=UDim2.new(0.35,0,1,0)
  649. scrollframe.BackgroundColor3=BrickColor.new('Really black').Color
  650. scrollframe.ZIndex=2
  651. scrollframe.BorderColor3=BrickColor.new('Black').Color
  652. scrollframe.BorderSizePixel=5
  653.  
  654. local descbox=int('Frame',movesframe)
  655. descbox.Size=UDim2.new(1-0.35,0,1,0)
  656. descbox.Position=UDim2.new(0.35,0,0,0)
  657. descbox.ZIndex=3
  658. descbox.BackgroundTransparency=1
  659. descbox.BorderSizePixel=0
  660.  
  661. local nam=int('TextLabel',descbox)
  662. nam.Size=UDim2.new(1,0,0.05,0)
  663. nam.Position=UDim2.new(0,0,0.1,0)
  664. nam.ZIndex=4
  665. nam.Font='Antique'
  666. nam.FontSize='Size24'
  667. nam.BackgroundTransparency=1
  668. nam.TextColor3=BrickColor.new('White').Color
  669. nam.Text='Select a move!'
  670.  
  671. local desc=int('TextLabel',descbox)
  672. desc.BackgroundTransparency=1
  673. desc.TextWrapped=true
  674. desc.Font='Antique'
  675. desc.FontSize='Size36'
  676. desc.Text=''
  677. desc.TextColor3=BrickColor.new('White').Color
  678. desc.TextXAlignment='Center'
  679. desc.TextYAlignment='Top'
  680. desc.Size=UDim2.new(1,0,0.6,0)
  681. desc.Position=UDim2.new(0,0,0.2,0)
  682. desc.ZIndex=4
  683.  
  684. local manacostg=int('TextLabel',desc)
  685. manacostg.Size=UDim2.new(1,0,0.1,0)
  686. manacostg.Text=''
  687. manacostg.Font='Antique'
  688. manacostg.FontSize='Size28'
  689. manacostg.TextColor3=BrickColor.new('White').Color
  690. manacostg.Position=UDim2.new(0,0,0.85,0)
  691. manacostg.BackgroundTransparency=1
  692.  
  693. local cmb=int('TextLabel',desc)
  694. cmb.Size=UDim2.new(1,0,0.1,0)
  695. cmb.Text=''
  696. cmb.Font='Antique'
  697. cmb.FontSize='Size28'
  698. cmb.TextColor3=BrickColor.new('White').Color
  699. cmb.Position=UDim2.new(0,0,0.7,0)
  700. cmb.BackgroundTransparency=1
  701.  
  702. local buttony=0.002
  703.  
  704. for _,v in pairs(moveDescriptions) do
  705. local button=int('TextButton',scrollframe)
  706. button.Size=UDim2.new(0.85,0,0.05,0)
  707. button.BorderSizePixel=0
  708. button.BackgroundColor3=BrickColor.new('Black').Color
  709. button.Font='Antique'
  710. button.FontSize='Size24'
  711. button.TextColor3=BrickColor.new('White').Color
  712. button.TextWrapped=true
  713. button.Text=v.move
  714. button.ZIndex=3
  715. button.Position=UDim2.new(0.03,0,buttony,0)
  716. buttony=buttony+0.052
  717. button.MouseButton1Down:connect(function()
  718. desc.Text=v.desc
  719. nam.Text=v.move
  720. if v.key then
  721. cmb.Text='Keys: ' .. v.key
  722. else
  723. cmb.Text='Keys: ' .. string.upper(moves[v.move].key)
  724. end
  725. manacostg.Text='Mana Cost: ' .. tostring(moves[v.move].manacost)
  726. end)
  727. end
  728.  
  729. movebutton.MouseButton1Down:connect(function()
  730. if movesframe.Visible==false then
  731. movesframe.Visible=true
  732. else
  733. movesframe.Visible=false
  734. end
  735. end)
  736.  
  737. local cx=0
  738. local cy=0
  739.  
  740. addCoolDownGui=function(v)
  741. local thing=int('TextLabel',cooldownframe)
  742. thing.TextWrapped=true
  743. thing.Size=UDim2.new(0.2,0,0.5,0)
  744. thing.Position=UDim2.new(cx,0,cy,0)
  745. thing.BackgroundColor3=BrickColor.new('Really black').Color
  746. thing.Font='Antique'
  747. thing.FontSize='Size24'
  748. thing.TextColor3=BrickColor.new('White').Color
  749. thing.BorderSizePixel=0
  750. thing.Text=v.move .. ' ' .. tostring(v.timeleft)
  751. spawn(function()
  752. repeat wait(0.1) thing.Text=v.move .. ' ' .. tostring(v.timeleft) until v.timeleft<0.1
  753. thing:Destroy()
  754. if cy<1 and cx>0 then
  755. cx=cx-0.2
  756. end
  757. if cy>1 and cx>0 then
  758. cx=cx-0.2
  759. end
  760.  
  761. end)
  762. if cx<1-0.2 then
  763. cx=cx+0.2
  764. else
  765. cy=0.5
  766. cx=0
  767. end
  768. end
  769.  
  770. ypcall(function()
  771. ch.Animate:Destroy()
  772. ch.Humanoid.Animator:Destroy()
  773. end)
  774.  
  775. if ch:findFirstChild("Riven") then
  776. ch['Riven']:Destroy()
  777. end
  778.  
  779. local tube=int("Model",ch)
  780. tube.Name='Riven'
  781. script.Parent=tube
  782.  
  783. --functions
  784.  
  785. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
  786. p0.Position = p1.Position
  787. local w = Instance.new('Motor',par or p0)
  788. w.Part0 = p1
  789. w.Part1 = p0
  790. w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
  791. w.MaxVelocity = .1
  792. return w
  793. end
  794.  
  795. function clerp(c1,c2,sp)
  796. local R1,R2,R3 = c1:toEulerAnglesXYZ()
  797. local R21,R22,R23 = c2:toEulerAnglesXYZ()
  798. return CFrame.new(
  799. c1.X + (c2.X-c1.X)*sp,
  800. c1.Y + (c2.Y-c1.Y)*sp,
  801. c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles(
  802. R1 + (R21-R1)*sp,
  803. R2 + (R22-R2)*sp,
  804. R3 + (R23-R3)*sp
  805. )
  806. end
  807.  
  808. Tween = function(Weld, Stop, Step,a)
  809. ypcall(function()
  810. local func = function()
  811. local Start = Weld.C1
  812. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  813. local Stop = Stop
  814. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  815. if not Step then Step=0.1 end
  816. table.insert(tweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
  817. end
  818. if a then coroutine.wrap(func)() else func() end
  819. end)
  820. end
  821.  
  822. altTween = function(Weld, Stop, Step,a)
  823. ypcall(function()
  824. local func = function()
  825. local Start = Weld.C1
  826. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  827. local Stop = Stop
  828. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  829. if not Step then Step=0.1 end
  830. table.insert(altTweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
  831. end
  832. if a then coroutine.wrap(func)() else func() end
  833. end)
  834. end
  835.  
  836. weld=function(p0,p1,c0)
  837. local w=Instance.new("Weld",p0)
  838. w.Part0=p0
  839. w.Part1=p1
  840. w.C0=c0
  841. return w
  842. end
  843.  
  844. cp=function(parent,color,size,anchored,cancollide)
  845. local newp=Instance.new("Part",parent)
  846. newp.TopSurface='SmoothNoOutlines'
  847. newp.BottomSurface='SmoothNoOutlines'
  848. newp.FrontSurface='SmoothNoOutlines'
  849. newp.BackSurface='SmoothNoOutlines'
  850. newp.RightSurface='SmoothNoOutlines'
  851. newp.LeftSurface='SmoothNoOutlines'
  852. newp.FormFactor="Custom"
  853. newp.BrickColor=bc(color)
  854. local rn=math.random(3)
  855. if rn==1 then
  856. -- newp.BrickColor=BrickColor.new('Bright red')
  857. end
  858. newp.Size=size
  859. newp.Anchored=anchored
  860. newp.CanCollide=cancollide
  861. newp:BreakJoints()
  862. return newp
  863. end
  864.  
  865.  
  866. if ch:findFirstChild('Body Colors') then
  867. ch['Body Colors'].HeadColor=BrickColor.new('Really black')
  868. ch['Body Colors'].TorsoColor=BrickColor.new('Really black')
  869. ch['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  870. ch['Body Colors'].RightLegColor=BrickColor.new('Bright red')
  871. ch['Body Colors'].RightArmColor=BrickColor.new('Really black')
  872. ch['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  873. end
  874.  
  875. for _,v in pairs(ch:GetChildren()) do
  876. if v.className=='Accessory' then
  877. v:Destroy()
  878. elseif v.className=='Part' then
  879. v.BrickColor=BrickColor.new('Really black')
  880. end
  881. if v.Name=='Right Leg' then
  882. v.BrickColor=BrickColor.new('Bright red')
  883. end
  884. end
  885.  
  886. if ch:findFirstChild('Pants') then
  887. ch.Pants:Destroy()
  888. end
  889.  
  890. if ch:findFirstChild('Shirt') then
  891. ch.Shirt:Destroy()
  892. end
  893.  
  894. destroyJoints=function()
  895. for i=1,5 do
  896. for _,v in pairs(alljoints) do
  897. ypcall(function()
  898. v:Destroy()
  899. table.remove(alljoints,_)
  900. end)
  901. end
  902. end
  903. end
  904.  
  905. initializeJoints=function()
  906. destroyJoints()
  907. rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
  908. rabr.Position = torso.Position
  909. rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
  910. w = Instance.new("Weld",tube)
  911. w.Part0,w.Part1 = ch['Right Arm'],rabr
  912. w.C1 = CFrame.new(0,-.5,0)
  913. labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
  914. labr.Position = torso.Position
  915. lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
  916. ww = Instance.new("Weld",tube)
  917. ww.Part0,ww.Part1 = ch['Left Arm'],labr
  918. ww.C1 = CFrame.new(0,-.5,0)
  919. rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
  920. rlabr.Position = torso.Position
  921. rlw = Weld(rlabr,torso,0.5,-1.5,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
  922. wl = Instance.new("Weld",tube)
  923. wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
  924. wl.C1 = CFrame.new(0,-.5,0)
  925. llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
  926. llabr.Position = torso.Position
  927. llw = Weld(llabr,torso,-0.5,-1.5,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
  928. wwl = Instance.new("Weld",tube)
  929. wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
  930. wwl.C1 = CFrame.new(0,-.5,0)
  931. nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
  932. nk.Position = torso.Position
  933. neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
  934. www = Instance.new("Weld",tube)
  935. www.Part0,www.Part1 = ch['Head'],nk
  936. www.C1 = CFrame.new(0,-.5,0)
  937. table.insert(alljoints,rabr)
  938. table.insert(alljoints,labr)
  939. table.insert(alljoints,rw)
  940. table.insert(alljoints,lw)
  941. table.insert(alljoints,w)
  942. table.insert(alljoints,ww)
  943. table.insert(alljoints,rlabr)
  944. table.insert(alljoints,llabr)
  945. table.insert(alljoints,rlw)
  946. table.insert(alljoints,llw)
  947. table.insert(alljoints,wl)
  948. table.insert(alljoints,wwl)
  949. table.insert(alljoints,nk)
  950. table.insert(alljoints,neck)
  951. table.insert(alljoints,www)
  952. end
  953.  
  954. cyl=function(prt)
  955. local c=int("CylinderMesh",prt)
  956. return c
  957. end
  958.  
  959. blo=function(prt)
  960. local c=int("BlockMesh",prt)
  961. c.Name='bmsh'
  962. return c
  963. end
  964.  
  965. sphere=function(prt)
  966. local c=int('SpecialMesh',prt)
  967. c.MeshType='Sphere'
  968. return c
  969. end
  970.  
  971. newSpm=function(prt)
  972. local nspm=int('SpecialMesh',prt)
  973. nspm.MeshType='FileMesh'
  974. return nspm
  975. end
  976.  
  977.  
  978. --cool hat
  979. local hat=cp(tube,'Really black',Vector3.new(1,1,1))
  980. local hatmesh=int('SpecialMesh',hat)
  981. hatmesh.MeshId=rbx..'24102243'
  982. weld(ch.Head,hat,cfn(0,0.6,0))
  983.  
  984.  
  985. local rarmdiamond=cp(tube,'Bright red',Vector3.new(1,1,1))
  986. local dia=newSpm(rarmdiamond)
  987. dia.MeshId=rbx..lib.diamond
  988. dia.Scale=Vector3.new(0.4,0.8,0.4)
  989. weld(ch['Right Arm'],rarmdiamond,cfn(0.4,0,0))
  990.  
  991. local testshoulder=cp(tube,'Bright red',Vector3.new(1.1,0.6,1.1))
  992. testshoulder.Material='SmoothPlastic'
  993. weld(ch['Right Arm'],testshoulder,cfn(0,0.8,0))
  994.  
  995. --local testtorso=cp(tube,'Bright red',Vector3.new(2.8,0.4,1.1))
  996. --blo(testtorso).Scale=Vector3.new(0.95,1,0.95)
  997. --weld(tor,testtorso,cfn(0,0,0)*ang(0,0,mr(45)))
  998.  
  999. local testhalf=cp(tube,'Bright red',Vector3.new(1,2,1))
  1000. testhalf.Material='SmoothPlastic'
  1001. blo(testhalf).Scale=Vector3.new(1.003,1.003,1.005)
  1002. weld(tor,testhalf,cfn(0.5,0,0))
  1003.  
  1004. local cooldiamond=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1005. local dia=newSpm(cooldiamond)
  1006. dia.Scale=Vector3.new(0.4,0.8,0.45)
  1007. dia.MeshId=rbx..lib.diamond
  1008. weld(testhalf,cooldiamond,cfn(0,0.3,-0.3))
  1009.  
  1010. local cooldiamond2=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1011. local dia=newSpm(cooldiamond2)
  1012. dia.Scale=Vector3.new(0.4,0.8,0.45)
  1013. dia.MeshId=rbx..lib.diamond
  1014. weld(testhalf,cooldiamond2,cfn(0.2,-0.15,-0.3))
  1015.  
  1016. local cooldiamond3=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1017. local dia=newSpm(cooldiamond3)
  1018. dia.Scale=Vector3.new(0.4,0.8,0.45)
  1019. dia.MeshId=rbx..lib.diamond
  1020. weld(testhalf,cooldiamond3,cfn(-0.2,-0.15,-0.3))
  1021.  
  1022. --blo(ch['Right Leg'])
  1023. --ch['Right Leg'].Material='SmoothPlastic'
  1024.  
  1025. --[[
  1026. local testp=cp(tube,'Bright red',Vector3.new(2.1,1.3,1.2))
  1027. local tpb=blo(tstp)
  1028. tpb.Scale=Vector3.new(1.01,1.01,1)
  1029. weld(tor,testp,cfn(0,0.4,0))
  1030. ]]
  1031.  
  1032.  
  1033.  
  1034. initializeJoints()
  1035.  
  1036. reset=function()
  1037. if run == false and animPlaying == false then
  1038. altTweenTable={}
  1039. Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(5)))
  1040. Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(-5)))
  1041. Tween(rw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
  1042. Tween(lw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
  1043. Tween(neck,cfn())
  1044. Tween(rj,cfn(0,0.08*math.sin(tick()*1.5),0),0.3)
  1045. end
  1046. end
  1047.  
  1048. bigreset=function()
  1049. if run == false and animPlaying == false then
  1050. altTweenTable={}
  1051. Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(5)))
  1052. Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-5)))
  1053. Tween(rw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
  1054. Tween(lw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
  1055. Tween(neck,cfn())
  1056. Tween(rj,cfn(0,0.08*math.sin(tick()*1.5*mult),0),0.3)
  1057. end
  1058. end
  1059.  
  1060.  
  1061. resetLegs=function()
  1062. altTweenTable={}
  1063. Tween(llw,cfn())
  1064. Tween(rlw,cfn())
  1065. end
  1066.  
  1067. walkCycle=function()
  1068. if run==true and animPlaying==false then
  1069. tweenTable={}
  1070. Tween(neck,cfn())
  1071. Tween(rj,cfn())
  1072. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
  1073. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
  1074. Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
  1075. Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
  1076. end
  1077. end
  1078.  
  1079. walkCycleBig=function()
  1080. if run==true and animPlaying==false then
  1081. tweenTable={}
  1082. Tween(neck,cfn())
  1083. Tween(rj,cfn())
  1084. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
  1085. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
  1086. Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
  1087. Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
  1088. end
  1089. end
  1090.  
  1091. sprintCycle=function()
  1092. if run==true and animPlaying==false then
  1093. tweenTable={}
  1094. Tween(rj,cfn()*ang(mr(10),0,0))
  1095. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*11))*ang(mr(20)+mr(60*math.sin(tick()*11)),0,0),0.25)
  1096. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*11))*ang(mr(20)+mr(-60*math.sin(tick()*11)),0,0),0.25)
  1097. Tween(rw,cfn()*ang(mr(-20)+mr(60*math.sin(tick()*11)),0,mr(-10)),0.25)
  1098. Tween(lw,cfn()*ang(mr(-20)+mr(-60*math.sin(tick()*11)),0,mr(10)),0.25)
  1099. end
  1100. end
  1101.  
  1102. local jumping=false
  1103.  
  1104. jump=function()
  1105. if animPlaying==false then
  1106. jumping=true
  1107. run=false
  1108. resetLegs()
  1109. tweenTable={}
  1110. altTweenTable={}
  1111. -- animPlaying=true
  1112. -- Tween(rj,cfn()*ang(mr(-15),0,0),0.2)
  1113. Tween(neck,cfn(0,0,-0.2)*ang(mr(-20),0,0),0.1)
  1114. Tween(rw,cfn()*ang(mr(15),0,mr(-25)),0.1)
  1115. Tween(lw,cfn()*ang(mr(15),0,mr(25)),0.1)
  1116. Tween(rlw,cfn()*ang(mr(15),0,0),0.1)
  1117. Tween(llw,cfn()*ang(mr(15),0,0),0.1)
  1118. wait(0.2)
  1119. reset()
  1120. wait(0.1)
  1121. -- animPlaying=false
  1122. jumping=false
  1123. end
  1124. end
  1125.  
  1126. walkLegs=function()
  1127. if runLeg==true then
  1128. altTweenTable={}
  1129. altTween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(20)+mr(50*math.sin(tick()*8)),0,0),0.6)
  1130. altTween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(20)+mr(-50*math.sin(tick()*8)),0,0),0.6)
  1131. end
  1132. end
  1133.  
  1134. dealDamage=function(man,damage,crit,multi,lifesteal)
  1135. if man and man:findFirstChild'Humanoid' and man:findFirstChild'Head' then
  1136. local dm=damage
  1137. local cr=false
  1138. local hm=man.Humanoid
  1139. if crit then
  1140. if crit>0 then
  1141. local c=math.random(crit)
  1142. if c==1 then
  1143. cr=true
  1144. end
  1145. end
  1146. end
  1147. if cr==true then
  1148. if not multi then
  1149. dm=dm*1.5
  1150. else
  1151. dm=dm*multi
  1152. end
  1153. end
  1154. hm:TakeDamage(dm)
  1155. if lifesteal then
  1156. --print'lifesteal'
  1157. local plife=lifesteal*dm
  1158. if hum.Health<hum.MaxHealth then
  1159. hum.Health=hum.Health+plife
  1160. local bbg=int('BillboardGui',tube)
  1161. bbg.Size=UDim2.new(1,0,1,0)
  1162. bbg.StudsOffset=Vector3.new(0,2,0)
  1163. bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
  1164. bbg.Adornee=ch.Head
  1165. bbg.AlwaysOnTop=true
  1166. local tlabl=int('TextLabel',bbg)
  1167. tlabl.Size=UDim2.new(1,0,1,0)
  1168. tlabl.Text=tostring(plife)
  1169. tlabl.BackgroundTransparency=1
  1170. tlabl.TextColor3=BrickColor.new('Bright green').Color
  1171. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  1172. tlabl.TextStrokeTransparency=0
  1173. tlabl.Font='Antique'
  1174. tlabl.FontSize='Size60'
  1175. table.insert(textTable,bbg)
  1176. end
  1177. end
  1178. chain=chain+1
  1179. if hm.MaxHealth>=99999 then
  1180. hm.Parent:BreakJoints()
  1181. end
  1182. local bbg=int('BillboardGui',tube)
  1183. bbg.Size=UDim2.new(1,0,1,0)
  1184. bbg.StudsOffset=Vector3.new(0,2,0)
  1185. bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
  1186. bbg.Adornee=man.Head
  1187. bbg.AlwaysOnTop=true
  1188. local tlabl=int('TextLabel',bbg)
  1189. tlabl.Size=UDim2.new(1,0,1,0)
  1190. tlabl.Text=tostring(dm)
  1191. tlabl.BackgroundTransparency=1
  1192. tlabl.TextColor3=BrickColor.new('Really black').Color
  1193. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  1194. if cr==true then
  1195. tlabl.TextColor3=BrickColor.new('Really red').Color
  1196. tlabl.TextStrokeColor3=BrickColor.new('Really black').Color
  1197. end
  1198. tlabl.TextStrokeTransparency=0
  1199. tlabl.Font='Antique'
  1200. tlabl.FontSize='Size60'
  1201. table.insert(textTable,bbg)
  1202. return dm
  1203. end
  1204. end
  1205.  
  1206. displayText=function(thing,text,color)
  1207. local bbg=int('BillboardGui',tube)
  1208. bbg.Size=UDim2.new(1,0,1,0)
  1209. bbg.StudsOffset=Vector3.new(0,3,0)
  1210. bbg.Adornee=thing
  1211. bbg.AlwaysOnTop=true
  1212. local tlabl=int('TextLabel',bbg)
  1213. tlabl.Size=UDim2.new(1,0,1,0)
  1214. tlabl.Text=text
  1215. tlabl.BackgroundTransparency=1
  1216. tlabl.TextColor3=BrickColor.new('Really black').Color
  1217. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  1218. tlabl.TextStrokeTransparency=0
  1219. tlabl.Font='Antique'
  1220. tlabl.FontSize='Size60'
  1221. table.insert(textTable,bbg)
  1222. end
  1223.  
  1224. local tp=cp(tube,'White',Vector3.new(1,1,1))
  1225. tp.Transparency=1
  1226. weld(ch['Right Arm'],tp,cfn(0,-1,0))
  1227.  
  1228. addFx=function(item,int,final,func)
  1229. table.insert(fx,{item=item,int=int,func=func,final=final,stepval=0})
  1230. end
  1231.  
  1232. addMove=function(name,key,cooldown,func,manacost)
  1233. moves[name]={key=key,cooldown=cooldown,func=func,manacost=manacost}
  1234. end
  1235.  
  1236. drawLine=function(point_a,point_b,bc_code,angle,mag,width)
  1237. local dist=(point_a-point_b).magnitude;
  1238. local num=1
  1239. if mag then
  1240. num=mag
  1241. end
  1242. if dist>num then
  1243. local rad=dist/2;
  1244. local line=Instance.new('Part',tube)
  1245. line.Anchored=true;
  1246. line.FormFactor='Custom';
  1247. line.BrickColor=BrickColor.new(bc_code);
  1248. line.TopSurface='SmoothNoOutlines'
  1249. line.BottomSurface='SmoothNoOutlines'
  1250. line.LeftSurface='SmoothNoOutlines'
  1251. line.RightSurface='SmoothNoOutlines'
  1252. line.FrontSurface='SmoothNoOutlines'
  1253. line.BackSurface='SmoothNoOutlines'
  1254. line.Material='Neon'
  1255. line.CanCollide=false;
  1256. line.Size=Vector3.new(0.7,dist,0.7);
  1257. if width then
  1258. line.Size=Vector3.new(width,dist,width);
  1259. end
  1260. cyl(line).Name='blok'
  1261. -- Instance.new("BlockMesh",line).Name='blok'
  1262. line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad)*ang(mr(90),0,0)--*angle;
  1263. return line;
  1264. end
  1265. end;
  1266.  
  1267. depleteMana=function(amount)
  1268. if mana>0 then
  1269. if mana-amount>0 then
  1270. mana=mana-amount
  1271. return true
  1272. else
  1273. return false
  1274. end
  1275. end
  1276. end
  1277.  
  1278. executeMove=function(name)
  1279. if canExecuteMoves==true then
  1280. if ch and hum and hum.Health>0 then
  1281. local can=true
  1282. for _,v in pairs(cooldowns) do
  1283. if v.move==name then
  1284. can=false
  1285. break
  1286. end
  1287. end
  1288. if can==true then
  1289. local can2=true
  1290. if moves[name].manacost then
  1291. local a=depleteMana(moves[name].manacost)
  1292. if not a then
  1293. can2=false
  1294. end
  1295. end
  1296. if can2 then
  1297. moves[name].func()
  1298. end
  1299. end
  1300. end
  1301. end
  1302. end
  1303.  
  1304. addToCList=function(what,key)
  1305. local a={what,key=key,up=false}
  1306. table.insert(connectlist,a)
  1307. return a
  1308. end
  1309.  
  1310. waitForUp=function(what)
  1311. repeat wait() until what.up==true
  1312. end
  1313.  
  1314. addMover=function(what,step,func)
  1315. table.insert(movers,{mover=what,step=step,lastpoint=what.CFrame,func=func})
  1316. end
  1317.  
  1318. local function CreateRegion3FromLocAndSize(Position, Size)
  1319. local SizeOffset = Size/2
  1320. local Point1 = Position - SizeOffset
  1321. local Point2 = Position + SizeOffset
  1322. return Region3.new(Point1, Point2)
  1323. end
  1324.  
  1325. local righthandle=cp(tube,"White",Vector3.new(1,1,1))
  1326. weld(ch['Right Arm'],righthandle,cfn(0,-1,0))
  1327. righthandle.Transparency=1
  1328.  
  1329. local lefthandle=cp(tube,"White",Vector3.new(1,1,1))
  1330. weld(ch['Left Arm'],lefthandle,cfn(0,-1,0))
  1331. lefthandle.Transparency=1
  1332.  
  1333. --[[
  1334. Current Moves:
  1335. Normal Block
  1336. Dark Missile (High Crit (20% chance))
  1337. Rive Beam (10% Crit chance)
  1338. Dark Slash (Very High Crit (50% chance))
  1339. Down Slam
  1340. Aerial Sword (Very High Crit (50% chance))
  1341. Dark Spikes (Very High Crit (50% chance))
  1342. Curse (Damage Over Time and Lifesteal)
  1343. ]]
  1344.  
  1345. addCoolDown=function(move)
  1346. local a={timeleft=moves[move].cooldown,move=move}
  1347. addCoolDownGui(a)
  1348. table.insert(cooldowns,a)
  1349. end
  1350.  
  1351. addMove('Normal Block','f',0.5,function()
  1352. deb=true
  1353. idle=false
  1354. local ws=hum.WalkSpeed
  1355. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1356. hum.WalkSpeed=0
  1357. tweenTable={}
  1358. animPlaying=true
  1359. local pcf=tor.CFrame
  1360. Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
  1361. Tween(rw,cfn()*ang(mr(-86),mr(-15),0),0.2)
  1362. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1363. blocksound:Play()
  1364. local block=cp(workspace,'Really black',Vector3.new(8,6,1),true,true)
  1365. block.CFrame=pcf*CFrame.new(0,0,-5)
  1366. block.Material='Neon'
  1367. local bm=blo(block)
  1368. bm.Scale=Vector3.new(0,0,0.9)
  1369. addFx(block,0.05,nil,function() bm.Scale=bm.Scale+Vector3.new(0.05,0.05,0) end)
  1370. local a=addToCList('block_connect','f')
  1371. waitForUp(a)
  1372. addCoolDown('Normal Block')
  1373. hum.WalkSpeed=ws
  1374. deb=false
  1375. addFx(block,0.05,"destroy",function() block.Transparency=block.Transparency+0.05 block.bmsh.Scale=block.bmsh.Scale+Vector3.new(0.07,0.07,0) end)
  1376. idle=true
  1377. reset()
  1378. animPlaying=false
  1379. end,15)
  1380.  
  1381. addMove('Diamond Storm','v',10,function()
  1382. animPlaying=true
  1383. deb=true
  1384. canExecuteMoves=false
  1385. hum.WalkSpeed=0
  1386. tweenTable={}
  1387. altTweenTable={}
  1388. Tween(rw,cfn(0,1,0)*ang(mr(-70),mr(-45),0))
  1389. Tween(lw,cfn()*ang(mr(-70),mr(45),0))
  1390. magicriff:Play()
  1391. game.Debris:AddItem(bgmc,1)
  1392. spawn(function()
  1393. for i=1,20 do
  1394. wait()
  1395. local fx=cp(tube,'Really black',Vector3.new(1.2,1.2,1.2),true)
  1396. fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1397. local bl=blo(fx)
  1398. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  1399. end
  1400. end)
  1401. wait(1)
  1402. bg=true
  1403. local a=addToCList('diamond_connect','v')
  1404. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1405. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1406. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1407. repeat wait(0.1)
  1408. local d=depleteMana(10)
  1409. if d then
  1410. local bgmc=bigmagic:clone()
  1411. bgmc.Parent=ch.Head
  1412. bgmc.Volume=1
  1413. bgmc:Play()
  1414. local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
  1415. crn.CFrame=tor.CFrame*cfn(0,-2.5,0)
  1416. local ms=newSpm(crn)
  1417. ms.TextureId=rbx..'132155326'
  1418. ms.MeshId=rbx..lib.crown
  1419. ms.VertexColor=Vector3.new(0,0,0)
  1420. ms.Scale=Vector3.new(1.5,1,1.5)
  1421. addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.3,0,0.3) end)
  1422. diamondproj:Play()
  1423. local dia=cp(tube,'Really black',Vector3.new(1,1,1))
  1424. local ran=math.random(2)
  1425. if ran==1 then
  1426. dia.BrickColor=BrickColor.new('Bright red')
  1427. end
  1428. local dmm=newSpm(dia)
  1429. dmm.Scale=Vector3.new(0.5,1,0.5)
  1430. dmm.MeshId=rbx..lib.diamond
  1431. dia.CFrame=righthandle.CFrame
  1432. local sw=dia
  1433. local vel=int('BodyVelocity',dia)
  1434. sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))*ang(mr(math.random(-math.random(5),math.random(5))),mr(math.random(-math.random(5),math.random(5))),mr(math.random(-math.random(5),math.random(5))))--*ang(mr(90),0,0)
  1435. vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1436. vel.Velocity=sw.CFrame.lookVector*152
  1437. sw.CFrame=sw.CFrame*ang(mr(90),0,0)
  1438. game.Debris:AddItem(sw,2)
  1439. local dmgdealt=false
  1440. local nct=sw.Touched:connect(function(part)
  1441. if part.Parent and part.Parent:findFirstChild('Humanoid') and not part:IsDescendantOf(ch) and not dmgdealt then
  1442. dealDamage(part.Parent,4.5,5,2,2)
  1443. dmgdealt=true
  1444. end
  1445. if part:IsDescendantOf(ch)==false then
  1446. local snd=diamondbreak:clone()
  1447. snd.Parent=sw
  1448. snd:Play()
  1449. vel:Destroy()
  1450. sw.Anchored=true
  1451. addFx(sw,0.07,'destroy',function() dmm.Scale=dmm.Scale+Vector3.new(0.1,0.1,0.1) dia.Transparency=dia.Transparency+0.07 end)
  1452. end
  1453. end)
  1454. else
  1455. a.up=true
  1456. end
  1457. until a.up==true
  1458. animPlaying=false
  1459. deb=false
  1460. bg=false
  1461. canExecuteMoves=true
  1462. hum.WalkSpeed=regws
  1463. reset()
  1464. end,100)
  1465.  
  1466. addMove('Curse','g',25,function()
  1467. deb=true
  1468. idle=false
  1469. animPlaying=true
  1470. canRunLeg=true
  1471. tweenTable={}
  1472. altTweenTable={}
  1473. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1474. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1475. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1476. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1477. wait(0.15)
  1478. curse:Play()
  1479. addCoolDown('Curse')
  1480. local bullet=cp(tube,'Really black',Vector3.new(1,1,1))
  1481. bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1482. bullet.Transparency=1
  1483. local bulletfx=bullet:clone()
  1484. bulletfx.Transparency=1
  1485. bulletfx.Parent=bullet
  1486. bulletfx.Anchored=true
  1487. sphere(bulletfx)
  1488. local angle=0
  1489. local lastpoint=bullet.CFrame
  1490. spawn(function()
  1491. repeat wait(0.06)
  1492. local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  1493. cfx.Transparency=1
  1494. local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  1495. rfx.Material='Neon'
  1496. local ran=math.random(2)
  1497. if ran==1 then
  1498. rfx.BrickColor=BrickColor.new('Bright red')
  1499. end
  1500. local bm=int('SpecialMesh',rfx)--blo(rfx)
  1501. bm.MeshType='FileMesh'
  1502. bm.MeshId=rbx..'9756362'
  1503. bm.Scale=Vector3.new(0.3,0.7,0.3)
  1504. local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1505. addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end)
  1506. cfx.CFrame=bullet.CFrame*CFrame.new(math.random(-math.random(25/10),math.random(25)/10),0,math.random(-math.random(25)/10,math.random(25)/10))
  1507. rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
  1508. game.Debris:AddItem(cfx,1.1)
  1509. game.Debris:AddItem(rfx,1.1)
  1510. until bullet.Parent==nil
  1511. end)
  1512. addMover(bullet,0.8,function()
  1513. angle=angle+1
  1514. local angles=CFrame.Angles(0,0,mr(angle))
  1515. bulletfx.CFrame=bullet.CFrame--*angles
  1516. --bullet.CFrame=bullet.CFrame*angles
  1517. local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
  1518. fxp.CFrame=bulletfx.CFrame--*ang(mr(-90),0,0)
  1519. local bmesh=int('SpecialMesh',fxp)
  1520. bmesh.MeshType='FileMesh'
  1521. bmesh.MeshId=rbx..lib.ring
  1522. bmesh.Scale=Vector3.new(2,2,2)
  1523. addFx(fxp,0.07,'destroy',function() bulletfx.CFrame=bullet.CFrame bmesh.Scale=bmesh.Scale-Vector3.new(0.1,0.1,0) fxp.Transparency=fxp.Transparency+0.07 end)
  1524. end)
  1525. bullet.Touched:connect(function(p)
  1526. if not p:isDescendantOf(ch) then
  1527. local thing
  1528. local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
  1529. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  1530. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  1531. thing=v
  1532. break
  1533. end
  1534. end
  1535. if thing and thing.Parent then
  1536. if thing.Parent:findFirstChild('Head') then
  1537. displayText(thing.Parent.Head,'Cursed','Really black')
  1538. else
  1539. displayText(thing,'Cursed','Really black')
  1540. end
  1541. end
  1542. local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
  1543. mgp.Transparency=1
  1544. mgp.CFrame=bullet.CFrame
  1545. game.Debris:AddItem(mgp,3)
  1546. local tsound=glass:clone()
  1547. tsound.Volume=2
  1548. tsound.Parent=mgp
  1549. tsound:Play()
  1550. --local explosound=getSound(142070128)
  1551. --explosound.Volume=0.8
  1552. --explosound.Pitch=1.2
  1553. -- explosound.Parent=p
  1554. --explosound:Play()
  1555. local position=bullet.CFrame
  1556. if thing and thing.Parent then
  1557. dealDamage(thing.Parent,5,5)
  1558. local humin=thing.Parent.Humanoid
  1559. spawn(function()
  1560. for i=1,10 do
  1561. wait(1)
  1562. if thing.Parent then
  1563. dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)
  1564. end
  1565. end
  1566. end)
  1567. end
  1568. local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1569. blast.Material='Neon'
  1570. local spm2=blo(blast)
  1571. spm2.Name='mesh'
  1572. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1573. if p.Name=='Torso' or p.Parent and p.Parent:findFirstChild'Torso' then
  1574. blast.CFrame=p.Parent.Torso.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1575. end
  1576. for i=1,5 do
  1577. local fx=blast:clone()
  1578. fx.Parent=tube
  1579. fx.CFrame=blast.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1580. addFx(fx,0.05,"destroy",function()
  1581. fx.mesh.Scale=fx.mesh.Scale+Vector3.new(0.1,0.1,0.1)
  1582. fx.Transparency=fx.Transparency+0.05
  1583. end)
  1584. end
  1585. addFx(blast,0.05,"destroy",function()
  1586. spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
  1587. blast.Transparency=blast.Transparency+0.05
  1588. end)
  1589. bullet:Destroy()
  1590. bulletfx:Destroy()
  1591. end
  1592. end)
  1593. game.Debris:AddItem(bullet,3)
  1594. local bv=int('BodyVelocity',bullet)
  1595. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1596. bv.Velocity=bullet.CFrame.lookVector*150
  1597. wait(0.5)
  1598. reset()
  1599. deb=false
  1600. canRunLeg=false
  1601. animPlaying=false
  1602. end,100)
  1603.  
  1604. addMove('Rive Beam','e',5,function()
  1605. tweenTable={}
  1606. animPlaying=true
  1607. idle=false
  1608. deb=true
  1609. local pcf=tor.CFrame
  1610. canRunLeg=true
  1611. startsound:Play()
  1612. chargesound.Looped=true
  1613. chargesound:Play()
  1614. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1615. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1616. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1617. bg=true
  1618. local a=addToCList('beam_connect','e')
  1619. local charge=cp(tube,"Really black",Vector3.new(1,1,1))
  1620. charge.Material='Neon'
  1621. local spm=int('SpecialMesh',charge)
  1622. spm.MeshType='Sphere'
  1623. spm.Name='sphere'
  1624. weld(ch['Right Arm'],charge,cfn(0,-2,0))
  1625. local up=false
  1626. local multiplier=1
  1627. local cn=chargesound.DidLoop:connect(function()
  1628. local fx=charge:clone()
  1629. fx.Parent=tube
  1630. fx.CFrame=charge.CFrame
  1631. fx.BrickColor=BrickColor.new('Bright red')
  1632. weld(charge,fx,cfn())
  1633. addFx(fx,0.07,'destroy',function() if fx and fx:findFirstChild'sphere' then fx.sphere.Scale=fx.sphere.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end end)
  1634. end)
  1635. spawn(function()
  1636. repeat wait() if spm.Scale.X<2 then spm.Scale=spm.Scale+Vector3.new(0.05,0.05,0.05) multiplier=multiplier+0.1 end until up==true
  1637. end)
  1638. waitForUp(a)
  1639. cn:Disconnect()
  1640. up=true
  1641. addCoolDown('Rive Beam')
  1642. chargesound:Stop()
  1643. if multiplier<3.1 then
  1644. endsound:Play()
  1645. else
  1646. chargedupbeam:Play()
  1647. end
  1648. local ringFx=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1649. ringFx.CFrame=charge.CFrame*ang(mr(-90),0,0)
  1650. ringFx.Material='Neon'
  1651. local spm=int('SpecialMesh',ringFx)
  1652. spm.MeshId=rbx..lib.ring
  1653. spm.Scale=Vector3.new(2,2,2)
  1654. addFx(ringFx,0.08,"destroy",function()
  1655. spm.Scale=spm.Scale+Vector3.new(0.2,0.2,0)
  1656. ringFx.Transparency=ringFx.Transparency+0.08
  1657. end)
  1658. print(multiplier)
  1659. local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
  1660. if multiplier>=3.1 then
  1661. beam.BrickColor=BrickColor.new('Bright red')
  1662. end
  1663. local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300)
  1664. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  1665. local distance = (charge.CFrame.p - position).magnitude
  1666. beam.Size = Vector3.new(1, 1, distance)
  1667. beam.Material='Neon'
  1668. beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1669. local blast=cp(tube,"Really black",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false)
  1670. blast.Material='Neon'
  1671. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
  1672. if multiplier>=3.1 then
  1673. local blast2=blast:clone()
  1674. --blast2.Size=blast.Size-Vector3.new(1,1,1)
  1675. blast2.CFrame=blast.CFrame
  1676. blast2.Parent=blast
  1677. blast2.BrickColor=BrickColor.new('Bright red')
  1678. local spml=sphere(blast2)
  1679. spml.Scale=Vector3.new(0.8,0.8,0.8)
  1680. addFx(blast2,0.008,'destroy',function() spml.Scale=spml.Scale+Vector3.new(0.05,0.05,0.05) blast2.Transparency=blast2.Transparency+0.008 end )
  1681. end
  1682. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1683. local people={}
  1684. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1685. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1686. local can=false
  1687. if not v.Parent:findFirstChild('HitDeb') then
  1688. can=true
  1689. end
  1690. if can==true then
  1691. local db=Instance.new('StringValue',v.Parent)
  1692. db.Name='HitDeb'
  1693. game.Debris:AddItem(db,0.5)
  1694. local humin=v.Parent.Humanoid
  1695. if humin then
  1696. local php=humin.Health
  1697. dealDamage(humin.Parent,20*multiplier,10,1,0.05)
  1698. humin.Sit=true
  1699. humin.PlatformStand=true
  1700. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1701. print('equal')
  1702. humin:TakeDamage(20*multiplier)
  1703. end
  1704. end
  1705. end
  1706. end
  1707. end
  1708. local blastsound=getSound(262562443)
  1709. blastsound.Parent=blast
  1710. blastsound.Volume=5
  1711. blastsound:Play()
  1712. blastsound:Stop()
  1713. blastsound:Play()
  1714. canRunLeg=false
  1715. runLeg=false
  1716. animPlaying=false
  1717. tweenTable={}
  1718. local spm2=int('SpecialMesh',blast)
  1719. spm2.MeshType='Sphere'
  1720. addFx(blast,0.008,"destroy",function()
  1721. spm2.Scale=spm2.Scale+Vector3.new(0.05,0.05,0.05)
  1722. blast.Transparency=blast.Transparency+0.008
  1723. end)
  1724. addFx(beam,0.1,"destroy",function()
  1725. beam.Transparency=beam.Transparency+0.1
  1726. end)
  1727. addFx(charge,0.1,"destroy",function()
  1728. charge.Transparency=charge.Transparency+0.1
  1729. end)
  1730. bg=false
  1731. run=false
  1732. idle=true
  1733. reset()
  1734. deb=false
  1735. end,60)
  1736.  
  1737. addMove('Down Slam','q',4,function()
  1738. currentkey=key
  1739. deb=true
  1740. animPlaying=true
  1741. altTweenTable={}
  1742. tweenTable={}
  1743. local rv=tor.CFrame.upVector
  1744. local bv=int('BodyVelocity',tor)
  1745. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1746. bv.Velocity=rv*-150
  1747. rushsound:Play()
  1748. Tween(rj,cfn()*ang(mr(180),0,0))
  1749. Tween(rw,cfn()*ang(mr(-180),0,0))
  1750. Tween(lw,cfn()*ang(mr(-180),0,0))
  1751. addCoolDown('Down Slam',4)
  1752. spawn(function()
  1753. repeat
  1754. wait()
  1755. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  1756. local ran=math.random(2)
  1757. if ran==1 then
  1758. cfx.BrickColor=BrickColor.new('Bright red')
  1759. cfx.Material='Neon'
  1760. end
  1761. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  1762. local b=blo(cfx)
  1763. addFx(cfx,0.05,'destroy',function()
  1764. cfx.Transparency=cfx.Transparency+0.05
  1765. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  1766. end)
  1767. until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  1768. end)
  1769. wait()
  1770. bv:Destroy()
  1771. multiplier=1
  1772. repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  1773. local bhit,pos=FindGround(cn(tor.CFrame.p),ch)
  1774. local blast=cp(tube,"Really black",Vector3.new(10,10,10),true,false)
  1775. blast.CFrame=pos
  1776. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
  1777. local people={}
  1778. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1779. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1780. local can=false
  1781. if not v.Parent:findFirstChild('HitDeb') then
  1782. can=true
  1783. end
  1784. if can==true then
  1785. local db=Instance.new('StringValue',v.Parent)
  1786. db.Name='HitDeb'
  1787. game.Debris:AddItem(db,0.5)
  1788. local humin=v.Parent.Humanoid
  1789. if humin then
  1790. local php=humin.Health
  1791. dealDamage(humin.Parent,20*multiplier,10)
  1792. humin.Sit=true
  1793. humin.PlatformStand=true
  1794. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1795. print('equal')
  1796. humin:TakeDamage(20*multiplier)
  1797. end
  1798. end
  1799. end
  1800. end
  1801. end
  1802. local sp=sphere(blast)
  1803. blast.Material='Neon'
  1804. landsound:Play()
  1805. addFx(blast,0.02,'destroy',
  1806. function()
  1807. sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1)
  1808. blast.Transparency=blast.Transparency+0.02
  1809. end)
  1810. animPlaying=false
  1811. deb=false
  1812. end,40)
  1813.  
  1814. addMove('Aerial Sword','r',2,function()
  1815. deb=true
  1816. animPlaying=true
  1817. tweenTable={}
  1818. altTweenTable={}
  1819. canExecuteMoves=false
  1820. idle=false
  1821. run=false
  1822. aerialcharge:Play()
  1823. Tween(rw,cfn()*ang(mr(-90),0,0))
  1824. local bp
  1825. local bgg
  1826. local a=addToCList('Aerial Sword','r')
  1827. local still=true
  1828. bp=int('BodyPosition',tor)
  1829. bp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1830. bp.Position=tor.Position
  1831. local sphr=cp(tube,'Really black',Vector3.new(8,8,8),true)
  1832. sphr.Transparency=1
  1833. sphr.Material='Neon'
  1834. local spho=sphere(sphr)
  1835. spho.Name='spho'
  1836. spho.Scale=Vector3.new(0,0,0)
  1837. sphr.CFrame=tor.CFrame
  1838. addFx(sphr,0.07,nil,function() spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) sphr.Transparency=sphr.Transparency-0.07 end)
  1839. Delay(6,function()
  1840. if not a.up then
  1841. a.up=true
  1842. end
  1843. end)
  1844. repeat wait(0.3)
  1845. local b=depleteMana(35)
  1846. if b then
  1847. swsound:Play()
  1848. local fx=sphr:clone()
  1849. fx.Parent=tube
  1850. fx.CFrame=sphr.CFrame
  1851. fx.BrickColor=BrickColor.new('Bright red')
  1852. addFx(fx,0.07,'destroy',function() fx.spho.Scale=fx.spho.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end)
  1853. local sw=int('Part')
  1854. game.Debris:AddItem(sw,6)
  1855. sw.CanCollide=false
  1856. sw.Anchored=false
  1857. sw.BrickColor=BrickColor.new('Really black')
  1858. sw.Material='Neon'
  1859. sw.Size=Vector3.new(1,1,2)
  1860. sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))--*ang(mr(90),0,0)
  1861. sw.Parent=tube
  1862. sw.Transparency=1
  1863. addFx(sw,0.1,nil,function() sw.Transparency=sw.Transparency-.1 end)
  1864. local spm=int("SpecialMesh",sw)
  1865. spm.MeshType='FileMesh'
  1866. spm.MeshId=rbx..lib.yato
  1867. spm.Scale=Vector3.new(0.05,0.05,0.05)
  1868. local vel=int('BodyVelocity',sw)
  1869. vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1870. vel.Velocity=sw.CFrame.lookVector*152
  1871. sw.CFrame=sw.CFrame*ang(0,mr(180),0)
  1872. sw.Touched:connect(function(p)
  1873. if p:IsDescendantOf(ch)==false then
  1874. sw.Anchored=true
  1875. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  1876. mgp.CFrame=sw.CFrame
  1877. mgp.Transparency=1
  1878. game.Debris:AddItem(mgp,2)
  1879. ssp=swexp:clone()
  1880. ssp.Parent=mgp
  1881. ssp.Volume=2
  1882. ssp:Play()
  1883. local blast=cp(tube,'Bright red',Vector3.new(8,8,8),true)
  1884. blast.Material='Neon'
  1885. blast.CFrame=sw.CFrame
  1886. local sp=sphere(blast)
  1887. addFx(sw,0.05,'destroy',function() sw.Transparency=sw.Transparency+0.05 spm.Scale=spm.Scale+Vector3.new(0.01,0.01,0.01) end)
  1888. addFx(blast,0.07,'destroy',function() blast.Transparency=blast.Transparency+0.07 sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) end)
  1889. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1890. local people={}
  1891. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1892. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1893. local can=false
  1894. if not v.Parent:findFirstChild('HitDeb') then
  1895. can=true
  1896. end
  1897. if can==true then
  1898. local db=Instance.new('StringValue',v.Parent)
  1899. db.Name='HitDeb'
  1900. game.Debris:AddItem(db,0.2)
  1901. local humin=v.Parent.Humanoid
  1902. if humin then
  1903. local php=humin.Health
  1904. dealDamage(humin.Parent,20+math.random(5),5)
  1905. humin.Sit=true
  1906. --humin.PlatformStand=true
  1907. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1908. print('equal')
  1909. humin:TakeDamage(20)
  1910. end
  1911. end
  1912. end
  1913. end
  1914. end
  1915. end
  1916. end)
  1917. else
  1918. a.up=true
  1919. end
  1920. until a.up==true
  1921. addCoolDown('Aerial Sword')
  1922. addFx(sphr,0.07,'destroy',function() sphr.Transparency=sphr.Transparency+0.07 spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) end)
  1923. still=false
  1924. spawn(function()
  1925. wait(0.3)
  1926. canExecuteMoves=true
  1927. end)
  1928. bp:Destroy()
  1929. tor.Anchored=false
  1930. deb=false
  1931. animPlaying=false
  1932. reset()
  1933. end,200)
  1934.  
  1935. addMove('Dark Missile','mb1',0.1,function()
  1936. tweenTable={}
  1937. animPlaying=true
  1938. deb=true
  1939. canRunLeg=true
  1940. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1941. bg=true
  1942. idle=false
  1943. basicsound:Play()
  1944. if basicswitch==false then
  1945. Tween(rw,cfn()*ang(mr(-100),mr(45),0),0.2)
  1946. Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
  1947. else
  1948. Tween(lw,cfn()*ang(mr(-100),mr(-45),0),0.2)
  1949. Tween(rj,cfn()*ang(0,mr(45),0),0.2)
  1950. end
  1951. wait(0.06)
  1952. local bullet=cp(tube,"Really black",Vector3.new(1,1,1),false,false)
  1953. bullet.Transparency=1
  1954. if basicswitch==false then
  1955. bullet.CFrame=righthandle.CFrame
  1956. bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1957. basicswitch=true
  1958. else
  1959. bullet.CFrame=lefthandle.CFrame
  1960. bullet.CFrame=CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1961. basicswitch=false
  1962. end
  1963. local bv=int('BodyVelocity',bullet)
  1964. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1965. bv.Velocity=bullet.CFrame.lookVector*150
  1966. local bulletfx=cp(tube,"Bright red",Vector3.new(1,1,1),true,false)
  1967. if basicswitch==false then
  1968. bulletfx.BrickColor=BrickColor.new('Really black')
  1969. end
  1970. bulletfx.CFrame=bullet.CFrame
  1971. bulletfx.Material='Neon'
  1972. sphere(bulletfx)
  1973. local angle=0
  1974. local bfsd=basicswitch
  1975. local lastpoint=bulletfx.CFrame
  1976. addCoolDown('Dark Missile')
  1977. addMover(bullet,0.8,function()
  1978. angle=angle+1
  1979. local angles=CFrame.Angles(math.rad(angle),mr(angle),0)
  1980. bulletfx.CFrame=bullet.CFrame
  1981. bulletfx.CFrame=bulletfx.CFrame*angles
  1982. if (lastpoint.p-bulletfx.CFrame.p).magnitude>1 then
  1983. local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Really black',angles)
  1984. --local ran=math.random(2)
  1985. if bfsd==true then
  1986. line.BrickColor=BrickColor.new('Bright red')
  1987. end
  1988. addFx(line,0.05,'destroy',function()
  1989. line.blok.Scale=line.blok.Scale+Vector3.new(0.05,0,0.05)
  1990. line.Transparency=line.Transparency+0.05
  1991. end)
  1992. lastpoint=bulletfx.CFrame
  1993. end
  1994. end)
  1995. bullet.Touched:connect(function(p)
  1996. if not p:isDescendantOf(ch) then
  1997. local thing
  1998. local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
  1999. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  2000. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  2001. thing=v
  2002. break
  2003. end
  2004. end
  2005. local explosound=getSound(142070128)
  2006. explosound.Volume=0.8
  2007. explosound.Pitch=1.2
  2008. explosound.Parent=p
  2009. explosound:Play()
  2010. local position=bullet.CFrame
  2011. if thing and thing.Parent then
  2012. dealDamage(thing.Parent,20,5)
  2013. end
  2014. local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  2015. if bfsd==false then
  2016. blast.BrickColor=BrickColor.new('Bright red')
  2017. end
  2018. blast.Material='Neon'
  2019. local spm2=sphere(blast)
  2020. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
  2021. addFx(blast,0.05,"destroy",function()
  2022. spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
  2023. blast.Transparency=blast.Transparency+0.05
  2024. end)
  2025. bullet:Destroy()
  2026. bulletfx:Destroy()
  2027. end
  2028. end)
  2029. game.Debris:AddItem(bullet,2.5)
  2030. game.Debris:AddItem(bulletfx,2.5)
  2031. wait(0.1)
  2032. idle=true
  2033. reset()
  2034. deb=false
  2035. animPlaying=false
  2036. bg=false
  2037. end,20)
  2038.  
  2039.  
  2040.  
  2041.  
  2042. local mult=2
  2043.  
  2044.  
  2045. initializeBigJoints=function()
  2046. destroyJoints()
  2047. rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
  2048. rabr.Position = torso.Position
  2049. rw = Weld(rabr,torso,1.5*mult,.5*mult,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
  2050. w = Instance.new("Weld",tube)
  2051. w.Part0,w.Part1 = ch['Right Arm'],rabr
  2052. w.C1 = CFrame.new(0,-.5,0)
  2053. labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
  2054. labr.Position = torso.Position
  2055. lw = Weld(labr,torso,-1.5*mult,.5*mult,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
  2056. ww = Instance.new("Weld",tube)
  2057. ww.Part0,ww.Part1 = ch['Left Arm'],labr
  2058. ww.C1 = CFrame.new(0,-.5,0)
  2059. rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
  2060. rlabr.Position = torso.Position
  2061. rlw = Weld(rlabr,torso,0.5*mult,-1.7*mult,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
  2062. wl = Instance.new("Weld",tube)
  2063. wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
  2064. wl.C1 = CFrame.new(0,-.5,0)
  2065. llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
  2066. llabr.Position = torso.Position
  2067. llw = Weld(llabr,torso,-0.5*mult,-1.7*mult,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
  2068. wwl = Instance.new("Weld",tube)
  2069. wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
  2070. wwl.C1 = CFrame.new(0,-.5,0)
  2071. nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
  2072. nk.Position = torso.Position
  2073. neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
  2074. www = Instance.new("Weld",tube)
  2075. www.Part0,www.Part1 = ch['Head'],nk
  2076. www.C1 = CFrame.new(0,-.5,0)
  2077. table.insert(alljoints,rabr)
  2078. table.insert(alljoints,labr)
  2079. table.insert(alljoints,rw)
  2080. table.insert(alljoints,lw)
  2081. table.insert(alljoints,w)
  2082. table.insert(alljoints,ww)
  2083. table.insert(alljoints,rlabr)
  2084. table.insert(alljoints,llabr)
  2085. table.insert(alljoints,rlw)
  2086. table.insert(alljoints,llw)
  2087. table.insert(alljoints,wl)
  2088. table.insert(alljoints,wwl)
  2089. table.insert(alljoints,nk)
  2090. table.insert(alljoints,neck)
  2091. table.insert(alljoints,www)
  2092. end
  2093.  
  2094. addMove('Ascend','l',1,function()
  2095. if not ascension then
  2096. ascension=true
  2097. ch['Right Arm'].Size=ch['Right Arm'].Size*mult
  2098. ch['Left Arm'].Size=ch['Left Arm'].Size*mult
  2099. tor.Size=tor.Size*mult
  2100. ch.HumanoidRootPart.Size=ch.HumanoidRootPart.Size*mult
  2101. ch['Right Leg'].Size=ch['Right Leg'].Size*mult
  2102. ch['Left Leg'].Size=ch['Left Leg'].Size*mult
  2103. ch['Head'].Size=ch['Head'].Size*mult
  2104. ch['Right Leg'].BrickColor=BrickColor.new('Really black')
  2105. ch['Body Colors'].RightLegColor=BrickColor.new('Really black')
  2106. hat:Destroy()
  2107. testhalf:Destroy()
  2108. rarmdiamond:Destroy()
  2109. cooldiamond:Destroy()
  2110. cooldiamond2:Destroy()
  2111. cooldiamond3:Destroy()
  2112. -- hum.HipHeight=hum.HipHeight*mult
  2113. initializeBigJoints()
  2114. rj:Destroy()
  2115. rj=weld(ch.HumanoidRootPart,tor,cfn())
  2116. --parts
  2117. --[[
  2118. local rsold=cp(tube,'Really red',Vector3.new(1,0.4,1)*mult)
  2119. rsold.Material='Granite'
  2120. local rsb=blo(rsold)
  2121. rsb.Scale=Vector3.new(1.05,1.05,1.05)
  2122. weld(ch['Right Arm'],rsold,cfn(0,0.8*mult,0))
  2123. local lsold=cp(tube,'Really red',Vector3.new(1,0.4,1)*mult)
  2124. lsold.Material='Granite'
  2125. local lsb=blo(lsold)
  2126. lsb.Scale=Vector3.new(1.05,1.05,1.05)
  2127. weld(ch['Left Arm'],lsold,cfn(0,0.8*mult,0))
  2128.  
  2129. local rhand=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
  2130. rhand.Material='Granite'
  2131. local rhb=blo(rhand)
  2132. rhb.Scale=Vector3.new(1.1,1.1,1.1)
  2133. weld(ch['Right Arm'],rhand,cfn(0,-1,0))
  2134.  
  2135.  
  2136. local lhand=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
  2137. lhand.Material='Granite'
  2138. local rhb=blo(lhand)
  2139. rhb.Scale=Vector3.new(1.1,1.1,1.1)
  2140. weld(ch['Left Arm'],lhand,cfn(0,-1,0))
  2141.  
  2142. local lhand1=cp(tube,'Really black',Vector3.new(0.2,0.7,0.2)*mult)
  2143. weld(lhand,lhand1,cfn(-1,0,0))
  2144. lhand1.Material='Granite'
  2145.  
  2146. local lstripe1=cp(tube,'Really red',Vector3.new(1,0.8,0.3)*mult)
  2147. lstripe1.Material='Granite'
  2148. blo(lstripe1).Scale=Vector3.new(1.02,1.1,1.02)
  2149. weld(ch['Left Arm'],lstripe1,cfn(0,0.3,0))
  2150.  
  2151. local rstripe1=cp(tube,'Really red',Vector3.new(1,0.8,0.3)*mult)
  2152. rstripe1.Material='Granite'
  2153. blo(rstripe1).Scale=Vector3.new(1.02,1.1,1.02)
  2154. weld(ch['Right Arm'],rstripe1,cfn(0,0.3,0))
  2155.  
  2156. local testdiag=cp(tube,'Really red',Vector3.new(0.3,2.4,1)*mult)
  2157. testdiag.Material='Granite'
  2158. blo(testdiag).Scale=Vector3.new(1.1,1.1,1.05)
  2159. weld(tor,testdiag,(cfn(0,0,0))*ang(0,0,mr(45)))
  2160. ]]
  2161. local that=cp(tube,'Bright red',Vector3.new(1,1,1)*mult)
  2162. local spm=newSpm(that)
  2163. spm.MeshId=rbx..lib.cone
  2164. spm.Scale=Vector3.new(3,1.5,3)
  2165. weld(ch.Head,that,cfn(0,1,0))
  2166. --[[
  2167. local belt=cp(tube,'Really red',Vector3.new(2,0.3,1)*mult)
  2168. belt.Material='Granite'
  2169. blo(belt).Scale=Vector3.new(1.03,1.1,1.1)
  2170. weld(tor,belt,cfn(0,-2,0))
  2171. ]]
  2172.  
  2173.  
  2174. New = function(Object, Parent, Name, Data)
  2175. local Object = Instance.new(Object)
  2176. for Index, Value in pairs(Data or {}) do
  2177. Object[Index] = Value
  2178. end
  2179. Object.Parent = Parent
  2180. Object.Name = Name
  2181. return Object
  2182. end
  2183.  
  2184. chest = New("Model",tube,"chest",{})
  2185. redwedgehalf = New("WedgePart",chest,"redwedgehalf",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.09999919, 4.00000048, 4.05000019),CFrame = CFrame.new(14.0277252, 5.99809361, 24.9995251, -2.61053401e-011, -1.77635684e-015, -0.999506414, 2.22681209e-019, 0.999753237, -3.55271368e-015, 0.999753237, -2.00206143e-020, -1.76481052e-011),Color = Color3.new(0.768628, 0.156863, 0.109804),})
  2186. chestdiamond = New("Part",chest,"chestdiamond",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.Slate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 1.64999986, 0.200000003),CFrame = CFrame.new(15.0479803, 7.07389736, 26.0992107, 0.999506414, -2.97996383e-008, -2.97928651e-008, 2.98069978e-008, 0.999753237, -1.60258799e-019, 2.97917584e-008, -8.87859141e-016, 0.999753237),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),})
  2187. Mesh = New("SpecialMesh",chestdiamond,"Mesh",{Scale = Vector3.new(1, 1, 0.300000012),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
  2188. mot = New("Motor",chestdiamond,"mot",{Part0 = chestdiamond,Part1 = redwedgehalf,C0 = CFrame.new(0, 0, 0, 1, 2.98143554e-008, 2.98075769e-008, -2.98143554e-008, 1, -8.88533432e-016, -2.98075769e-008, -1.60245396e-019, 1),C1 = CFrame.new(1.09995651, 1.07606936, -1.02075863, -2.61182326e-011, 2.22736242e-019, 1, -1.77723415e-015, 1, -2.22736294e-019, -1, -1.77723437e-015, -2.61182343e-011),})
  2189. blackwedgehalf = New("WedgePart",chest,"blackwedgehalf",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.24999905, 1.00000048, 4.05000019),CFrame = CFrame.new(14.0216274, 4.49221802, 24.9745178, -8.40483239e-011, 1.0658141e-014, -0.999506414, 1.6280148e-018, 0.999753177, 7.10542736e-015, 0.999753177, -1.42536268e-018, -7.56052998e-011),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2190. mot = New("Motor",blackwedgehalf,"mot",{Part0 = blackwedgehalf,Part1 = redwedgehalf,C0 = CFrame.new(0, 0, 0, -8.40898323e-011, 1.62841702e-018, 1, 1.06634045e-014, 1, -1.62841608e-018, -1, 1.06634045e-014, -8.40898323e-011),C1 = CFrame.new(-0.0250015259, -1.50550413, 0.00609493256, -2.61182326e-011, 2.22736242e-019, 1, -1.77723415e-015, 1, -2.22736294e-019, -1, -1.77723437e-015, -2.61182343e-011),})
  2191. -- blo(tor)
  2192. weld(tor,redwedgehalf,cfn()*ang(0,mr(90),0))
  2193. ch['Right Arm'].BrickColor=BrickColor.new('Bright red')
  2194. ch['Left Leg'].BrickColor=BrickColor.new('Bright red')
  2195. ch['Right Leg'].BrickColor=BrickColor.new('Bright red')
  2196. ch['Body Colors'].RightArmColor=BrickColor.new('Bright red')
  2197. ch['Body Colors'].LeftLegColor=BrickColor.new('Bright red')
  2198. ch['Body Colors'].RightLegColor=BrickColor.new('Bright red')
  2199. pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2200. weld(ch['Left Leg'],pantl,cfn(0,0.4,0))
  2201. pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2202. weld(ch['Right Leg'],pantl,cfn(0,0.4,0))
  2203. blo(ch['Right Arm'])
  2204. --local rab=cp(tube,'Bright red',ch['Right Arm'].Size)
  2205. --blo(rab)
  2206. --weld(ch['Right Arm'],rab,cfn())
  2207. --ch['Left Leg'].Transparency=1
  2208. --ch['Right Leg'].Transparency=1
  2209. --[[
  2210.  
  2211. local lpant=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
  2212. blo(lpant).Scale=Vector3.new(1.02,1.23,1.02)
  2213. lpant.Material='Granite'
  2214. weld(ch['Left Leg'],lpant,cfn(0,0.8,0))
  2215.  
  2216. local rpant=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
  2217. blo(rpant).Scale=Vector3.new(1.02,1.23,1.02)
  2218. rpant.Material='Granite'
  2219. weld(ch['Right Leg'],rpant,cfn(0,0.8,0))
  2220.  
  2221.  
  2222. ]]
  2223. --head
  2224. --[[
  2225. local hb1=cp(tube,'Bright red',Vector3.new(0.3,1,1)*mult)
  2226. hb1.Material='Granite'
  2227. blo(hb1).Scale=Vector3.new(0.95,1.25,1.2)
  2228. weld(ch.Head,hb1,cfn(0,0.05,0))
  2229.  
  2230. local chin=cp(tube,'Bright red',Vector3.new(0.3,1,0.3)*mult)
  2231. chin.Material='Granite'
  2232. weld(hb1,chin,cfn(0,-0.75,-1)*ang(mr(45),0,0))
  2233.  
  2234. local backchin=cp(tube,'Bright red',Vector3.new(0.3,1,0.3)*mult)
  2235. backchin.Material='Granite'
  2236. weld(hb1,backchin,cfn(0,-0.75,1)*ang(mr(-45),0,0))
  2237. local cp1=cp(tube,'Bright red',Vector3.new(0.3,1.7,0.2)*mult)
  2238. cp1.Material='Granite'
  2239. weld(hb1,cp1,cfn(0,0,1.8))
  2240. blo(cp1).Scale=Vector3.new(1.05,1,1.05)
  2241.  
  2242. local cp2=cp(tube,'Bright red',Vector3.new(0.3,1.7,0.2)*mult)
  2243. cp2.Material='Granite'
  2244. weld(hb1,cp2,cfn(0,0,-1.8))
  2245. blo(cp2).Scale=Vector3.new(1.05,1,1.05)
  2246.  
  2247. local top=cp(tube,'Bright red',Vector3.new(0.3,0.2,2)*mult)
  2248. top.Material='Granite'
  2249. weld(hb1,top,cfn(0,1.8,0))
  2250. ]]
  2251. end
  2252. end,1)
  2253.  
  2254. local dumbbox=nil
  2255. local dhand=nil
  2256. local darknum=1
  2257.  
  2258. addMove('Dark Slash','r',2,function()
  2259. local oldspeed=hum.WalkSpeed
  2260. hum.WalkSpeed=0
  2261. local meshd='http://www.roblox.com/asset/?id=12171188'
  2262. tweenTable={}
  2263. altTweenTable={}
  2264. deb=true
  2265. animPlaying=true
  2266. canRunLeg=true
  2267. startsound2:Play()
  2268. local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
  2269. sp.CFrame=tor.CFrame
  2270. sp.Transparency=0.5
  2271. local sph=sphere(sp)
  2272. addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
  2273. spawn(function()
  2274. for i=1,10 do
  2275. wait()
  2276. local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
  2277. local rnd=math.random(2)
  2278. if rnd==1 then
  2279. cool1.BrickColor=BrickColor.new('Bright red')
  2280. cool1.Material='Neon'
  2281. end
  2282. local ms1=blo(cool1)
  2283. cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2284. addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
  2285. end
  2286. end)
  2287. addCoolDown('Dark Slash')
  2288. local allahsword=cp(tube,'White',Vector3.new(1,1,1))
  2289. local critmultiplier=2.4
  2290. local spm=int('SpecialMesh',allahsword)
  2291. spm.MeshType='FileMesh'
  2292. spm.MeshId=meshd
  2293. allahsword.Transparency=1
  2294. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2295. local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
  2296. local col=BrickColor.new("Really black").Color
  2297. spm.TextureId=rbx..'132155326'
  2298. spm.Name='mesh'
  2299. spm.VertexColor=Vector3.new(0,0,0)
  2300. spm.Scale=Vector3.new(1,1,1)
  2301. addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
  2302. weld(ch['Right Arm'],allahsword,cfn(0,-4,-0.5)*ang(mr(110),0,mr(180)))
  2303. Tween(rj,cfn()*ang(0,mr(-90),0))
  2304. Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-55),mr(-35),0))
  2305. Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-55),mr(35),0))
  2306. Delay(0.08,function()
  2307. local tstvel=int('BodyVelocity',tor)
  2308. tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
  2309. tstvel.Velocity=tv*35
  2310. game.Debris:AddItem(tstvel,0.24)
  2311. end)
  2312. wait(0.22)
  2313. local hitbox=cp(tube,'White',Vector3.new(2,12,2))
  2314. hitbox.Transparency=1
  2315. hitbox.CFrame=allahsword.CFrame
  2316. dumbbox=hitbox
  2317. dumbhand=allahsword
  2318. swoosh:Play()
  2319. spawn(function()
  2320. for i=1,10 do
  2321. wait()
  2322. local trl=allahsword:clone()
  2323. trl.Parent=tube
  2324. trl.CFrame=allahsword.CFrame
  2325. if trl:findFirstChild('mesh') then
  2326. -- trl.mesh.VertexColor=Vector3.new(BrickColor.new('Bright red').Color.r,BrickColor.new('Bright red').Color.g,BrickColor.new('Bright red').Color.b)
  2327. end
  2328. addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
  2329. end
  2330. end)
  2331. addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) --[[hitbox.CFrame=allahsword.CFrame*ang(mr(-90),0,0)]] end)
  2332. hitbox.Touched:connect(function(v)
  2333. if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
  2334. --print'touched'
  2335. local can=false
  2336. if not v.Parent:findFirstChild('HitDeb') then
  2337. can=true
  2338. end
  2339. if can==true then
  2340. local sls=getSound(220834020)
  2341. sls.Pitch=1+(math.random(3)/10)
  2342. sls.Parent=v
  2343. sls:Play()
  2344. local db=Instance.new('StringValue',v.Parent)
  2345. db.Name='HitDeb'
  2346. game.Debris:AddItem(db,0.5)
  2347. dealDamage(v.Parent,20+math.random(20),2,critmultiplier)
  2348. end
  2349. end
  2350. end)
  2351. Tween(rj,cfn(0,0,0)*ang(mr(0),mr(90),0))
  2352. Tween(rw,cfn(0.5,0.8,0)*ang(mr(-80),mr(-35),0))
  2353. Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-90),mr(35),0))
  2354. wait(0.2)
  2355. hitbox:Destroy()
  2356. hum.WalkSpeed=oldspeed
  2357. reset()
  2358. animPlaying=false
  2359. canRunLeg=false
  2360. deb=false
  2361. end,80)
  2362.  
  2363. --[[
  2364. addMove('Dark Slash2','r',2,function()
  2365. --http://www.roblox.com/asset/?id=12171188
  2366. local oldspeed=hum.WalkSpeed
  2367. if oldspeed==0 then
  2368. oldspeed=16
  2369. end
  2370. hum.WalkSpeed=0
  2371. local meshd='http://www.roblox.com/asset/?id=12171188'
  2372. tweenTable={}
  2373. altTweenTable={}
  2374. deb=true
  2375. idle=false
  2376. animPlaying=true
  2377. canRunLeg=true
  2378. tweenTable={}
  2379. altTweenTable={}
  2380. startsound3:Play()
  2381. Tween(rj,cfn(),1)
  2382. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2383. local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
  2384. sp.CFrame=tor.CFrame
  2385. sp.Transparency=0.5
  2386.  
  2387. local sph=sphere(sp)
  2388. addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
  2389. spawn(function()
  2390. for i=1,10 do
  2391. wait()
  2392. local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
  2393. local ms1=blo(cool1)
  2394. cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2395. addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
  2396. end
  2397. end)
  2398.  
  2399. --addCoolDown('Dark Slash2')
  2400. local allahsword=cp(tube,'White',Vector3.new(1,1,1))
  2401.  
  2402.  
  2403. local spm=int('SpecialMesh',allahsword)
  2404. spm.MeshType='FileMesh'
  2405. spm.MeshId=meshd
  2406. allahsword.Transparency=1
  2407. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2408. local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
  2409. local col=BrickColor.new("Really black").Color
  2410. spm.TextureId=rbx..'132155326'
  2411. spm.Name='mesh'
  2412. spm.VertexColor=Vector3.new(0,0,0)
  2413. spm.Scale=Vector3.new(1,1,1)
  2414. addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
  2415. weld(ch['Right Arm'],allahsword,cfn(0,-4,-2)*ang(-180,0,mr(-25)))--(-25)
  2416. local hitbox=cp(tube,'White',Vector3.new(2,12,2))
  2417. hitbox.Transparency=1
  2418. hitbox.CFrame=allahsword.CFrame
  2419. dumbbox=hitbox
  2420. dumbhand=allahsword
  2421. Tween(rj,cfn()*ang(0,mr(90),0))
  2422. Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-90),mr(-35),0))
  2423. Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-90),mr(35),0))
  2424.  
  2425. Delay(0.08,function()
  2426. local tstvel=int('BodyVelocity',tor)
  2427. tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
  2428. tstvel.Velocity=tv*35
  2429. game.Debris:AddItem(tstvel,0.24)
  2430. end)
  2431.  
  2432. wait(0.22)
  2433. swoosh:Play()
  2434. spawn(function()
  2435. for i=1,10 do
  2436. wait()
  2437. local trl=allahsword:clone()
  2438. trl.Parent=tube
  2439. trl.CFrame=allahsword.CFrame
  2440. addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
  2441. end
  2442. end)
  2443. addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) end)
  2444. hitbox.Touched:connect(function(v)
  2445. if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
  2446. --print'touched'
  2447. local can=false
  2448. if not v.Parent:findFirstChild('HitDeb') then
  2449. can=true
  2450. end
  2451. if can==true then
  2452. local sls=getSound(220834020)
  2453. sls.Pitch=1+(math.random(3)/10)
  2454. sls.Parent=v
  2455. sls:Play()
  2456. local db=Instance.new('StringValue',v.Parent)
  2457. db.Name='HitDeb'
  2458. game.Debris:AddItem(db,0.5)
  2459. dealDamage(v.Parent,20+math.random(20),10)
  2460. end
  2461. end
  2462. end)
  2463. Tween(rj,cfn(0,0,0)*ang(mr(0),mr(-90),0))
  2464. Tween(rw,cfn(0.5,0.8,0)*ang(mr(-20),mr(-35),0)) --(-10)
  2465. Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-20),mr(35),0))
  2466. wait(0.2)
  2467. hitbox:Destroy()
  2468. hum.WalkSpeed=oldspeed
  2469. reset()
  2470. deb=false
  2471. animPlaying=false
  2472. canRunLeg=false
  2473. end)
  2474. ]]
  2475.  
  2476. addMove('Dark Spikes','t',0.4,function()
  2477. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2478. local lv=tor.CFrame
  2479. tweenTable={}
  2480. animPlaying=true
  2481. deb=true
  2482. canRunLeg=true
  2483. magictone1:Play()
  2484. Tween(rj,cfn()*ang(0,mr(25),0),0.2)
  2485. Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
  2486. wait(0.2)
  2487. Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
  2488. Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
  2489. Tween(neck,cfn()*ang(0,mr(55),0))
  2490. local spot=4
  2491. addCoolDown('Dark Spikes')
  2492. for i=1,10 do
  2493. wait(0.1)
  2494. local v=lv.lookVector*spot
  2495. --print(v)
  2496. spot=spot+14
  2497. local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
  2498. spike.CFrame=lv*CFrame.new(0,0,-spot)
  2499. local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
  2500. local dml=cyl(dam)
  2501. local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
  2502. local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
  2503. if bhit then
  2504. spike.CFrame=pos*CFrame.new(0,0,0)
  2505. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  2506. mgp.Transparency=1
  2507. mgp.CFrame=spike.CFrame
  2508. game.Debris:AddItem(mgp,2)
  2509. local sn=spexp:clone()
  2510. sn.Parent=mgp
  2511. sn.Volume=2
  2512. sn:Play()
  2513. dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
  2514. local blast=dam
  2515. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  2516. local people={}
  2517. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2518. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2519. local can=false
  2520. if not v.Parent:findFirstChild('HitDeb') then
  2521. can=true
  2522. end
  2523. if can==true then
  2524. local db=Instance.new('StringValue',v.Parent)
  2525. db.Name='HitDeb'
  2526. game.Debris:AddItem(db,0.2)
  2527. local humin=v.Parent.Humanoid
  2528. if humin then
  2529. local php=humin.Health
  2530. dealDamage(humin.Parent,10+math.random(3),2)
  2531. local testvel=int('BodyVelocity',v)
  2532. testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2533. testvel.Velocity=lv.lookVector*100
  2534. game.Debris:addItem(testvel,1)
  2535. humin.Sit=true
  2536. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2537. print('equal')
  2538. humin:TakeDamage(20)
  2539. end
  2540. end
  2541. end
  2542. end
  2543. end
  2544. local cl=cyl(spike)
  2545. addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
  2546. addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end)
  2547. else
  2548. spike:Destroy()
  2549. end
  2550. end
  2551. wait(0.7)
  2552. deb=false
  2553. canRunLeg=false
  2554. animPlaying=false
  2555. reset()
  2556. end,30)
  2557.  
  2558. mouse.Button1Down:connect(function()
  2559. executeMove('Dark Missile')
  2560. --print('movers:' .. #movers)
  2561. --print('fx:' .. #fx)
  2562. end)
  2563.  
  2564. local vt
  2565. local dodgecool=false
  2566.  
  2567. iPart=function(tab) --tigrebloodd
  2568. local v=Instance.new(tab.type or 'Part')
  2569. if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
  2570. v.CanCollide=false
  2571. v.TopSurface=0 v.BottomSurface=0
  2572. v.Size=v3(tab[2],tab[3],tab[4])
  2573. if tab.co then v.BrickColor=bn(tab.co) end
  2574. if tab.tr then v.Transparency=tab.tr end
  2575. if tab.rf then v.Reflectance=tab.rf end
  2576. if tab.cf then v.CFrame=tab.cf end
  2577. if tab.an then v.Anchored=tab.an end
  2578. v.Parent=tab[1]
  2579. LastMade=v
  2580. return v
  2581. end
  2582.  
  2583. iNew=function(tab) --tigrebloodd
  2584. local v=Instance.new(tab[1])
  2585. for Ind,Val in pairs(tab) do
  2586. if Ind~=1 and Ind~=2 then
  2587. v[Ind] = Val
  2588. end
  2589. end
  2590. v.Parent=tab[2]==0 and LastMade or tab[2]
  2591. LastMade=v
  2592. return v
  2593. end
  2594.  
  2595. -- Antiboomz0r's functions -----------------------------------------------------------------
  2596.  
  2597. local ppart = iPart{nil,0.2,0.2,0.2}
  2598. ppart.Material = "SmoothPlastic"
  2599. ppart.TopSurface = "SmoothNoOutlines"
  2600. ppart.BottomSurface = "SmoothNoOutlines"
  2601. ppart.RightSurface = "SmoothNoOutlines"
  2602. ppart.LeftSurface = "SmoothNoOutlines"
  2603. ppart.Transparency=0
  2604. ppart.Anchored=true
  2605. --ppart.Parent=tube
  2606.  
  2607. local function CFrameFromTopBack(at, top, back)
  2608. local right = top:Cross(back)
  2609. return CFrame.new(at.x, at.y, at.z,
  2610. right.x, top.x, back.x,
  2611. right.y, top.y, back.y,
  2612. right.z, top.z, back.z)
  2613. end
  2614.  
  2615. function Triangle(a, b, c)
  2616. local edg1 = (c-a):Dot((b-a).unit)
  2617. local edg2 = (a-b):Dot((c-b).unit)
  2618. local edg3 = (b-c):Dot((a-c).unit)
  2619. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2620. a, b, c = a, b, c
  2621. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2622. a, b, c = b, c, a
  2623. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2624. a, b, c = c, a, b
  2625. else
  2626. print("unreachable")
  2627. end
  2628. local len1 = (c-a):Dot((b-a).unit)
  2629. local len2 = (b-a).magnitude - len1
  2630. local width = (a + (b-a).unit*len1 - c).magnitude
  2631. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2632. local list = {}
  2633. if len1 > 0.01 then
  2634. local w1 = iNew{
  2635. "WedgePart",
  2636. Pack,
  2637. FormFactor="Custom",
  2638. BrickColor=ppart.BrickColor,
  2639. Transparency=ppart.Transparency,
  2640. Reflectance=ppart.Reflectance,
  2641. Material=ppart.Material,
  2642. CanCollide=ppart.CanCollide
  2643. }
  2644. w1.Parent=tube
  2645. local sz = v3(0.2, width, len1)
  2646. w1.Size = sz
  2647. local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size}
  2648. w1:BreakJoints()
  2649. w1.Anchored = true
  2650. w1.Transparency = 0.7
  2651. Spawn(function()
  2652. for i=0,1,0.1 do
  2653. wait()
  2654. w1.Transparency=w1.Transparency+0.03
  2655. end
  2656. end)
  2657. w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2)
  2658. table.insert(list,w1)
  2659. end
  2660. if len2 > 0.01 then
  2661. local w2 = iNew{
  2662. "WedgePart",
  2663. Pack,
  2664. FormFactor="Custom",
  2665. BrickColor=ppart.BrickColor,
  2666. Transparency=ppart.Transparency,
  2667. Reflectance=ppart.Reflectance,
  2668. Material=ppart.Material,
  2669. CanCollide=ppart.CanCollide
  2670. }
  2671. local sz = v3(0.2, width, len2)
  2672. w2.Size = sz
  2673. local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size}
  2674. w2:BreakJoints()
  2675. w2.Anchored = true
  2676. w2.Transparency = 0.7
  2677. Spawn(function()
  2678. for i=0,1,0.1 do
  2679. wait()
  2680. w2.Transparency=w2.Transparency+0.03
  2681. end
  2682. end)
  2683. w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2)
  2684. w2.Parent=tube
  2685. table.insert(list,w2)
  2686. end
  2687. return unpack(list)
  2688. end
  2689.  
  2690. bclf=ch['Right Arm'].CFrame
  2691. scfr=bclf
  2692.  
  2693. --[[
  2694. while wait() do--test
  2695.  
  2696. local h=3.8
  2697. local a,b=Triangle(scfr*CFrame.new(0,h/2,0).p,scfr*CFrame.new(0,-h/2,0).p,scfr*CFrame.new(0,h/2,0).p)
  2698. scfr=bclf
  2699. bclf=ch['Right Arm'].CFrame
  2700. local a,b=Triangle(bclf*CFrame.new(0,h/2,0).p,bclf*CFrame.new(0,-h/2,0).p,bclf*CFrame.new(0,h/2,0).p)
  2701. print(a.Parent)
  2702. print(a.CFrame)
  2703. end
  2704. ]]
  2705.  
  2706. -- Antiboomz0r's functions -----------------------------------------------------------------
  2707.  
  2708. -------------------tigrebloodd functions------------------------------
  2709.  
  2710. ca=CFrame.Angles
  2711. cn=CFrame.new
  2712. v3=Vector3.new
  2713.  
  2714. function Raycast(Pos,Dir,Ign)
  2715. return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign)
  2716. end
  2717.  
  2718. function FindGround(cf,ig)
  2719. local ax,ay,az = cf:toEulerAnglesXYZ()
  2720. local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig)
  2721. if bhit and bpos then
  2722. return bhit,cn(bpos)*ca(ax,ay,az)
  2723. end
  2724. end
  2725. -------------------tigrebloodd functions----------------------------
  2726.  
  2727. currentkey=''
  2728.  
  2729. mouse.KeyDown:connect(function(key)
  2730. if key=='q' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
  2731. executeMove('Down Slam')
  2732. elseif key=='r' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
  2733. executeMove('Aerial Sword')
  2734. end
  2735. if string.byte(key)==32 and canExecuteMoves==true then
  2736. combostring=combostring..'.'
  2737. spawn(function()
  2738. jump()
  2739. end)
  2740. --jump()
  2741. if combostring:match('..') and dodgecool==false then
  2742. currentkey=tostring(string.byte(key))
  2743. animPlaying=true
  2744. altTween(rj,cfn()*ang(mr(-15),0,0))
  2745. altTween(rw,cfn()*ang(mr(10),0,mr(-15)))
  2746. altTween(lw,cfn()*ang(mr(10),0,mr(15)))
  2747. dodgecool=true
  2748. combostring=[[]]
  2749. local rv=tor.CFrame.upVector
  2750. local bv=int('BodyVelocity',tor)
  2751. dodgesound:Play()
  2752. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2753. bv.Velocity=rv*150
  2754. spawn(function()
  2755. for i=1,14 do
  2756. wait()
  2757. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2758. --cfx.Material='Neon'
  2759. local ran=math.random(2)
  2760. if ran==1 then
  2761. cfx.BrickColor=BrickColor.new('Bright red')
  2762. cfx.Material='Neon'
  2763. end
  2764. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2765. local b=blo(cfx)
  2766. addFx(cfx,0.05,'destroy',function()
  2767. cfx.Transparency=cfx.Transparency+0.05
  2768. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2769. end)
  2770. end
  2771. end)
  2772. wait()
  2773. bv:Destroy()
  2774. wait(0.4)
  2775. reset()
  2776. dodgecool=false
  2777. wait(0.4)
  2778. if currentkey=='32' then
  2779. currentkey=''
  2780. end
  2781. if not deb then
  2782. animPlaying=false
  2783. end
  2784. --repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  2785. --currentkey
  2786. end
  2787. elseif string.byte(key)==48 and canExecuteMoves==true then
  2788. sprinting=true
  2789. hum.WalkSpeed=24
  2790. end
  2791. if key=='d' and canExecuteMoves==true then
  2792. combostring=combostring..'d'
  2793. if combostring:match('dd') and dodgecool==false then
  2794. --animPlaying=true
  2795. dodgecool=true
  2796. combostring=[[]]
  2797. local rv=cam.CFrame.rightVector
  2798. local bv=int('BodyVelocity',tor)
  2799. dodgesound:Play()
  2800. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2801. bv.Velocity=rv*150
  2802. --Tween(rj,cfn()*ang(mr(90),0,0))
  2803. spawn(function()
  2804. for i=1,16 do
  2805. wait()
  2806. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2807. local ran=math.random(2)
  2808. if ran==1 then
  2809. cfx.BrickColor=BrickColor.new('Bright red')
  2810. cfx.Material='Neon'
  2811. end
  2812. --cfx.Material='Neon'
  2813. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2814. local b=blo(cfx)
  2815. addFx(cfx,0.05,'destroy',function()
  2816. cfx.Transparency=cfx.Transparency+0.05
  2817. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2818. end)
  2819. end
  2820. end)
  2821. wait()
  2822. bv:Destroy()
  2823. wait(0.4)
  2824. dodgecool=false
  2825. end
  2826. elseif key=='w' and canExecuteMoves==true then
  2827. combostring=combostring..'w'
  2828. if combostring:match('ww') and dodgecool==false then
  2829. dodgecool=true
  2830. combostring=""
  2831. local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,-1))
  2832. --tor.CFrame=CFrame.new(tor.Position,Vector3.new(rv.X,tor.Position.Y,rv.Z))
  2833. local bv=int('BodyVelocity',tor)
  2834. dodgesound:Play()
  2835. bv.MaxForce=Vector3.new(math.huge,0,math.huge)
  2836. bv.Velocity=rv*150
  2837. spawn(function()
  2838. for i=1,16 do
  2839. wait()
  2840. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2841. --cfx.Material='Neon'
  2842. local ran=math.random(2)
  2843. if ran==1 then
  2844. cfx.BrickColor=BrickColor.new('Bright red')
  2845. cfx.Material='Neon'
  2846. end
  2847. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2848. local b=blo(cfx)
  2849. addFx(cfx,0.05,'destroy',function()
  2850. cfx.Transparency=cfx.Transparency+0.05
  2851. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2852. end)
  2853. end
  2854. end)
  2855. wait()
  2856. bv:Destroy()
  2857. wait(0.4)
  2858. dodgecool=false
  2859. end
  2860. elseif key=='s' and canExecuteMoves==true then
  2861. combostring=combostring..'s'
  2862. if combostring:match('ss') and dodgecool==false then
  2863. dodgecool=true
  2864. combostring=""
  2865. local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,1))
  2866. local bv=int('BodyVelocity',tor)
  2867. dodgesound:Play()
  2868. bv.MaxForce=Vector3.new(math.huge,0,math.huge)
  2869. bv.Velocity=rv*150
  2870. spawn(function()
  2871. for i=1,16 do
  2872. wait()
  2873. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2874. --cfx.Material='Neon'
  2875. local ran=math.random(2)
  2876. if ran==1 then
  2877. cfx.BrickColor=BrickColor.new('Bright red')
  2878. cfx.Material='Neon'
  2879. end
  2880. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2881. local b=blo(cfx)
  2882. addFx(cfx,0.05,'destroy',function()
  2883. cfx.Transparency=cfx.Transparency+0.05
  2884. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2885. end)
  2886. end
  2887. end)
  2888. wait()
  2889. bv:Destroy()
  2890. wait(.4)
  2891. dodgecool=false
  2892. end
  2893. elseif key=='a' and canExecuteMoves==true then
  2894. combostring=combostring..'a'
  2895. if combostring:match('aa') and dodgecool==false then
  2896. dodgecool=true
  2897. combostring=[[]]
  2898. local rv=cam.CFrame.rightVector
  2899. local bv=int('BodyVelocity',tor)
  2900. dodgesound:Play()
  2901. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2902. bv.Velocity=rv*-150
  2903. spawn(function()
  2904. for i=1,16 do
  2905. wait()
  2906. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2907. --cfx.Material='Neon'
  2908. local ran=math.random(2)
  2909. if ran==1 then
  2910. cfx.BrickColor=BrickColor.new('Bright red')
  2911. cfx.Material='Neon'
  2912. end
  2913. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2914. local b=blo(cfx)
  2915. addFx(cfx,0.05,'destroy',function()
  2916. cfx.Transparency=cfx.Transparency+0.05
  2917. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2918. end)
  2919. end
  2920. end)
  2921. wait()
  2922. bv:Destroy()
  2923. wait(.4)
  2924. dodgecool=false
  2925. end
  2926. end
  2927. if key=='f' then
  2928. if deb==false then
  2929. executeMove('Normal Block')
  2930. end
  2931. elseif key=='e' then
  2932. if deb==false then
  2933. executeMove('Rive Beam')
  2934. end
  2935. elseif key=='v' then
  2936. if deb==false then
  2937. executeMove('Diamond Storm')
  2938. end
  2939. elseif key=='t' then
  2940. if deb==false and not sprinting then
  2941. executeMove('Dark Spikes')
  2942. end
  2943. elseif key=='g' then
  2944. if deb==false then
  2945. executeMove('Curse')
  2946. end
  2947. elseif key=='l' then
  2948. if deb==false then
  2949. executeMove('Ascend')
  2950. end
  2951. elseif key=='r' then
  2952. if deb==false and Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and currentkey~='32' then
  2953. -- if darknum==1 then
  2954. executeMove('Dark Slash')
  2955. --darknum=darknum+1
  2956. -- else
  2957. -- executeMove('Dark Slash2')
  2958. -- darknum=1
  2959. -- end
  2960. end
  2961. end
  2962. end)
  2963.  
  2964. mouse.KeyUp:connect(function(key)
  2965. for _,v in pairs(connectlist) do
  2966. if v.up==false and v.key==key then
  2967. v.up=true
  2968. table.remove(connectlist,_)
  2969. end
  2970. end
  2971. if string.byte(key)==48 and canExecuteMoves==true then
  2972. sprinting=false
  2973. hum.WalkSpeed=regws
  2974. end
  2975. end)
  2976.  
  2977. mouse.Button1Up:connect(function()
  2978. for _,v in pairs(connectlist) do
  2979. if v.up==false then
  2980. v.up=true
  2981. table.remove(connectlist,_)
  2982. end
  2983. end
  2984. end)
  2985.  
  2986. local oldsize=mana/maxmana
  2987. local oldchain=0
  2988. spawn(function()
  2989. while wait(1) do
  2990. if deb==false then
  2991. if chain==oldchain then
  2992. chain=0
  2993. end
  2994. oldchain=chain
  2995. end
  2996. end
  2997. end)
  2998.  
  2999. --tor.Anchored=true
  3000. --cam.CameraType='Track'
  3001.  
  3002. --[[
  3003. local segments={}
  3004. local head=cp(tube,'Really black',Vector3.new(1,1,1))
  3005. weld(tor,head,cfn())
  3006. local oldsg=head
  3007. --local linez=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'White')
  3008. --linez.Parent=tube
  3009.  
  3010. for _,v in pairs(ch:GetChildren()) do
  3011. if v.className=='Part' or v.className=='BasePart' then
  3012. v.Transparency=1
  3013. v.CanCollide=false
  3014. end
  3015. end
  3016.  
  3017. ch.Head.face:Destroy()
  3018. ch['Right Arm']:Destroy()
  3019. ch['Left Arm']:Destroy()
  3020. ch['Right Leg']:Destroy()
  3021. ch['Left Leg']:Destroy()
  3022. tor.CanCollide=false
  3023. ch.HumanoidRootPart.CanCollide=false
  3024.  
  3025. for _,v in pairs(tube:GetChildren()) do
  3026. if v.className=='Part' or v.className=='BasePart' then
  3027. v.Transparency=1
  3028. v.CanCollide=false
  3029. end
  3030. end
  3031.  
  3032. ]]
  3033.  
  3034. game:service'RunService'.Heartbeat:connect(function()
  3035. --oldsg=head
  3036. --[[
  3037. if ascension==true and aright==true then
  3038. abv.Velocity=cam.CFrame.rightVector * 100
  3039. elseif ascension==true and aforward==true then
  3040. abv.Velocity=cam.CFrame.lookVector*150
  3041. end
  3042. local line=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'Really black',nil,1,7)
  3043. if line then
  3044. line.Parent=tube
  3045. table.insert(segments,line)
  3046. oldsg=line
  3047. end
  3048. if #segments>=40 then
  3049. --segments[1]:Destroy()
  3050. local thing=segments[1]
  3051. for i=1,10 do
  3052. wait()
  3053. if thing and thing:findFirstChild'blok' then
  3054. thing.blok.Scale=thing.blok.Scale-Vector3.new(0.1,0.1,0.1)
  3055. thing.Transparency=thing.Transparency+0.1
  3056. end
  3057. end
  3058. thing:Destroy()
  3059. table.remove(segments,1)
  3060. end
  3061. ]]
  3062. --tor.CFrame=cam.CFrame
  3063. --cam.CameraSubject=nil
  3064. chaintext.Text=tostring(chain) .. 'x'
  3065. manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
  3066. if mana/maxmana~=oldsize then
  3067. manabar:TweenSize(UDim2.new(mana/maxmana,0,1,0),'Out','Sine',1,true)
  3068. oldsize=mana/maxmana
  3069. end
  3070. if dumbbox then
  3071. dumbbox.CFrame=dumbhand.CFrame*cfn(0,0,4)*ang(mr(-90),0,0)
  3072. end
  3073. for _,v in pairs(textTable) do
  3074. if v.TextLabel.TextTransparency<1 then
  3075. v.TextLabel.TextTransparency=v.TextLabel.TextTransparency+0.02
  3076. v.TextLabel.TextStrokeTransparency=v.TextLabel.TextStrokeTransparency+0.02
  3077. v.StudsOffset=v.StudsOffset+Vector3.new(0,0.02,0)
  3078. else
  3079. v:Destroy()
  3080. table.remove(textTable,_)
  3081. end
  3082. end
  3083. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and jumping==false then
  3084. run=true
  3085. elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and jumping==false then
  3086. run=false
  3087. idle=true
  3088. end
  3089. --shift=48
  3090. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and canRunLeg==true then
  3091. runLeg=true
  3092. elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and canRunLeg==true then
  3093. runLeg=false
  3094. resetLegs()
  3095. end
  3096. for _,v in pairs(movers) do
  3097. if v.mover and v.mover:IsDescendantOf(tube) then
  3098. v.func()
  3099. else
  3100. table.remove(movers,_)
  3101. end
  3102. end
  3103. if bg then
  3104. if hum.Health > 0 then
  3105. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  3106. end
  3107. end
  3108. for _,v in pairs(fx) do
  3109. if v.stepval<1 then
  3110. v.func()
  3111. v.stepval=v.stepval+v.int
  3112. else
  3113. if v.final then
  3114. if v.final=='destroy' then
  3115. v.item:Destroy()
  3116. table.remove(fx,_)
  3117. -- print(#fx)
  3118. end
  3119. else
  3120. table.remove(fx,_)
  3121. end
  3122. end
  3123. end
  3124. for _,v in pairs(tweenTable) do
  3125. if v.Weld.C1==v.Stop then
  3126. table.remove(tweenTable,_)
  3127. else
  3128. if v.th<1-v.Step then
  3129. v.th=v.th+v.Step
  3130. i=v.th
  3131.  
  3132. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  3133. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  3134. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  3135. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  3136. (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
  3137. else
  3138. v.Weld.C1 = v.Stop
  3139. end
  3140. end
  3141. end
  3142. for _,v in pairs(altTweenTable) do
  3143. if v.Weld.C1==v.Stop then
  3144. table.remove(tweenTable,_)
  3145. else
  3146. if v.th<1-v.Step then
  3147. v.th=v.th+v.Step
  3148. i=v.th
  3149. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  3150. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  3151. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  3152. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  3153. (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
  3154. else
  3155. v.Weld.C1 = v.Stop
  3156. end
  3157. end
  3158. end
  3159. end)
  3160.  
  3161. local oldcombo
  3162. local thingz=false
  3163.  
  3164. spawn(function()
  3165. while wait(0.1) do
  3166. for _,v in pairs(cooldowns) do
  3167. if v.timeleft<0.1 then
  3168. table.remove(cooldowns,_)
  3169. else
  3170. v.timeleft=v.timeleft-0.1
  3171. end
  3172. end
  3173. if thingz==false then
  3174. oldcombo=combostring
  3175. thingz=true
  3176. else
  3177. if string.len(oldcombo)==string.len(combostring) then
  3178. combostring=[[]]
  3179. oldcombo=[[]]
  3180. end
  3181. thingz=false
  3182. end
  3183. end
  3184. end)
  3185.  
  3186. spawn(function()
  3187. while wait(0.3) do
  3188. if run==false then
  3189. local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  3190. cfx.Transparency=1
  3191. local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  3192. rfx.Material='Neon'
  3193. local ran=math.random(2)
  3194. if ran==1 then
  3195. rfx.BrickColor=BrickColor.new('Bright red')
  3196. end
  3197. local bm=int('SpecialMesh',rfx)--blo(rfx)
  3198. bm.MeshType='FileMesh'
  3199. bm.MeshId=rbx..'9756362'
  3200. bm.Scale=Vector3.new(0.3,0.7,0.3)
  3201. local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  3202. addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0.1,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end)
  3203. cfx.CFrame=tor.CFrame*CFrame.new(0,-2,0)*CFrame.new(math.random(-math.random(45/10),math.random(45)/10),0,math.random(-math.random(45)/10,math.random(45)/10))
  3204. rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
  3205. game.Debris:AddItem(cfx,1.1)
  3206. game.Debris:AddItem(rfx,1.1)
  3207. end
  3208. end
  3209. end)
  3210.  
  3211. while wait() do
  3212. if mana<maxmana and not deb and not animPlaying then
  3213. mana=mana+2
  3214. if mana==maxmana+1 then
  3215. mana=maxmana
  3216. end
  3217. end
  3218. if animPlaying==true and runLeg==true then
  3219. walkLegs()
  3220. end
  3221. if run==true and animPlaying==false then
  3222. altTweenTable={}
  3223. tweenTable={}
  3224. if not sprinting then
  3225. if not ascension then
  3226. walkCycle()
  3227. else
  3228. walkCycleBig()
  3229. end
  3230. else
  3231. sprintCycle()
  3232. end
  3233. elseif idle==true and animPlaying==false and not jumping then
  3234. tweenTable={}
  3235. if not ascension then
  3236. reset()
  3237. else
  3238. bigreset()
  3239. end
  3240. end
  3241. end
  3242. end))
  3243. LocalScript1.Name = "FakeMouse"
  3244. LocalScript1.Parent = Script0
  3245. table.insert(cors,sandbox(LocalScript1,function()
  3246. local me = game:service'Players'.localPlayer;
  3247. local mouse = me:GetMouse();
  3248. local UIS = game:service'UserInputService'
  3249. local ch = me.Character;
  3250.  
  3251. local UserEvent = ch:WaitForChild('UserInputEvent',30)
  3252.  
  3253. UIS.InputChanged:connect(function(io,gpe)
  3254. if(io.UserInputType == Enum.UserInputType.MouseMovement)then
  3255. UserEvent:FireServer{Mouse=true,Target=mouse.Target,Hit=mouse.Hit}
  3256. end
  3257. end)
  3258.  
  3259. mouse.Changed:connect(function(o)
  3260. if(o == 'Target' or o == 'Hit')then
  3261. UserEvent:FireServer{Mouse=true,Target=mouse.Target,Hit=mouse.Hit}
  3262. end
  3263. end)
  3264.  
  3265. UIS.InputBegan:connect(function(io,gpe)
  3266. if(gpe)then return end
  3267. UserEvent:FireServer{InputObject=true,KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  3268. end)
  3269.  
  3270. UIS.InputEnded:connect(function(io,gpe)
  3271. if(gpe)then return end
  3272. UserEvent:FireServer{InputObject=true,KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  3273. end)
  3274.  
  3275. mouse.KeyDown:connect(function(k)
  3276. UserEvent:FireServer{KeyEvent='Down',Key=k}
  3277. end)
  3278.  
  3279. mouse.KeyUp:connect(function(k)
  3280. UserEvent:FireServer{KeyEvent='Up',Key=k}
  3281. end)
  3282.  
  3283. local ClientProp = ch:WaitForChild('GetClientProperty',30)
  3284.  
  3285. local sounds = {}
  3286.  
  3287.  
  3288. function regSound(o)
  3289. if(o:IsA'Sound')then
  3290.  
  3291. local lastLoudness = o.PlaybackLoudness
  3292. ClientProp:InvokeServer(o,lastLoudness)
  3293. table.insert(sounds,{o,lastLoudness})
  3294. --ClientProp:InvokeServer(o,o.PlaybackLoudness)
  3295. end
  3296. end
  3297.  
  3298. ClientProp.OnClientInvoke = function(inst,prop)
  3299. if(inst == 'RegSound')then
  3300. regSound(prop)
  3301. for i = 1, #sounds do
  3302. if(sounds[i][1] == prop)then
  3303. return sounds[i][2]
  3304. end
  3305. end
  3306. else
  3307. return inst[prop]
  3308. end
  3309. end
  3310.  
  3311. for _,v in next, workspace:GetDescendants() do regSound(v) end
  3312. workspace.DescendantAdded:connect(regSound)
  3313. me.Character.DescendantAdded:connect(regSound)
  3314.  
  3315. game:service'RunService'.RenderStepped:connect(function()
  3316. for i = 1, #sounds do
  3317. local tab = sounds[i]
  3318. local object,last=unpack(tab)
  3319. if(object.PlaybackLoudness ~= last)then
  3320. sounds[i][2]=object.PlaybackLoudness
  3321. ClientProp:InvokeServer(object,sounds[i][2])
  3322. end
  3323. end
  3324. end)
  3325. end))
  3326. for i,v in pairs(mas:GetChildren()) do
  3327. v.Parent = script
  3328. pcall(function() v:MakeJoints() end)
  3329. end
  3330. mas:Destroy()
  3331. for i,v in pairs(cors) do
  3332. spawn(function()
  3333. pcall(v)
  3334. end)
  3335. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement