CHARA-SCRIPTER

MALUS

Jan 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.53 KB | None | 0 0
  1. --// Thanks for using SavageMunkey's Animation Base
  2. --// Got decompiled so fuck it asd
  3.  
  4. --// 145769116, 204863573 lol
  5. local Player = game:service'Players'.LocalPlayer
  6. repeat wait() until Player.Character
  7. local Character = Player.Character
  8. local Mouse = Player:GetMouse()
  9. local Landed = true
  10. local Walking = true
  11.  
  12. --// Settings
  13.  
  14. local ComboResetTime = .125 --// Seconds it takes for the combo to reset if not clicked fast enough
  15. local Max_Health = 150
  16. local NotifyKeyPresses = false
  17.  
  18. --// Limbs and what not
  19.  
  20. local Torso = Character:WaitForChild'Torso'
  21. local Head = Character:WaitForChild'Head'
  22. local Left_Arm = Character:WaitForChild'Left Arm'
  23. local Right_Arm = Character:WaitForChild'Right Arm'
  24. local Left_Leg = Character:WaitForChild'Left Leg'
  25. local Right_Leg = Character:WaitForChild'Right Leg'
  26. local HumanoidRootPart = Character:WaitForChild'HumanoidRootPart'
  27. local Humanoid = Character:WaitForChild'Humanoid'
  28.  
  29. --// Debounces
  30.  
  31. local trail=false
  32. local DebounceHit = false
  33. local DebounceKeyDown, DebounceState = false, false
  34. local DebounceAFKAnimations = false
  35.  
  36. --// Other Things
  37.  
  38. local State, LastState, Mode = 'Idle', 'Normal'
  39. Mode=LastState
  40. local AFKAnimSequenceCount,MaxSequenceCount = 0, 200
  41.  
  42. --// Abbreiviations
  43.  
  44. local rbx = 'rbxassetid://'
  45. local char,Char,plr,Plr = Character, Character, Player, Player
  46. local mouse,ms = Mouse, Mouse
  47. local cam,camera,Camera,Cam=workspace.CurrentCamera,workspace.CurrentCamera,workspace.CurrentCamera,workspace.CurrentCamera
  48. local dkd, debkd = DebounceKeyDown, DebounceKeyDown
  49. local dst, debst, ds, debs = DebounceState,DebounceState,DebounceState,DebounceState
  50. local daa,dafk,debafk = DebounceAFKAnimations,DebounceAFKAnimations,DebounceAFKAnimations
  51. local rs = game:service'RunService'
  52. local lrs = rs.Stepped
  53. local srs = rs.Stepped
  54. local lleg,rleg = Left_Leg, Right_Leg
  55. local larm,rarm = Left_Arm, Right_Arm
  56. local hed,torr,torso = Head, Torso, Torso
  57. local hum, root = Humanoid, HumanoidRootPart
  58. local vec3,vec2 = Vector3.new, Vector2.new
  59. local sin, cos, atan, rad, rand, rands = math.sin, math.cos, math.atan, math.rad, math.random, math.randomseed
  60. local cf, ang, eu, v3 = CFrame.new, CFrame.Angles, CFrame.fromEulerAnglesXYZ, Vector3.new
  61. local bc,bcr,c3 = BrickColor.new,BrickColor.Random,Color3.new
  62.  
  63. --// Removals and error prevention
  64.  
  65. if Char:FindFirstChild'Animate' then
  66. local Anim = Char:WaitForChild'Animate'
  67. Anim.Disabled=true
  68. end
  69. local anims = Humanoid:GetPlayingAnimationTracks()
  70. for i, v in ipairs(anims) do v:Stop() end
  71. print'Loading'
  72. wait(2)
  73.  
  74. for Index, Object in next, Head:GetChildren() do
  75. if Object:IsA('Sound') then
  76. Object.Volume = 0
  77. end
  78. end
  79. if Char:FindFirstChild'Health' then
  80. ypcall(game.Destroy, Char.Health)
  81. end
  82.  
  83. --// Base Functions
  84.  
  85. function Weld(to, from, c1)
  86. local New_Weld = Instance.new('Motor', to)
  87. New_Weld.Part0 = from
  88. New_Weld.Part1 = to
  89. New_Weld.C1 = c1
  90. return New_Weld
  91. end
  92.  
  93. function clerp(c1,c2,al)
  94. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  95. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  96. for i,v in pairs(com1) do
  97. com1[i] = v+(com2[i]-v)*al
  98. end
  99. return cf(com1[1],com1[2],com1[3]) * ang(select(4,unpack(com1)))
  100. end
  101.  
  102. function lerp(c1,c2,al)
  103. return c1:lerp(c2,al)
  104. end
  105.  
  106. function snd(Id, Parent, PlayAsWell, OtherProperties)
  107. PlayAsWell=PlayAsWell or false
  108. OtherProperties=OtherProperties or {Volume=.5}
  109. local Sound = Instance.new('Sound')
  110. Sound.SoundId = rbx..Id
  111. for i,v in next, OtherProperties do
  112. pcall(function()
  113. Sound[i]=v
  114. end)
  115. end
  116. Sound.Parent=Parent
  117. Sound.Ended:connect(function()
  118. game.Debris:AddItem(Sound, 1)
  119. end)
  120. if PlayAsWell then
  121. Sound:Play()
  122. end
  123. return Sound
  124. end
  125.  
  126. function FacePos(pos)
  127. local torso, torsoPos = torso, HumanoidRootPart.CFrame.p
  128. local torso = Char:FindFirstChild'Torso'
  129. if pos == 'mouse' or not pos then
  130. pos = CFrame.new(torsoPos, Vector3.new(mouse.Hit.X,torsoPos.Y,mouse.Hit.Z))
  131. else
  132. pos = CFrame.new(torsoPos, pos.p)
  133. end
  134. if torso then
  135. HumanoidRootPart.CFrame = lerp(HumanoidRootPart.CFrame,pos,.3)
  136. end
  137. end
  138.  
  139. local function lwait(i, output)
  140. --[[
  141. i, output = i or 0, output or false
  142. local lrs = game:service'RunService'.Stepped
  143. local ifps = 1 / (i / lrs:wait())
  144. local total = 0
  145. for asd = 0, (i - ifps) / i, ifps / 1.6 do
  146. if output then
  147. warn(asd)
  148. end
  149. total = asd * i
  150. lrs:wait()
  151. end
  152. return total, (i / ifps) / ifps, ifps
  153. ==]]
  154. return wait(i)
  155. end
  156.  
  157. local function Tween(Object, Time, Style, Direction, Properties)
  158. local S = type(Style) == 'string' and Enum.EasingStyle[Style] or Style
  159. local D = type(Direction) == 'string' and Enum.EasingDirection[Direction] or Direction
  160. local TweenService = game:GetService("TweenService")
  161. local TweenData = TweenInfo.new(Time, S, D, 0, false, 0)
  162. local Result = TweenService:Create(Object, TweenData, Properties)
  163. Result:Play()
  164. end
  165.  
  166. local walkspd = 16
  167. local sine, change = 0, 1
  168.  
  169. --// Model
  170.  
  171. local Welds = {};
  172. local Parts = {};
  173.  
  174. local function Join(Main, Parent) --// AutoWeld
  175. for Index, Object in next, Parent:GetChildren() do
  176. if Object:IsA('BasePart') then
  177. for i = 0, 5 do
  178. if Object:FindFirstChildOfClass('Weld') then
  179. Object:FindFirstChildOfClass('Weld'):Destroy()
  180. end
  181. end
  182. if Object ~= Main then
  183. Parts[#Parts + 1] = Object
  184. Object.Anchored, Object.CanCollide, Object.Locked = false, false, true
  185. local w = Weld(Main, Object, Main.CFrame:toObjectSpace(Object.CFrame))
  186. w.Name = Object.Name..':'..Main.Name
  187. w.Parent = script
  188. Welds[#Welds + 1] = {w, Main}
  189. else
  190. Parts[#Parts + 1] = Main
  191. Main.Anchored, Main.CanCollide, Main.Locked = false, false, true
  192. end
  193. end
  194. end
  195. end
  196.  
  197. --game:GetService('StarterGui'):SetCoreGuiEnabled(3, false)
  198.  
  199. local RStorage = game:GetService('ReplicatedStorage');
  200. local LG = RStorage:WaitForChild('Left', 5)
  201. local RG = RStorage:WaitForChild('Right', 5)
  202. local Melee = RStorage:WaitForChild('Melee', 5)
  203.  
  204. if LG == nil or RG == nil or Melee == nil then
  205. Character:BreakJoints()
  206. return
  207. end
  208.  
  209. LG = LG:Clone()
  210. RG = RG:Clone()
  211. Melee = Melee:Clone()
  212.  
  213. local LHA, LHI = LG.Handle, LG.Hitbox
  214. local RHA = RG.Handle
  215. local SHA, SHI = Melee.Handle, Melee.Hitbox
  216.  
  217. local trailTop = Instance.new('Part')
  218. trailTop.CFrame=SHI.CFrame*CFrame.new(0,-SHI.Size.Y/2,0)
  219. trailTop.Size=Vector3.new(1,1,1)
  220. trailTop.Transparency=1
  221. trailTop.Color=Color3.new(1,0,0)
  222. trailTop.Anchored=true
  223.  
  224. local trailBottom = Instance.new('Part')
  225. trailBottom.CFrame=SHI.CFrame*CFrame.new(0,(SHI.Size.Y/2),0)
  226. trailBottom.Size=Vector3.new(1,1,1)
  227. trailBottom.Transparency=1
  228. trailBottom.Color=Color3.new(0,1,0)
  229. trailBottom.Anchored=true
  230.  
  231. trailTop.Parent=Melee
  232. trailBottom.Parent=Melee
  233.  
  234. local TrailSettings = {
  235. Lifetime = .1,
  236. Transparency = NumberSequence.new(.5,1),
  237. Texture = 'rbxassetid://31270182',
  238. Color1 = ColorSequence.new(BrickColor.new'Alder'.Color,Color3.new(1,1,1)),
  239. }
  240.  
  241. local A0 = Instance.new('Attachment', trailTop)
  242. local A1 = Instance.new('Attachment', trailBottom)
  243.  
  244. local Trail = Instance.new('Trail', Character)
  245. Trail.Attachment0 = A0
  246. Trail.Attachment1 = A1
  247. Trail.FaceCamera=false
  248. Trail.Transparency = TrailSettings.Transparency
  249. Trail.Texture = TrailSettings.Texture
  250. Trail.Color = TrailSettings.Color1
  251. Trail.Lifetime = TrailSettings.Lifetime
  252.  
  253. Join(LHA, LG)
  254. Join(RHA, RG)
  255. Join(SHA, Melee)
  256. Join(SHA, Melee.Rune)
  257.  
  258. local MeshEffects = RStorage:WaitForChild('Effects'):Clone()
  259. MeshEffects.Parent = nil
  260.  
  261. for Index, Array in next, Welds do
  262. Array[1].Parent = Array[2]
  263. end
  264.  
  265. local Set = {
  266. ['Really black'] = {Color = Color3.new(0, 0, 0), Material = 'Grass'};
  267. Others = {}--Color = Color3.new(0, 0, 0), Material = 'SmoothPlastic'};
  268. };
  269.  
  270. local Exceptions = {};
  271.  
  272. for Index, Object in next, Parts do
  273. local Pardoned = false
  274. for Index, Model in next, Exceptions do
  275. if Object.Parent == Model then
  276. Pardoned = true
  277. end
  278. end
  279. if Object:IsA('BasePart') and not Pardoned then
  280. Object.Anchored, Object.Locked, Object.CanCollide = false, true, false
  281. if Object.ClassName:find('UnionOperation') then
  282. Object.UsePartColor = true
  283. end
  284. local WasSet = false
  285. for Look, Data in next, Set do
  286. if tostring(Object.BrickColor) == Look then
  287. WasSet = true
  288. for Index, Value in next, Data do
  289. pcall(function()
  290. Object[Index] = Value
  291. end)
  292. end
  293. end
  294. end
  295. if not WasSet then
  296. for Index, Value in next, Set.Others do
  297. pcall(function()
  298. Object[Index] = Value
  299. end)
  300. end
  301. end
  302. end
  303. end
  304.  
  305. --// Welds
  306.  
  307. local llw = Weld(Left_Leg, Torso, cf(.5,2,0))
  308. local rlw = Weld(Right_Leg, Torso, cf(-.5,2,0))
  309. local raw = Weld(Right_Arm, Torso, cf(-1.5,0,0))
  310. local law = Weld(Left_Arm, Torso, cf(1.5,0,0))
  311. local torw = Weld(Torso, HumanoidRootPart, cf(0,0,0))
  312. local hedw = Weld(Head, Torso, cf(0,-1.5,0))
  313. local lhw = Weld(Left_Arm, LHA, cf(0,0,0))
  314. local rhw = Weld(Right_Arm, RHA, cf(0,0,0)*ang(0,0,0))
  315. local shw = Weld(Right_Arm, SHA, cf(0,-1,0)*ang(0,-rad(90),-rad(90)))
  316.  
  317. LG.Parent, RG.Parent, Melee.Parent = script, script, script
  318.  
  319. --[[ State Example: Arms Out
  320. raw.C0 = clerp(raw.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  321. law.C0 = clerp(law.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  322. --]]
  323.  
  324. local keyz={};
  325. local Used = {
  326. Executed={};
  327. Failed={};
  328. };
  329.  
  330. local BindKey = function(Name, Key, Function)
  331. local keydown
  332. keyz[Key:upper()]=Name
  333. keydown = mouse.KeyDown:connect(function(key)
  334. if Key:lower() == key:lower() then
  335. local detect=dkd
  336. if dkd then
  337. table.insert(Used.Failed, {Name, Key, Function})
  338. elseif not dkd and Walking then
  339. if NotifyKeyPresses then
  340. warn('executed('..Name..', "'..tostring(Key:upper())..'")')
  341. end
  342. Function(Name, Key)
  343. if NotifyKeyPresses then
  344. warn('ended('..Name..')')
  345. end
  346. table.insert(Used.Executed, {Name, Key, Function})
  347. elseif Walking then
  348. warn('You must Walking enabled to use this key')
  349. end
  350. end
  351. end)
  352. end
  353.  
  354. local pitches = {}
  355. for i = -.1,.1,.01 do table.insert(pitches,1.5+i) end
  356.  
  357. --[[
  358.  
  359. BindKey('Attack Name', 'Key{Not case sensative}', function(AttackName, Key)
  360. ds,dkd = true,true
  361. for i = 0,1,.05 do
  362. local animspd = .1
  363. local Right_Arm_ = cf(0,0,0)
  364. local Left_Arm_ = cf(0,0,0)
  365. local Right_Leg_ = cf(0,0,0)
  366. local Left_Leg_ = cf(0,0,0)
  367. local Head_ = cf(0,0,0)
  368. local Torso_ = cf(0,0,0)
  369.  
  370. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  371. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  372. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  373. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  374. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  375. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  376. lrs:wait()
  377. lrs:wait()
  378. end
  379. for i = 0,1,.05 do
  380. local animspd = .1
  381. local Right_Arm_ = cf(0,0,0)
  382. local Left_Arm_ = cf(0,0,0)
  383. local Right_Leg_ = cf(0,0,0)
  384. local Left_Leg_ = cf(0,0,0)
  385. local Head_ = cf(0,0,0)
  386. local Torso_ = cf(0,0,0)
  387.  
  388. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  389. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  390. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  391. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  392. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  393. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  394. lrs:wait()
  395. end
  396. ds,dkd = false,false
  397. end)
  398.  
  399. --]]
  400.  
  401. function rainb(hue)
  402. local section = hue % 1 * 3
  403. local secondary = 0.5 * math.pi * (section % 1)
  404. if section < 1 then
  405. return c3(1, 1 - cos(secondary), 1 - sin(secondary))
  406. elseif section < 2 then
  407. return c3(1 - sin(secondary), 1, 1 - cos(secondary))
  408. else
  409. return c3(1 - cos(secondary), 1 - sin(secondary), 1)
  410. end
  411. end
  412.  
  413. function showDmg(To, From, Txt, Others)
  414. local bc,c3=BrickColor.new,Color3.new
  415. local vec3,cf=Vector3.new,CFrame.new
  416. local rand=math.random
  417. local n = 2
  418. local lrs=game:service'RunService'.Stepped
  419. local Color = 'Pearl'
  420. local Clr_Raw = Color
  421. if Clr == nil then Clr = 'Pearl' end
  422. Clr = bc(Color).Color
  423. local Pert = Instance.new('Part', Character)
  424. Pert.Size = vec3(.2,.2,.2)
  425. Pert.Transparency = 1
  426. Pert.CanCollide = false
  427. Pert.Anchored = true
  428. Pert.CFrame = To:FindFirstChild'Head'.CFrame * cf(rand(-n,n),n,rand(-n,n))
  429. Pert.BrickColor = bc('Black')
  430. local Rod = nil
  431. if (Others.Rod ~= nil and Others.Rod == true) then
  432. Rod = Instance.new('Part', Character)
  433. local to,from = Pert.CFrame.p, From:WaitForChild'HumanoidRootPart'.CFrame.p
  434. local dist = (to-from).magnitude
  435. Rod.Size = vec3(.2,.2,dist)
  436. Instance.new('BlockMesh',Rod).Scale=vec3(.1,.1,1)
  437. Rod.CFrame = cf(to,from)*cf(0,0,-dist/2)
  438. Rod.Transparency = .5 or Rod.RodTrans
  439. Rod.CanCollide = false
  440. Rod.Anchored = true
  441. Rod.BrickColor = bc(Clr_Raw)
  442. end
  443. local Gui = Instance.new('BillboardGui',Pert)
  444. Gui.Adornee = Pert
  445. local n2 = 10
  446. Gui.Size = UDim2.new(n2,0,n2,0)
  447. local TextL = Instance.new('TextLabel', Gui)
  448. local r,g,b = Clr.r,Clr.g,Clr.b
  449. local clr = c3(r,g,b)
  450. TextL.BackgroundTransparency = 1
  451. TextL.Font = 'SciFi'
  452. TextL.Size = UDim2.new(1,0,1,0)
  453. TextL.TextTransparency = .1
  454. TextL.TextStrokeTransparency = .2
  455. TextL.TextStrokeColor3 = clr
  456. TextL.Position = UDim2.new(0,0,0,0)
  457. Txt=tostring(Txt):upper()
  458. if string.find(Txt:lower(),'critical') or (Others.Crit ~= nil and Others.Crit == true)then
  459. Txt='(CRITICAL) // '..Txt
  460. end
  461. TextL.Text=Txt
  462. TextL.TextScaled = false
  463. TextL.FontSize = 'Size18'
  464. TextL.TextColor3 = Color3.new(1,1,1)
  465. local sp = Pert.CFrame*cf(rand(n,n*2),rand(n,n*2),rand(n,n*2)) --Pert.CFrame * cf(rand(-n,n),n,rand(-n,n))
  466. delay(.1,function()
  467. repeat lrs:wait()
  468. TextL.TextTransparency=TextL.TextTransparency+.005
  469. TextL.TextStrokeTransparency=TextL.TextStrokeTransparency+.005
  470. if Rod ~= nil then
  471. Rod.Transparency = Rod.Transparency + .0025
  472. end
  473. Pert.CFrame = Pert.CFrame:lerp(sp,.01)
  474. clr = c3(r,g,b)
  475. if Rod ~= nil then
  476. local to,from = Pert.CFrame.p, From:WaitForChild'HumanoidRootPart'.CFrame.p
  477. local dist = (to-from).magnitude
  478. Rod.Size = vec3(.2,.2,dist)
  479. Rod.CFrame = cf(to,from)*cf(0,0,-dist/2)
  480. end
  481. --TextL.TextColor3 = clr
  482. until TextL.TextTransparency>=1
  483. Pert:Destroy()
  484. if Rod ~= nil then
  485. Rod:Destroy()
  486. end
  487. end)
  488. end
  489.  
  490. --// Example // showDmg(workspace.SavageMunkey, workspace.Base, 'Damage Dealt'..math.random(0,100), {Rod=false,RodTrans=0,Crit=false})
  491.  
  492. function CheckIfLanded()
  493. local Ray = Ray.new(root.Position,vec3(0,-1,0)*3.5)
  494. local Ignore = {Char}
  495. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  496. if Hit == nil then return false,nil end
  497. return true, Hit
  498. end;
  499.  
  500. function FindNearestTorso(Position, Distance, SinglePlayer)
  501. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  502. local List = {}
  503. for i,v in pairs(workspace:GetChildren())do
  504. if v:IsA("Model")then
  505. if v:findFirstChild("Torso")then
  506. if v ~= Char then
  507. if(v.Torso.Position -Position).magnitude <= Distance then
  508. table.insert(List,v)
  509. end
  510. end
  511. end
  512. end
  513. end
  514. return List
  515. end
  516.  
  517. local function ExpellWithForce(Origin, Radius, Force, OnHit, Break, Ignore)
  518. Origin = Origin or Vector3.new()
  519. Origin = typeof(Origin) == 'Vector3' and Origin or Origin.p
  520. Ignore = Ignore or {};
  521. Ignore = typeof(Ignore) == 'table' and Ignore or {};
  522. Radius = Radius or 5
  523. Force = Force or 50
  524. if Break == nil then
  525. Break = true
  526. end
  527. OnHit = OnHit or function(Part, Distance)
  528. --// oof
  529. end
  530.  
  531. local SearchRegion = Region3.new(Origin - Vector3.new(Radius, Radius, Radius),Origin + Vector3.new(Radius, Radius, Radius))
  532. local Parts = workspace:FindPartsInRegion3WithIgnoreList(SearchRegion, Ignore, 100)
  533.  
  534. for Index, Part in next, Parts do
  535. spawn(function()
  536. OnHit(Part, (Origin - Part.Position).magnitude)
  537. end)
  538. if not Part.Anchored then
  539. if Break then
  540. Part:BreakJoints()
  541. end
  542. local Direction = CFrame.new(Origin, Part.Position).lookVector * Force
  543. local Propell = Instance.new('BodyVelocity')
  544. Propell.Velocity = Direction
  545. Propell.Parent = Part
  546. spawn(function()
  547. game:GetService('RunService').Stepped:wait()
  548. Propell:Destroy()
  549. end)
  550. end
  551. end
  552. end
  553.  
  554. function NewFXBox(name,prnt)
  555. if prnt == nil then
  556. prnt = Character
  557. end
  558. local FXBox = Instance.new('Model', prnt)
  559. FXBox.Name = 'FXBox'
  560. if name then
  561. FXBox.Name = name
  562. end
  563. local Count = 0
  564. local Check
  565. Check = FXBox.ChildAdded:connect(function(Object)
  566. if Object:IsA'BasePart' then
  567. FXBox.PrimaryPart = Object
  568. Check:disconnect()
  569. end
  570. end)
  571. return FXBox
  572. end
  573.  
  574. function ReSurface(Part, Integer)
  575. if Part ~= nil and Part:IsA'BasePart' then
  576. Part.TopSurface = Integer
  577. Part.BottomSurface = Integer
  578. Part.LeftSurface = Integer
  579. Part.RightSurface = Integer
  580. Part.FrontSurface = Integer
  581. Part.BackSurface = Integer
  582. end
  583. end
  584.  
  585. function ni(name,prnt)
  586. return Instance.new(tostring(name),prnt)
  587. end
  588.  
  589. local FX = NewFXBox('FXBox', Character)
  590. function NewObject(Type, prnt, others)
  591. if not prnt then prnt = workspace end
  592. local New = ni(Type)
  593. if New:IsA'BasePart' then
  594. ReSurface(New,10)
  595. New.Anchored = true
  596. New.Size = vec3(1,1,1)
  597. New.CanCollide = false
  598. end
  599. for i,v in next, others do
  600. local suc,err = pcall(function()
  601. New[i] = v
  602. end)
  603. if not suc then
  604. print(err)
  605. end
  606. end
  607. New.Parent = prnt
  608. return New
  609. end
  610.  
  611. function NewPart(prnt)
  612. return NewObject('Part', prnt, {Anchored = true, Size = Vector3.new(1,1,1), CanCollide = false, CFrame = prnt:IsA'BasePart' and prnt.CFrame or CFrame.new(0,1,0)})
  613. end
  614.  
  615. function OnHumanoidFind(Detector, Offset, Function, Range, Multi) --// R15 Support
  616. spawn(function()
  617. if not Multi then Multi = false end
  618. local PlayerModels={};
  619. local SearchAndStuff
  620. local First = true
  621. SearchAndStuff=function(Parent)
  622. for Index, Obj in next, Parent:children() do
  623. if Obj:IsA'Model' and Obj:FindFirstChild'Humanoid' then
  624. if Obj:FindFirstChild'HumanoidRootPart' and (Obj.HumanoidRootPart.CFrame.p-(Detector.CFrame*Offset).p).magnitude <= Range and Obj~=char then
  625. --print'derp'
  626. table.insert(PlayerModels, Obj)
  627. if First then
  628. if not Multi then
  629. First = false
  630. end
  631. pcall(function()
  632. Obj.Health.Disabled = true
  633. end)
  634. spawn(function()
  635. Function(Obj:WaitForChild'HumanoidRootPart', Obj:WaitForChild'Humanoid', Obj)
  636. end)
  637. end
  638. end
  639. end
  640. SearchAndStuff(Obj)
  641. end
  642. end
  643. SearchAndStuff(workspace)
  644. return PlayerModels
  645. end)
  646. end
  647.  
  648. function debri(item,time)
  649. return game:service'Debris':AddItem(item,time)
  650. end
  651.  
  652. local effects={MagicCircles={};};
  653. local trans={};
  654. local grows={}
  655.  
  656. function effects:MagicCircle(waitt, id, Offset,clr,sz)
  657. sz=sz or 4.5
  658. local mcPart=NewObject('Part', FX,{Transparency=1,Size=vec3(sz,sz,.2)})
  659. debri(mcPart, 40)
  660. clr=clr or 'Pearl'
  661. local mesh=NewObject('BlockMesh',mcPart,{Scale=vec3(1,1,0)})
  662. local backDecal=NewObject('Decal',mcPart,{Color3=bc(clr).Color,Face='Back',Texture=rbx..id})
  663. local frontDecal=NewObject('Decal',mcPart,{Color3=bc(clr).Color,Face='Front',Texture=rbx..id})
  664. local r=rand()
  665. local dir=5
  666. if r>.5 then dir=-5 end
  667. spawn(function()
  668. repeat lwait() until frontDecal.Parent==nil mcPart:Destroy()
  669. end)
  670. table.insert(effects.MagicCircles, {mcPart,backDecal,frontDecal,dir})
  671. mcPart.CFrame = Offset
  672. delay(waitt,function() trans[backDecal]={.05,1} trans[frontDecal]={.05,1}end)
  673. return mcPart,frontDecal,backDecal
  674. end
  675.  
  676. function effects:particle(waitt,mx,num, shape,Offset, clrz,cancollide)
  677. local sz={};
  678. if not clrz or #clrz < 1 then
  679. clrz={'Alder','Pearl'}
  680. end
  681. for i = .4,mx,.025 do table.insert(sz,i) end
  682. local tings={};
  683. for i = 1,num do
  684. local val = sz[rand(1,#sz)]
  685. local part=NewObject('Part', FX,{Material='Neon', CanCollide=cancollide,Shape=shape, Transparency=.6,Size=vec3(val,val,val),Color = bc(clrz[rand(1,#clrz)]).Color, CFrame = Offset*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))})
  686. tings[i]=part
  687. delay(waitt,function() trans[part]={.05,1} end)
  688. end
  689. return tings
  690. end
  691.  
  692. function effects:Debris(cancollide, radius, mx, num, pos, waitt,velocitymax)
  693. local Ray = Ray.new(pos+vec3(0,1,0),vec3(0,-1,0)*5)
  694. local Ignore = {FX,Character}
  695. local Hit, Pos, SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  696. local tings={};
  697. if Hit then
  698. local sz={};
  699. for i = .2,mx,.025 do table.insert(sz,i) end
  700. for i = 1,num do
  701. local val = sz[rand(1,#sz)]
  702. local y = 45
  703. if not cancollide then y = 65 end
  704. local top,bottom=velocitymax[1],velocitymax[2]
  705. local x,z=rand(bottom,top),rand(bottom,top)
  706. local part=NewObject('Part', FX,{Anchored=false, Velocity = vec3(rand(-x,x),y,rand(-z,z)), Material=Hit.Material, CanCollide=cancollide, Transparency=Hit.Transparency,Size=vec3(val,val,val),Color = Hit.Color, CFrame = cf(pos)*cf(rand(-radius,radius),0,rand(-radius,radius))*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))})
  707. tings[i]=part
  708. if cancollide then
  709. delay(waitt,function() trans[part]={.05,1} end)
  710. end
  711. end
  712. return tings
  713. else
  714. --// Derp
  715. end
  716. end
  717.  
  718. function effects:Crown(waitt, origin, sz, height,clr, others,ut)
  719. local props={CanCollide=false,Anchored=true,Size=vec3(sz,height,sz),Color = bc(clr).Color, CFrame = origin*ang(0,rad(rand(-360,360)),0)}
  720. for i,v in next, others do
  721. props[i]=v
  722. end
  723. local cr=MeshEffects.Crown:Clone()
  724. for i,v in next, props do
  725. if tostring(i)~='Parent' then
  726. pcall(function() cr[i]=v end)
  727. end
  728. end
  729. cr.Parent=FX
  730. delay(waitt,function() trans[cr]={ut,1} end)
  731. return cr
  732. end
  733.  
  734. function effects:Ring(waitt, origin, sz, height,clr, slim, others,ut)
  735. local props={CanCollide=false,Anchored=true,Size=vec3(sz,height,sz),Color = bc(clr).Color, CFrame = origin*ang(0,rad(rand(-360,360)),0)}
  736. slim = slim or false
  737. others = others or {};
  738. for i,v in next, others do
  739. props[i]=v
  740. end
  741. local cr=MeshEffects[slim and 'Ring' or 'Donut']:Clone()
  742. for i,v in next, props do
  743. if tostring(i)~='Parent' then
  744. pcall(function() cr[i]=v end)
  745. end
  746. end
  747. cr.Parent=FX
  748. delay(waitt,function() trans[cr]={ut,1} end)
  749. return cr
  750. end
  751.  
  752. function effects:BlastRad(cancollide, radius, num, mx, pos, waitt)
  753. local Ray = Ray.new(pos+vec3(0,1,0),vec3(0,-1,0)*5)
  754. local Ignore = {FX,Character}
  755. local Hit, Pos, SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  756. local tings={};
  757. local org=mx/4
  758. mx=mx
  759. if Hit then
  760. local sz={};
  761. for i = .2,num,.025 do table.insert(sz,i) end
  762. for i = 1,360,mx do
  763. local val = sz[rand(1,#sz)]
  764. local function rr()
  765. local vlz={}
  766. for i = .45,1,.025 do table.insert(vlz,i) end
  767. return vlz[rand(1,#vlz)]
  768. end
  769. local part=NewObject('Part', FX,{Material=Hit.Material, CanCollide=cancollide, Transparency=Hit.Transparency,Size=vec3(val/rr(),val/rr(),val/rr()),Color = Hit.Color, CFrame = cf(pos) * ang(0,rad(i),0)*cf(radius,(Hit.CFrame.Y+(Hit.Size.Y/2))-val,0)*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))})
  770. tings[i]=part
  771. if cancollide then
  772. delay(waitt,function() trans[part]={.05,1} end)
  773. end
  774. end
  775. return tings
  776. else
  777. --// Derp
  778. end
  779. end
  780.  
  781. --[[ examples
  782. effects:BlastRad(true, 15, 2, 18, pos, .5)
  783.  
  784. effects:Debris(true, 2.5, 2, rand(10,20), pos, .5,{50,25})
  785.  
  786. effects:MagicCircle(.15,124339738, cf(0,-1.5,0))
  787.  
  788. effects:Particle(.5,1.2,rand(2,5),'Ball',cf(0,-1.5,0),{'Pearl','Pearl'})
  789. --]]
  790.  
  791. function SetSwordTransparency(Transparency, Speed)
  792. Speed = Speed or .5
  793. for Index, Obj in next, Parts do
  794. if Obj:IsDescendantOf(Melee) and Obj ~= SHA and Obj ~= trailTop and Obj ~= trailBottom then
  795. Tween(Obj, Speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, {Transparency = Transparency})
  796. end
  797. end
  798. lwait(Speed)
  799. end
  800.  
  801. function FadeSword(Type)
  802. if Type == 'Out' then
  803. snd(588738712,root,true)
  804. SetSwordTransparency(1, .5)
  805. elseif Type == 'In' then
  806. snd(588733880,root,true)
  807. SetSwordTransparency(0, .5)
  808. end
  809. if Type == 'In' or Type == 'Out' then
  810. --// asd
  811. else
  812. warn('Invalid Tween Type')
  813. end
  814. end
  815.  
  816. local function CalculateArc(Smoothness, From, To)
  817. local PeakFactor = 5
  818. local Peak, To = (From - To).magnitude / PeakFactor, To - Vector3.new(0, From.Y, 0)
  819. local Algorithm = math.abs(2 * (Peak * 2 - From.Y + To.Y))
  820. local Fraction, Last, Return = (1 / (Peak * PeakFactor)) / Smoothness, From, {};
  821. for Integer = 0, 1, Fraction do
  822. local New = CFrame.new(From:lerp(To, Integer) + Vector3.new(0, -Algorithm * Integer ^ 2 + Algorithm * Integer + From.Y, 0))
  823. Return[#Return + 1] = New.p
  824. end
  825. return Return
  826. end
  827.  
  828. local function DisplayArc(Arc)
  829. local Storage, Last = Instance.new('Folder', script), Arc[1]
  830. for Index, Point in next, Arc do
  831. if Index > 1 then
  832. local Part = Instance.new('Part')
  833. Part.Anchored = true
  834. Part.Material = 'Plastic'
  835. Part.BrickColor = BrickColor.new('Buttermilk')
  836. Part.TopSurface, Part.BottomSurface = 0, 0
  837. Part.CanCollide = false
  838. local Distance = (Last - Point).magnitude
  839. Part.Size = Vector3.new(.15, .15, Distance)
  840. Part.CFrame = CFrame.new(Point, Last) * CFrame.new(0, 0, -Distance / 2)
  841. Part.Parent = Storage
  842. end
  843. Last = Point
  844. end
  845. return Storage
  846. end
  847.  
  848. local function TweenC0(Obj, C0, Style, Direction, Time)
  849. local S = type(Style) == 'string' and Enum.EasingStyle[Style] or Style
  850. local D = type(Direction) == 'string' and Enum.EasingDirection[Direction] or Direction
  851. return Tween(Obj, Time, S, D, {C0 = C0})
  852. end
  853.  
  854. local function TweenJoints(Array)
  855. local Style, Direction, Time = Array.Style, Array.Direction, Array.Time
  856. TweenC0(torw, CFrame.new(0,0,0) * Array.Torso_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  857. TweenC0(hedw, CFrame.new(0,0,0) * Array.Head_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  858. TweenC0(law, CFrame.new(0,0,0) * Array.Left_Arm_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  859. TweenC0(raw, CFrame.new(0,0,0) * Array.Right_Arm_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  860. TweenC0(rlw, CFrame.new(0,0,0) * Array.Right_Leg_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  861. TweenC0(llw, CFrame.new(0,0,0) * Array.Left_Leg_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  862. lwait(Time)
  863. end
  864.  
  865. BindKey('Shatter', 'g', function()
  866. local actual,floor = CheckIfLanded(5)
  867. if floor ~= nil then
  868. dkd,ds = true,true
  869. walkspd=0
  870. spawn(function()
  871. FadeSword'Out'
  872. end)
  873. spawn(function()
  874. TweenJoints{
  875. Style = 'Quad',
  876. Direction = 'InOut',
  877. Time = 2,
  878. Right_Arm_ = CFrame.new(0.465010166, -0.439316332, -0.871765137, 0.747874916, -0.654143095, 0.1130483, 0.493739158, 0.434284091, -0.753404915, 0.443739593, 0.619269013, 0.647766173),
  879. Left_Arm_ = CFrame.new(-0.170354724, -0.342900693, -0.237001896, 0.933956206, 0.284371793, 0.216468185, -0.290408731, 0.95689404, -0.00408667326, -0.208299309, -0.0590473711, 0.976281226),
  880. Right_Leg_ = CFrame.new(5.82933426e-05, -0.162627101, -0.864352643, 0.99999994, 5.28991222e-07, 8.41915607e-07, -7.22706318e-07, 0.963203788, 0.268772095, -6.85453415e-07, -0.268772036, 0.963203907),
  881. Left_Leg_ = CFrame.new(0.0951830149, 0.54995501, -0.323918521, 0.984639764, 0.100627825, 0.142683357, -0.0181532614, 0.871783793, -0.489554465, -0.173651829, 0.479444683, 0.860219717),
  882. Head_ = CFrame.new(-0.0422370695, 0.00290894508, -0.0818053484, 0.984639764, 0.0281961933, 0.172306329, -0.0181532614, 0.99805814, -0.0595857799, -0.173651829, 0.0555427074, 0.983239532),
  883. Torso_ = CFrame.new(0.0194549561, -0.49135685, -0.340732574, 0.984639764, -0.0181533415, -0.173651904, 0.131810531, 0.729528904, 0.671128631, 0.114500739, -0.683708429, 0.720715284),
  884. }
  885. end)
  886. local s2=snd(588697034,root)
  887. s2.Pitch=1
  888. s2:Play()
  889. for i = 1,3 do
  890. lwait(.4)
  891. local s = snd(588738949, root)
  892. s.Pitch=1+(i/3)
  893. s:Play()
  894. effects:MagicCircle(2, 124339738, Right_Arm.CFrame*cf(0,1.25+i,0)*ang(rad(90),0,0),'Alder',.4+(i*2))
  895. end
  896. lwait(1)
  897. local pe=effects:particle(.5,1.2,rand(2,5),'Cylinder',Right_Arm.CFrame*cf(0,1.25,0),{'Alder','Pearl'})
  898. for i,v in next, pe do
  899. v.Material='Neon'
  900. v.Transparency=.5
  901. end
  902. TweenJoints{
  903. Style = 'Bounce',
  904. Direction = 'Out',
  905. Time = .1,
  906. Right_Arm_ = CFrame.new(-0.0323668718, -0.33607614, -1.25630379, 0.91932112, -0.32731083, 0.218440875, 0.34712559, 0.413077384, -0.841944814, 0.185344651, 0.849843979, 0.493368685),
  907. Left_Arm_ = CFrame.new(-0.209303617, -0.521940768, 0.209407374, 0.936596692, 0.341231942, 0.0796716437, -0.350254416, 0.904899955, 0.24182263, 0.0104227364, -0.254395574, 0.967044115),
  908. Right_Leg_ = CFrame.new(-0.144759536, -0.00181019306, -0.561343014, 0.955083072, -0.217188269, -0.201608062, 0.221891105, 0.975071311, 0.000745773315, 0.196420282, -0.0454473495, 0.979466081),
  909. Left_Leg_ = CFrame.new(-0.314982504, 0.547448993, 0.130197883, 0.968778491, -0.198621765, 0.148383692, 0.246814638, 0.715970933, -0.653045356, 0.0234706104, 0.669279575, 0.742639899),
  910. Head_ = CFrame.new(0.181634739, 0.0164057016, -0.124970227, 0.991457701, -0.121056765, 0.0485501736, 0.124629587, 0.989057779, -0.0789446831, -0.0384620987, 0.0843212008, 0.995696187),
  911. Torso_ = CFrame.new(0.35552597, -0.773739338, -0.511285782, 0.919321179, 0.34712553, 0.185344562, -0.344054341, 0.480445355, 0.806721151, 0.190985352, -0.80540365, 0.561113119),
  912. }
  913. Tween(s2, .1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, {Volume=0,Pitch=0})
  914. lwait(.08)
  915. OnHumanoidFind(root, cf(0,0,0), function(proot,phum,body)
  916. local dmg = math.random(20,35)
  917. phum.Health = phum.Health - dmg
  918. showDmg(body, Character, dmg, {Rod=true,RodTrans=0,Crit=math.random()>.85})
  919. phum.PlatformStand=proot:GetMass()<4 and true or false
  920. delay(1,function()
  921. phum.PlatformStand=false
  922. end)
  923. end, 15, true)
  924. ExpellWithForce(Right_Arm.CFrame*cf(0,-.5,0), 15, math.random(30,80), function(Part, Distance)
  925. end, false, {workspace:FindFirstChild'Base', Character})
  926. local cr=effects:Crown(.5, cf((Right_Arm.CFrame*cf(0,-.5,0)).p), 10, 1, tostring(floor.BrickColor),{Material=floor.Material},.2)
  927. local cr2=effects:Ring(0, cf((Right_Arm.CFrame*cf(0,-.5,0)).p), 10, 2, tostring(floor.BrickColor),false,{Material=floor.Material},.15)
  928. table.insert(grows,{{cr},vec3(4,0,4)*4,ang(0,rad(10),0)})
  929. table.insert(grows,{{cr2},vec3(2,0,2)*4,ang(0,0,0)})
  930. s2:Destroy()
  931. snd(610359590,root,true)
  932. snd(610359515,root,true)
  933. snd(471882019,root,true)
  934. snd(284228088,root,true)
  935. effects:Debris(true, 2.5, 2, rand(10,20), (Right_Arm.CFrame*CFrame.new(0,-1,0)).p, .5,{50,25})
  936. effects:BlastRad(true, 10, 4, 6, (Right_Arm.CFrame*cf(0,-1,0)).p, .5)
  937. lwait(.2)
  938. dkd,ds = false,false
  939. FadeSword'In'
  940. end
  941. end)
  942.  
  943. local canmine=true
  944. BindKey('Mine', 'x', function(an,key)
  945. if canmine then
  946. canmine=false
  947. ds,dkd = true,true
  948. walkspd=0
  949. TweenJoints{
  950. Style = 'Quint',
  951. Direction = 'In',
  952. Time = .1,
  953. Right_Arm_ = CFrame.new(0.206053138, -0.214844942, 4.48524952e-06, 0.950437307, -0.310916245, 3.57627869e-07, 0.310916275, 0.950437307, 4.52626892e-07, -4.47034836e-07, -3.27825546e-07, 0.99999994),
  954. Left_Arm_ = CFrame.new(-0.450706005, 0.440005541, -1.68257201, 0.674415231, 0.738352239, -3.22744e-08, 0, -4.37113883e-08, -1, -0.738352239, 0.674415231, -2.94796259e-08),
  955. Right_Leg_ = CFrame.new(4.7981739e-06, 1.08480453e-05, 3.81469727e-06, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994),
  956. Left_Leg_ = CFrame.new(-0.280058563, -0.0610874891, -0.665026188, 0.889047265, -0.112292051, 0.443835318, 4.33083471e-07, 0.969455719, 0.245275185, -0.457815409, -0.218061626, 0.861891985),
  957. Head_ = CFrame.new(0, -6.10351563e-05, 0, 0.560465097, 0, 0.828179061, 0, 1, 0, -0.828179061, 0, 0.560465097),
  958. Torso_ = CFrame.new(-1.1920929e-06, 0, 2.86102295e-06, 0.674415231, 0, -0.738352239, 0, 1, 0, 0.738352239, 0, 0.674415231),
  959. }
  960.  
  961. for i=0,1,.1 do
  962. FacePos(old)
  963. lrs:wait()
  964. end
  965.  
  966. lwait(.2)
  967. for i=0,1,.1 do
  968. FacePos(old)
  969. end
  970.  
  971. local bl=NewPart(script)
  972. bl.Color=c3(0,0,0)
  973. bl.Size=Vector3.new(2,2,2)
  974. bl.CFrame=larm.CFrame*cf(0,-1.5,0)
  975. bl.Shape='Ball'
  976. bl.Material='Neon'
  977. bl.Transparency=.001
  978. local active=true
  979. spawn(function()
  980. game.Debris:AddItem(bl,25)
  981. delay(24,function()
  982. active=false
  983. local c=bl.CFrame
  984. bl.CanCollide=false
  985. Tween(bl,1,Enum.EasingStyle.Back,Enum.EasingDirection.In,{Size=Vector3.new(.05,.05,.05),CFrame=c,Transparency=1})
  986. end)
  987. local tic=0
  988. local ontouch
  989. ontouch=bl.Touched:connect(function(Hit)
  990. if not Hit:IsDescendantOf(Character) then
  991. bl.CanCollide=true
  992. OnHumanoidFind(bl, cf(0,0,0), function(proot,phum,body)
  993. local dmg = math.random(15,30)
  994. phum.Health = phum.Health - dmg
  995. hum.Health=hum.Health+15
  996. showDmg(body, Character, 'LIFE STEAL '..dmg, {Rod=true,RodTrans=0,Crit=false})
  997. end, 8, true)
  998. snd(144699494,root,true)
  999. snd(260433487,root,true)
  1000. local neww=bl:Clone()
  1001. neww.Color=c3(0,0,0)
  1002. local c=bl.CFrame
  1003. bl:Destroy()
  1004. neww.Parent=script
  1005. effects:particle(.5,7,rand(2,5),'Cylinder',c,{'Pearl','Alder'})
  1006. for i = 0,8,.45 do
  1007. neww.Transparency=neww.Transparency+.056274620146314
  1008. neww.Size=neww.Size:lerp(Vector3.new(2+i,2+i,2+i),.2)
  1009. neww.CFrame=c
  1010. lrs:wait()
  1011. end
  1012. neww:Destroy()
  1013. ontouch:disconnect()
  1014. neww.CFrame=c
  1015. end
  1016. end)
  1017. while lwait(.2) and bl and active do
  1018. if bl.Parent~=nil then
  1019. tic=tic+.1
  1020. if tic > .65 then
  1021. snd(171137312,bl,true)
  1022. OnHumanoidFind(bl, cf(0,0,0), function(proot,phum,body)
  1023. local took=math.random(5,20)
  1024. phum.Health = phum.Health - took
  1025. --hum.Health=hum.Health+took
  1026. showDmg(body, Character, took, {Rod=true,RodTrans=0,Crit=false})
  1027. end, 6, true)
  1028. local cr=effects:Crown(.1, cf(bl.Position)*cf(0,-3,0), 1, .25, 'Pearl',{Material='Neon'},.05)
  1029. local cr2=effects:Ring(.1, cf(bl.Position)*cf(0,-3.5,0), 2, .1, 'Pearl',true,{Material='Neon'},.05)
  1030. table.insert(grows,{{cr,cr2},vec3(.05,.005,.05)*3,ang(0,rad(1),0)})
  1031. tic=0
  1032. local neww=bl:Clone()
  1033. neww.Color=c3(1,1,1)
  1034. neww.Parent=script
  1035. local c=bl.CFrame
  1036. spawn(function()
  1037. for i = 0,3,.1 do
  1038. neww.Transparency=neww.Transparency+.0333
  1039. neww.Size=neww.Size:lerp(Vector3.new(2+i,2+i,2+i),.2)
  1040. neww.CFrame=c
  1041. lrs:wait()
  1042. end
  1043. neww:Destroy()
  1044. end)
  1045. end
  1046. end
  1047. end
  1048. ontouch:disconnect()
  1049. end)
  1050.  
  1051. snd(171137312,root,true)
  1052. snd(187747824,root,true)
  1053.  
  1054. spawn(function()
  1055. TweenJoints{
  1056. Style = 'Back',
  1057. Direction = 'Out',
  1058. Time = .1,
  1059. Right_Arm_ = CFrame.new(0.206047893, -0.21484524, 5.28991222e-06, 0.950437486, -0.310916156, 9.23871994e-07, 0.310916156, 0.950437367, 3.18055783e-07, -9.83476639e-07, -1.49011612e-08, 1.00000024),
  1060. Left_Arm_ = CFrame.new(0.333840013, 0.20000568, -0.701913893, 0.985808611, 0.140995234, 0.0911340564, -6.04101302e-08, 0.542838275, -0.839838743, -0.167884231, 0.827917576, 0.535135746),
  1061. Right_Leg_ = CFrame.new(0.406761706, 0.198160172, -0.827177048, 0.861753821, 0.0901806355, -0.499247611, 0, 0.984074771, 0.177756459, 0.507326901, -0.153182313, 0.84803021),
  1062. Left_Leg_ = CFrame.new(0.428323984, -0.535795689, -1.22677946, 0.797612667, 0.302806526, 0.521652818, -0.546524048, 0.728732705, 0.41263321, -0.255197555, -0.614223242, 0.74672997),
  1063. Head_ = CFrame.new(0.106018938, 0.00909304619, 0.160875916, 0.97453934, -0.0714026541, -0.212544471, 0.0874781013, 0.993896961, 0.0672045946, 0.206448734, -0.0840865001, 0.97483778),
  1064. Torso_ = CFrame.new(-0.0166940689, -0.179999828, -0.0304899216, 0.861753821, 0, 0.507326901, 0, 1, 0, -0.507326901, 0, 0.861753821),
  1065. }
  1066. end)
  1067. local bv=Instance.new('BodyVelocity',root)
  1068. bv.MaxForce=vec3(9e9,0,9e9)
  1069. bv.Velocity=Head.CFrame.lookVector*-13
  1070. game.Debris:AddItem(bv,.2)
  1071. for i = 0,1,.2 do
  1072. local ptc1 = effects:particle(.1,.5,3,'Block',Left_Leg.CFrame*cf(0,-1,0),{'Really black','Really black', 'Pearl'})
  1073. local ptc2 = effects:particle(.1,.5,3,'Block',Right_Leg.CFrame*cf(0,-1,0),{'Really black','Really black', 'Pearl'})
  1074. local ss=1.6
  1075. table.insert(grows,{{ptc1},vec3(.2,0,.2),ang(rad(10),rad(10),rad(10))})
  1076. table.insert(grows,{{ptc2},vec3(.2,.2,.2),ang(rad(10),rad(10),rad(10))})
  1077. lrs:wait()
  1078. end
  1079. lwait()
  1080. ds,dkd = false,false
  1081. delay(0,function()
  1082. canmine=true
  1083. end)
  1084. end
  1085. end)
  1086.  
  1087. local cangrab=true
  1088. local grabbed=false
  1089. BindKey('Ward (wip)', 'e', function(_,key)
  1090. if not cangrab then return end
  1091. ds,dkd = true,true
  1092. walkspd = 7
  1093. SetSwordTransparency(1,.1)
  1094. local done=false
  1095. local wld=nil
  1096. spawn(function()
  1097. repeat lrs:wait()
  1098. local strt = Right_Arm.CFrame
  1099. local rayray = Ray.new(strt.p, (strt.p - (strt * CFrame.new(0, 1, 0)).p).unit * 1)
  1100. local hit, pp = workspace:FindPartOnRayWithIgnoreList(rayray, {Character})
  1101. if hit then
  1102. local first=true
  1103. OnHumanoidFind(Right_Arm, cf(0,-1,0), function(proot,phum,body)
  1104. if hit:IsDescendantOf(body) and first then
  1105. first=false
  1106. cangrab=false
  1107. local olds={};
  1108. spawn(function()
  1109. local r
  1110. r=function(p)
  1111. for i,v in next, p:children() do
  1112. if v:IsA'BasePart' then
  1113. olds[v]=v.CustomPhysicalProperties
  1114. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1115. end
  1116. r(v)
  1117. end
  1118. end
  1119. r(body)
  1120. end)
  1121. grabbed=true
  1122. local dist=((Right_Arm.CFrame*cf(0,-1,0)).p-(Right_Arm.CFrame*Right_Arm.CFrame:toObjectSpace(hit.CFrame)).p).magnitude
  1123. wld=Weld(Right_Arm,proot,cf(0,-1.25,0)*ang(-rad(90),rad(180),0))
  1124. local ev
  1125. ev=mouse.KeyDown:connect(function(k)
  1126. if k==key then
  1127. game.Debris:AddItem(wld,0)
  1128. ev:disconnect()
  1129. end
  1130. end)
  1131. spawn(function()
  1132. while wld.Parent~= nil and lrs:wait() do
  1133. phum.PlatformStand=true
  1134. end
  1135. grabbed=false
  1136. cangrab=true
  1137. for i,v in next, olds do
  1138. pcall(function()
  1139. i.CustomPhysicalProperties=v
  1140. end)
  1141. end
  1142. end)
  1143. end
  1144. end, 10, true)
  1145. end
  1146. until done or grabbed
  1147. end)
  1148. TweenJoints{
  1149. Style = 'Linear',
  1150. Direction = 'Out',
  1151. Time = .2,
  1152. Right_Arm_ = CFrame.new(0.829519689, 0.381413698, -1.57987428, 0.374878913, -0.927073777, 4.05236804e-08, -0.00280904677, -0.00113593217, -0.99999547, 0.927069545, 0.374877214, -0.00303003029),
  1153. Left_Arm_ = CFrame.new(-0.519713402, -0.873377562, -0.158320561, 0.739482224, 0.668240309, 0.0813785493, -0.665690601, 0.74387598, -0.0592175536, -0.100107282, -0.0103825331, 0.994922578),
  1154. Right_Leg_ = CFrame.new(3.68356705e-05, -0.0779465437, -0.447928578, 1.00000942, -2.08616257e-07, 2.38418579e-07, -1.59139745e-07, 0.975493431, 0.220059082, -7.74860382e-07, -0.22006014, 0.97549367),
  1155. Left_Leg_ = CFrame.new(0.246763051, -0.165307999, 5.43892384e-06, 0.97661984, 0.21497333, 1.34110451e-06, -0.21497333, 0.976619899, -5.21395123e-07, -1.43051147e-06, 2.16066837e-07, 1),
  1156. Head_ = CFrame.new(-0.175744906, 0.0174450874, 0.14690578, 0.648833036, 0.1171887, -0.75185281, -0.00230547017, 0.988368213, 0.152063951, 0.76092732, -0.0969307423, 0.641555905),
  1157. Torso_ = CFrame.new(-0.00162887573, -0.00289463997, 0.00579071045, 0.374878913, -0.0028091569, 0.927069545, 0.00280869659, 0.999994338, 0.00189410418, -0.92706871, 0.00189380953, 0.374884337),
  1158. }
  1159. lwait(.35)
  1160. done=true
  1161. SetSwordTransparency(0,.1)
  1162. ds,dkd = false,false
  1163. end)
  1164.  
  1165. BindKey('Reap (Buggy, wip)', 'z', function()
  1166. local actual,floor = CheckIfLanded(8)
  1167. if actual then
  1168. ds,dkd = true,true
  1169. local og=root.CFrame.Y
  1170. walkspd=0
  1171. spawn(function()
  1172. FadeSword'Out'
  1173. end)
  1174. TweenJoints{
  1175. Style = 'Quint',
  1176. Direction = 'InOut',
  1177. Time = 1.35,
  1178. Right_Arm_ = CFrame.new(-0.00888395309, 0.069206208, 0.582951427, 0.959281623, -0.28070721, 0.0313441679, 0.177029952, 0.683999717, 0.707676709, -0.220087633, -0.673311114, 0.705845058),
  1179. Left_Arm_ = CFrame.new(-0.0156921148, 0.0312868953, 0.542969108, 0.965948522, 0.248420492, 0.0723837912, -0.223978251, 0.662671089, 0.714635015, 0.129563898, -0.706504285, 0.695749283),
  1180. Right_Leg_ = CFrame.new(4.19616699e-05, 0.12218833, -0.250127792, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 0.999999881),
  1181. Left_Leg_ = CFrame.new(4.19616699e-05, 0.867762089, 0.3243047, 1, 0, 0, 0, 0.664999247, -0.746844232, 0, 0.746844351, 0.664999068),
  1182. Head_ = CFrame.new(-4.48642386e-05, 0.00383925438, 0.162792355, 0.999999106, 8.84015171e-05, -0.000454272929, -2.1958258e-06, 0.982483029, 0.186356097, 0.000462789234, -0.186356962, 0.982482672),
  1183. Torso_ = CFrame.new(0, -0.9390347, -0.399072647, 1, -6.54393304e-08, -8.86936391e-08, -1.42846829e-07, 0.599315822, 0.800512612, -9.31322575e-10, -0.800511897, 0.599315286),
  1184. }
  1185. ExpellWithForce(root.CFrame*cf(0,-3,0), 15, -30, function(Part, Distance)
  1186. end, false, {workspace:FindFirstChild'Base', Character})
  1187. local cr2=effects:Ring(0, cf((Left_Leg.CFrame*cf(0,-.5,0)).p), 10, 2, tostring(floor.BrickColor),false,{Material=floor.Material},.15)
  1188. table.insert(grows,{{cr2},vec3(2,0,2)*4,ang(0,0,0)})
  1189. snd(875882348,root,true)
  1190. snd(875881806,root,true)
  1191. local bv=Instance.new('BodyVelocity',root)
  1192. bv.MaxForce=vec3(0,9e9,0)
  1193. bv.Velocity=vec3(0,300,0)
  1194. game.Debris:AddItem(bv,.1)
  1195. local pos=nil
  1196. local can=false
  1197. local elligable=false
  1198. local done=false
  1199. local failed=false
  1200. local tem=0
  1201. spawn(function()
  1202. repeat lrs:wait()
  1203. if root.CFrame.Y > og+15 then
  1204. elligable=true
  1205. end
  1206. tem=tem+1
  1207. if tem>300 then
  1208. done=true
  1209. print'rip'
  1210. failed=true
  1211. end
  1212. until torso.Velocity.Y < 2 or tem>300
  1213. done=true
  1214. if root.CFrame.Y > og+30 then
  1215. can=true
  1216. pos=Instance.new('BodyPosition',root)
  1217. pos.MaxForce=vec3(9e9,9e9,9e9)
  1218. pos.Position=root.Position
  1219. end
  1220. end)
  1221. TweenJoints{
  1222. Style = 'Linear',
  1223. Direction = 'InOut',
  1224. Time = .05,
  1225. Right_Arm_ = CFrame.new(0.0626385212, -0.413276285, -0.00104331132, 0.959853292, -0.280451715, -0.00532685313, 0.280474722, 0.959851921, 0.00428472133, 0.00391133083, -0.00560673419, 0.999975801),
  1226. Left_Arm_ = CFrame.new(-0.0532609224, -0.383139998, 0.00133582728, 0.96501404, 0.26220125, 0.000218151894, -0.26220125, 0.96501267, 0.00172606739, 0.000242053007, -0.00172287039, 0.999997616),
  1227. Right_Leg_ = CFrame.new(5.21838665e-05, 0.485050678, -1.44800735, 1, 3.20676759e-06, 6.05589264e-07, -3.39197777e-06, 0.894448161, 0.447186589, 8.90321246e-07, -0.447186172, 0.894447386),
  1228. Left_Leg_ = CFrame.new(4.14550304e-05, 0.00266909599, 3.84132045e-06, 1, -2.5306602e-07, -1.70181491e-09, -2.5306602e-07, 1, 1.3737008e-08, -1.70181491e-09, 1.3737008e-08, 0.999998212),
  1229. Head_ = CFrame.new(0.000245878298, 0.0850384235, -0.496386617, 0.999999881, -0.000141030672, -0.000435515656, -1.17793134e-05, 0.943306148, -0.331931502, 0.000457633898, 0.33193022, 0.943304479),
  1230. Torso_ = CFrame.new(0, -0.00287747383, 0, 1, -2.5306602e-07, -1.70181491e-09, -2.5306602e-07, 1, 1.3737008e-08, -1.70181491e-09, 1.3737008e-08, 0.999998212),
  1231. }
  1232. repeat lrs:wait() until elligable or failed
  1233. if failed then
  1234. print'oof1'
  1235. FadeSword'In'
  1236. ds,dkd = false,false
  1237. game.Debris:AddItem(pos,.1)
  1238. return
  1239. end
  1240. snd(610359515,root,true,{Pitch=.75,Volume=3})
  1241. spawn(function()
  1242. TweenJoints{
  1243. Style = 'Quint',
  1244. Direction = 'InOut',
  1245. Time = 1,
  1246. Right_Arm_ = CFrame.new(0.116997018, 1.7438519, -0.714151025, 0.0453877375, 0.961275458, -0.271829873, -0.988650799, 0.0042135613, -0.150176093, -0.143214807, 0.275561094, 0.950555861),
  1247. Left_Arm_ = CFrame.new(-1.62301254, -1.07525158, 0.624707758, 0.00382485241, 0.935074449, 0.354432911, -0.999991775, 0.00296776183, 0.00296173617, 0.00171759352, -0.354441464, 0.935076714),
  1248. Right_Leg_ = CFrame.new(4.78625298e-05, 0.171154499, -0.586177945, 1.00000024, -8.94069672e-08, -9.53674316e-07, 3.04044676e-07, 0.965367615, 0.260893703, 8.20373486e-07, -0.260893673, 0.965367556),
  1249. Left_Leg_ = CFrame.new(0.432845116, -0.0829806328, -0.0325477421, 0.932780087, 0.35875231, 0.0347830057, -0.360428244, 0.928439498, 0.0900038332, -3.56324017e-06, -0.0964903384, 0.995342135),
  1250. Head_ = CFrame.new(4.07677144e-05, 8.82148743e-06, -0.0030586943, 0.358160794, -2.70083547e-06, -0.933659971, -0.00284077972, 0.99999541, -0.00109264627, 0.933655679, 0.00304366648, 0.358159155),
  1251. Torso_ = CFrame.new(0.0228919983, -0.487380266, -0.492824554, 0.390342087, 0.0503119566, 0.919294178, -0.920665801, 0.0243561249, 0.389591277, -0.00278935931, -0.998435676, 0.0558276772),
  1252. }
  1253. end)
  1254. local ball = NewPart(script)
  1255. ball.Parent=nil
  1256. ball.CFrame=Left_Arm.CFrame*cf(0,-1,0)
  1257. ball.Material='Neon'
  1258. ball.Size=vec3(1,1,1)
  1259. ball.BrickColor=bc'Alder'
  1260. local msh=Instance.new('SpecialMesh',ball)
  1261. msh.Scale=vec3(1,1,1)
  1262. msh.MeshType='Sphere'
  1263. ball.Parent=script
  1264. local t=0
  1265. snd(782199941,root,true)
  1266. repeat lrs:wait()
  1267. t=t+1
  1268. ball.CFrame=Left_Arm.CFrame*cf(0,-1,0)
  1269. Tween(msh,.15,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=msh.Scale+vec3(1,1,1)})
  1270. if t>4 then
  1271. local bl = NewPart(script)
  1272. bl.Parent=nil
  1273. bl.CFrame=Left_Arm.CFrame*cf(rand(-3,3),-1+rand(-3,3),rand(-3,3))
  1274. bl.Material='Neon'
  1275. bl.Size=vec3(2,2,2)
  1276. bl.BrickColor=math.random()>.5 and bc'Alder' or bc'Pearl'
  1277. local msh2=Instance.new('SpecialMesh',bl)
  1278. msh2.MeshType='Sphere'
  1279. msh2.Scale=vec3(1,1,1)
  1280. bl.Parent=script
  1281. Tween(bl,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{CFrame=Left_Arm.CFrame*cf(0,-1,0)})
  1282. Tween(msh2,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=vec3(0,0,0)})
  1283. delay(.5, function()
  1284. bl:Destroy()
  1285. end)
  1286. end
  1287. until done
  1288. if not can or failed then
  1289. print'oof2'
  1290. FadeSword'In'
  1291. ds,dkd = false,false
  1292. game.Debris:AddItem(pos,.1)
  1293. game.Debris:AddItem(ball,.1)
  1294. return
  1295. end
  1296. FadeSword'In'
  1297. local beam = NewPart(script)
  1298. beam.Parent=nil
  1299. beam.Size=vec3(5,1,5)
  1300. beam.CFrame=Left_Arm.CFrame*cf(0,-1,0)
  1301. beam.Material='Neon'
  1302. beam.BrickColor=bc'Alder'
  1303. local cm = Instance.new('CylinderMesh',beam)
  1304. beam.Parent=script
  1305. local strt = root.CFrame
  1306. local rayray = Ray.new(strt.p, (strt.p - (strt * CFrame.new(0, 1, 0)).p).unit * 9e9)
  1307. local hit, pp = workspace:FindPartOnRayWithIgnoreList(rayray, {Character})
  1308. pos.D=0
  1309. pos.P=3e6
  1310. snd(763717897,root,true)
  1311. snd(395184130,root,true)
  1312. snd(782353117,root,true)
  1313. local tii=1
  1314. Tween(cm,tii,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=vec3(3,2048,3)})
  1315. Tween(beam,tii,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{CFrame=Left_Arm.CFrame*cf(0,-1025,0)})
  1316. Tween(pos,tii,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Position=pp+vec3(0,10,0)})
  1317. lwait(tii)
  1318. local ptc1 = effects:particle(.1,40,7,'Block',cf(pp+vec3(0,5,0)),{'Alder', 'Pearl'})
  1319. local ptc2 = effects:particle(.1,40,15,'Cylinder',cf(pp+vec3(0,5,0)),{'Alder', 'Pearl'})
  1320. for i,v in next, ptc1 do v.Material='Neon' end
  1321. for i,v in next, ptc2 do v.Material='Neon' end
  1322. table.insert(grows,{{ptc1},vec3(6,6,6),ang(rad(13),rad(13),rad(13))})
  1323. table.insert(grows,{{ptc2},vec3(-4,4,-4),ang(rad(13),rad(13),rad(13))})
  1324. lrs:wait()
  1325. beam:Destroy()
  1326. ball:Destroy()
  1327. OnHumanoidFind(root, cf(0,0,0), function(proot,phum,body)
  1328. local dmg = math.random(35,50)
  1329. phum.Health = phum.Health - dmg
  1330. pcall(function()
  1331. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=math.random()>.9})
  1332. end)
  1333. phum.PlatformStand=proot:GetMass()<4 and true or false
  1334. delay(1,function()
  1335. phum.PlatformStand=false
  1336. end)
  1337. end, 30, true)
  1338. ExpellWithForce(cf(pp), 25, 150, function(Part, Distance)
  1339. end, false, {workspace:FindFirstChild'Base', Character})
  1340. local cr=effects:Crown(2, cf(pp+vec3(0,5,0)), 5, 4, tostring(floor.BrickColor),{Material=floor.Material},.2)
  1341. local cr2=effects:Ring(2, cf(pp+vec3(0,5,0)), 10, 5, tostring(floor.BrickColor),false,{Material=floor.Material},.15)
  1342. table.insert(grows,{{cr},vec3(4,.1,4)*4,ang(0,rad(3),0)})
  1343. table.insert(grows,{{cr2},vec3(2,0,2)*4,ang(0,0,0)})
  1344. snd(875881806,root,true)
  1345. snd(782353260,root,true)
  1346. snd(284228088,root,true,{Volume=2})
  1347. snd(782200047,root,true)
  1348. snd(782202168,root,true)
  1349. effects:Debris(false, 2.5, 7, rand(10,20), pp+vec3(0,2,0), .05,{50,25})
  1350. effects:BlastRad(false, 15, 3, 6, pp+vec3(0,2,0), .05)
  1351. ds,dkd = false,false
  1352. hum.PlatformStand=false
  1353. --[[TweenJoints{
  1354. Style = 'Quint',
  1355. Direction = 'Out',
  1356. Time = .5,
  1357. Right_Arm_ = cf(0,0,0),
  1358. Left_Arm_ = cf(0,0,0),
  1359. Right_Leg_ = cf(0,0,0),
  1360. Left_Leg_ = cf(0,0,0),
  1361. Head_ = cf(0,0,0),
  1362. Torso_ = cf(0,0,0),
  1363. }--]]
  1364. game.Debris:AddItem(pos,.5)
  1365. end
  1366. end)
  1367.  
  1368. local clsr=true
  1369. BindKey('Incinerate', 'q', function()
  1370. if not clsr then return end
  1371. clsr=false
  1372. ds,dkd = true,true
  1373. walkspd=0
  1374. FadeSword'Out'
  1375. spawn(function()
  1376. TweenJoints{
  1377. Style = 'Quint',
  1378. Direction = 'Out',
  1379. Time = .45,
  1380. Right_Arm_ = CFrame.new(-0.231867522, 0.277298152, 0.793980241, 0.274041951, 0.959314048, -0.0679790825, 0.0029127209, -0.071512714, -0.997437716, -0.961713552, 0.273141831, -0.0223916993),
  1381. Left_Arm_ = CFrame.new(-0.503219903, 0.412600666, -1.63814199, 0.586037755, 0.81028372, -3.54186263e-08, 0.00245406968, -0.00177494972, -0.99999547, -0.810280085, 0.586035132, -0.00302868057),
  1382. Right_Leg_ = CFrame.new(-0.1793679, -0.194476008, -1.1458993e-05, 0.983692706, -0.17985943, 2.98023224e-08, 0.179859221, 0.983697474, -7.10133463e-09, -2.98023224e-08, -1.49011612e-08, 1.0000062),
  1383. Left_Leg_ = CFrame.new(0.103276968, -0.0279527903, -0.087505281, 0.983025551, 0.0558601618, 0.174757063, -0.0549976081, 0.998438716, -0.00977835804, -0.17503038, 1.13807619e-06, 0.98456347),
  1384. Head_ = CFrame.new(4.57763672e-05, 3.93390656e-06, -0.00303999148, 0.586037755, 0, 0.81028372, 0.00245406968, 0.99999547, -0.00177490606, -0.810280085, 0.00302865496, 0.586035132),
  1385. Torso_ = CFrame.new(0.368801117, -0.00288367271, 0.00219345093, 0.586037755, 0.00245395955, -0.810280085, -0.00245499588, 0.999996245, 0.00125324936, 0.81027925, 0.00125479547, 0.586041093),
  1386. }
  1387. end)
  1388. for i=0,1,.05 do
  1389. FacePos'mouse'
  1390. lrs:wait()
  1391. end
  1392.  
  1393. local beam = NewPart(script)
  1394. beam.Parent=nil
  1395. beam.CFrame=Right_Arm.CFrame*cf(0,-1,0)
  1396. beam.Material='Neon'
  1397. beam.BrickColor=bc'Alder'
  1398. Instance.new('CylinderMesh',beam).Scale=Vector3.new(.05,1,.05)
  1399. beam.Parent=script
  1400. local canfrag=true
  1401. spawn(function()
  1402. while beam.Parent ~= nil and lwait(.25) do
  1403. canfrag=true
  1404. end
  1405. end)
  1406. snd(588734767,root,true,{Pitch=1.25})
  1407. snd(588736245,root,true)
  1408. local hums,bps = {},{};
  1409. local ignore={Character};
  1410. local replace
  1411. for i=0, 2048, 50 do
  1412. FacePos'mouse'
  1413. local StartPos = Left_Arm.CFrame*cf(0,-1,0)
  1414. local Ray = Ray.new(StartPos.p, (StartPos.p - (StartPos * CFrame.new(0, 1, 0)).p).unit * i)
  1415. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, ignore)
  1416. local dist = Hit and not Hit:IsDescendantOf(Character) and (Pos-StartPos.p).magnitude or i
  1417. beam.Size=vec3(.85,dist,1)
  1418. beam.CFrame=StartPos*cf(0,-(dist/2),0)
  1419. if Hit then
  1420. local ptc2 = effects:particle(.1,2,1,'Block',cf(Pos),{'Really black',tostring(Hit.BrickColor), 'Pearl'})
  1421. for i,v in next, ptc2 do v.Material='Neon' end
  1422. table.insert(grows,{{ptc2},vec3(1,0,1),ang(rad(10),rad(10),rad(10))})
  1423. if Hit and (Hit.Parent:FindFirstChildOfClass'Humanoid' or Hit.Parent.Parent:FindFirstChildOfClass'Humanoid') and #hums < 5 then
  1424. if Hit:GetMass()<=4 then
  1425. local bp = Instance.new('BodyPosition', Hit)
  1426. game.Debris:AddItem(bp,10)
  1427. local dist = (StartPos.p-Hit.Position).magnitude
  1428. bp.Position=(StartPos*cf(0,-dist,1)).p
  1429. spawn(function()
  1430. while lwait() and bp.Parent ~= nil do
  1431. local pos = ((replace or Left_Arm.CFrame)*cf(0,-1-dist,0)).p
  1432. bp.Position=pos
  1433. end
  1434. end)
  1435. table.insert(bps, bp)
  1436. end
  1437. local phum = Hit.Parent:FindFirstChildOfClass'Humanoid' or Hit.Parent.Parent:FindFirstChildOfClass'Humanoid' or Hit.Parent.Parent.Parent:FindFirstChildOfClass'Humanoid'
  1438. table.insert(ignore,phum.Parent)
  1439. hums[phum]=true
  1440. end
  1441. end
  1442. lrs:wait()
  1443. end
  1444. local pos = Left_Arm.CFrame*cf(0,-1,0)
  1445. ds,dkd = false,false
  1446. replace=Left_Arm.CFrame
  1447. FadeSword'In'
  1448.  
  1449. local b2 = beam:Clone()
  1450. b2.Mesh.Scale=vec3(2,1,2)
  1451. b2.Transparency=.8
  1452. local b3 = beam:Clone()
  1453. b3.Mesh.Scale=vec3(.3,1,.3)
  1454. b3.Transparency=1
  1455. b2.Parent,b3.Parent=script,script
  1456.  
  1457. Tween(b2.Mesh,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Scale=vec3(.45,1,.45)})
  1458. Tween(b2,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency=0})
  1459. Tween(b3.Mesh,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Scale=vec3(3,1,3)})
  1460. Tween(b3,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency=.85})
  1461. snd(763718573,root,true)
  1462. lwait(.7)
  1463. --b2:Destroy();b3:Destroy()
  1464. snd(763717897, root, true)
  1465. snd(782354294, root,true)
  1466.  
  1467. for i = 1, 6, 1 do
  1468. local effected={};
  1469. for i,v in next, hums do
  1470. local can=true
  1471. for a,b in next, effected do
  1472. if b==i then
  1473. can=false
  1474. end
  1475. end
  1476. if can then
  1477. for a,b in next, bps do
  1478. if b:IsDescendantOf(i.Parent) and (b.Position-i.Parent:WaitForChild'Head'.Position).magnitude < 6 then
  1479. table.insert(effected,i)
  1480. local dmgg = rand(2, 4)*1
  1481. i:TakeDamage(dmgg)
  1482. showDmg(i.Parent, Character, dmgg, {Rod=false,RodTrans=0,Crit=rand()>.5})
  1483. spawn(function()
  1484. snd(588694531,i.Parent:WaitForChild'Head',true)
  1485. end)
  1486. end
  1487. end
  1488. end
  1489. end
  1490. local b4 = beam:Clone()
  1491. b4.Mesh.Scale=vec3(2,1,2)
  1492. b4.Transparency=.2
  1493. b4.Parent=script
  1494.  
  1495. local cone = MeshEffects.Cone:Clone()
  1496. cone.CFrame = pos*cf(0,1.25,0)
  1497. cone.Anchored=true
  1498. cone.BrickColor=bc'Pearl'
  1499. cone.CanCollide=false
  1500. cone.Material='Neon'
  1501. cone.Transparency=.2
  1502. cone.Parent=script
  1503. Tween(cone,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency = 1, Size=vec3(15,4,15)/2.5})
  1504.  
  1505. local cone2 = MeshEffects.Cone:Clone()
  1506. cone2.CFrame = pos*cf(0,1.5,0)
  1507. cone2.Anchored=true
  1508. cone2.BrickColor=bc'Alder'
  1509. cone2.CanCollide=false
  1510. cone2.Material='Neon'
  1511. cone2.Transparency=.2
  1512. cone2.Parent=script
  1513. Tween(cone2,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency = 1, Size=vec3(15,4,15)/1.25})
  1514.  
  1515. Tween(b4.Mesh,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Scale=vec3(15,1,15)})
  1516. Tween(b4,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency=1})
  1517. delay(.65,function()
  1518. b4:Destroy();cone:Destroy()
  1519. end)
  1520. lwait(.6)
  1521. end
  1522. b2:Destroy();b3:Destroy()
  1523. for i,v in next, bps do
  1524. v:Destroy()
  1525. end
  1526. delay(5,function()
  1527. clsr=true
  1528. end)
  1529. beam:Destroy()
  1530. end)
  1531.  
  1532. BindKey('Buster', 'r', function(_,k)
  1533. dkd,ds=true,true
  1534. local fire=false
  1535. local ev
  1536. walkspd=0
  1537. ev=mouse.KeyUp:connect(function(key)
  1538. if k==key then
  1539. fire=true
  1540. ev:disconnect()
  1541. end
  1542. end)
  1543. walkspd=0
  1544. local tweened=false
  1545. spawn(function()
  1546. TweenC0(shw, cf(0,0,0)*ang(0,rad(45),rad(70)), 'Quint', 'Out', 1)
  1547. TweenJoints{
  1548. Style = 'Quint',
  1549. Direction = 'Out',
  1550. Time = 1,
  1551. Right_Arm_ = CFrame.new(0.535389304, 0.15619868, -1.28274536, 0.680957854, -0.702149034, 0.208047509, 0.284585983, -0.00804074015, -0.958620548, 0.674766183, 0.711983562, 0.19434683),
  1552. Left_Arm_ = CFrame.new(-1.80736709, 0.506341934, -1.62024987, 0.117187969, 0.993109763, -4.3410207e-08, 0, -4.37113883e-08, -1, -0.993109763, 0.117187969, -5.12244869e-09),
  1553. Right_Leg_ = CFrame.new(-6.61611557e-06, -0.905116677, -1.40443158, 1, 7.5250864e-07, -5.30853868e-06, 4.43911813e-06, 0.440601975, 0.897702694, 3.02493572e-06, -0.897702754, 0.440601975),
  1554. Left_Leg_ = CFrame.new(-0.244986176, 0.385205865, -0.7590608, 0.939282835, -0.0607775971, 0.337720811, -2.25848567e-07, 0.98419106, 0.177119762, -0.343143851, -0.166365743, 0.924440086),
  1555. Head_ = CFrame.new(4.76837158e-07, 0, -2.86102295e-06, 0.117187969, 0, 0.993109763, 0, 1, 0, -0.993109763, 0, 0.117187969),
  1556. Torso_ = CFrame.new(0.0551037788, -0.53477335, -1.43051147e-06, 0.117187969, 0, -0.993109763, 0, 1, 0, 0.993109763, 0, 0.117187969),
  1557. }
  1558. tweened=true
  1559. end)
  1560. repeat lrs:wait() FacePos'mouse'
  1561. until fire and tweened
  1562. dkd,ds=false,false
  1563. local to = mouse.Hit.p
  1564. local from = (Left_Arm.CFrame*cf(0,-1.5,1.25)).p
  1565. local Arc = CalculateArc(.5, from, to)
  1566. --local Segment = DisplayArc(Arc)
  1567. local Ball = NewObject('Part', script, {Size = vec3(2.5,2.5,2.5), Material='Neon', Color=bc'Alder'.Color, CFrame=cf(Arc[1]), Shape = 'Ball'})
  1568. local msh=Instance.new('SpecialMesh',Ball)
  1569. msh.MeshType='Sphere'
  1570. msh.Scale=vec3(1,1,1)
  1571. local loop=snd(228343433,Ball,true,{Pitch=2,Volume=3,Looped=true})
  1572. snd(231917750,root,true,{Pitch=.9})
  1573. local finished=false
  1574. spawn(function()
  1575. local t=0
  1576. local lcf=Arc[1]
  1577. repeat lrs:wait()
  1578. t=t+1
  1579. Tween(msh,.15,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=msh.Scale.Y < 5 and msh.Scale+vec3(1,1,1) or msh.Scale})
  1580. if t > 10 then
  1581. t=0
  1582. local ri=effects:Ring(.5, cf(lcf,Ball.Position)*ang(rad(90),0,0), 1, .5, 'Alder', true,{Material='Neon'},.15)
  1583. table.insert(grows,{{ri},vec3(.15,0,.15)*4,ang(0,0,0)})
  1584. end
  1585. lcf=Ball.Position
  1586. spawn(function()
  1587. local bl = NewPart(script)
  1588. bl.Parent=nil
  1589. local random = vec3(rand(-3,3),rand(-3,3),rand(-3,3))
  1590. bl.CFrame=Ball.CFrame*cf(random*(msh.Scale.Y/2))
  1591. bl.Material='Neon'
  1592. bl.Size=vec3(1,1,1)
  1593. bl.BrickColor=math.random()>.5 and bc'Alder' or bc'Pearl'
  1594. local msh2=Instance.new('SpecialMesh',bl)
  1595. msh2.MeshType='Sphere'
  1596. msh2.Scale=msh.Scale/2
  1597. bl.Parent=script
  1598. Tween(bl,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{CFrame=Ball.CFrame})
  1599. Tween(msh2,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=vec3(0,0,0)})
  1600. delay(.5, function()
  1601. bl:Destroy()
  1602. end)
  1603. end)
  1604. until finished
  1605. end)
  1606. for i,v in next, Arc do
  1607. Tween(Ball, .025, 'Linear', 'InOut', {CFrame = cf(v)})
  1608. lrs:wait()
  1609. end
  1610. finished=true
  1611. Ball.Transparency=1
  1612. loop:Stop()
  1613. local strt = cf(to)*cf(0,3,0)
  1614. local rayray = Ray.new(strt.p, (strt.p - (strt * CFrame.new(0, 1, 0)).p).unit * 10)
  1615. local hit, pp = workspace:FindPartOnRayWithIgnoreList(rayray, {Character})
  1616. game.Debris:AddItem(Ball,3)
  1617. snd(610359515,Ball,true)
  1618. local ptc1 = effects:particle(.1,.5,5,'Block', cf(to),{'Alder','Pearl'})
  1619. local ptc2 = effects:particle(.1,.5,5,'Cylinder',cf(to),{'Alder', 'Pearl'})
  1620. local ss=10
  1621. for i,v in next, ptc1 do v.Material = 'Neon' Tween(v, .5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, {Size=Vector3.new(ss,ss,ss)}) end
  1622. for i,v in next, ptc2 do v.Material='Neon' Tween(v, .5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, {Size=Vector3.new(ss,ss,ss)}) end
  1623. OnHumanoidFind(Ball,cf(0,0,0), function(proot,phum,body)
  1624. local dmg = math.random(8,16)
  1625. phum.Health = phum.Health - dmg
  1626. pcall(function()
  1627. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=false})
  1628. end)
  1629. phum.PlatformStand=proot:GetMass()<4 and true or false
  1630. delay(.25,function()
  1631. phum.PlatformStand=false
  1632. end)
  1633. end, 20, true)
  1634. ExpellWithForce(strt, 10, 15, function(Part, Distance)
  1635. end, false, {workspace:FindFirstChild'Base', Character})
  1636. local ri=effects:Ring(.5, cf(pp+vec3(0,0,0)), 3, 2, tostring(hit ~= nil and hit.BrickColor or 'Pearl'),false,{Material=hit ~= nil and hit.Material or 'Neon'},.15)
  1637. local cr=effects:Crown(.5, cf(pp+vec3(0,0,0)), 7, 4, tostring(hit ~= nil and hit.BrickColor or 'Pearl'),{Material=hit ~= nil and hit.Material or 'Neon'},.15)
  1638. table.insert(grows,{{ri},vec3(.5,0,.5)*4,ang(0,0,0)})
  1639. table.insert(grows,{{cr},vec3(.5,0,.5)*4,ang(0,rad(3),0)})
  1640. snd(782202168,Ball,true)
  1641. snd(228343412,Ball,true)
  1642. snd(231917742,Ball,true)
  1643. effects:Debris(true, 2.5, 2, rand(5,10), to, .005,{50,25})
  1644. --effects:BlastRad(true, 15, 3, 5, to, .05)
  1645. end)
  1646.  
  1647. function Attack4()
  1648. dkd,ds = true,true
  1649. TweenJoints{
  1650. Style = 'Quint',
  1651. Direction = 'Out',
  1652. Time = .5,
  1653. Right_Arm_ = cf(0,0,0),
  1654. Left_Arm_ = cf(0,0,0),
  1655. Right_Leg_ = cf(0,0,0),
  1656. Left_Leg_ = cf(0,0,0),
  1657. Head_ = cf(0,0,0),
  1658. Torso_ = cf(0,0,0),
  1659. }
  1660. TweenJoints{
  1661. Style = 'Quint',
  1662. Direction = 'Out',
  1663. Time = .5,
  1664. Right_Arm_ = cf(0,0,0),
  1665. Left_Arm_ = cf(0,0,0),
  1666. Right_Leg_ = cf(0,0,0),
  1667. Left_Leg_ = cf(0,0,0),
  1668. Head_ = cf(0,0,0),
  1669. Torso_ = cf(0,0,0),
  1670. }
  1671. dkd,ds = false,false
  1672. end
  1673.  
  1674. function Attack2()
  1675. dkd,ds = true,true
  1676. TweenJoints{
  1677. Style = 'Quint',
  1678. Direction = 'Out',
  1679. Time = .5,
  1680. Right_Arm_ = cf(0,0,0),
  1681. Left_Arm_ = cf(0,0,0),
  1682. Right_Leg_ = cf(0,0,0),
  1683. Left_Leg_ = cf(0,0,0),
  1684. Head_ = cf(0,0,0),
  1685. Torso_ = cf(0,0,0),
  1686. }
  1687. TweenJoints{
  1688. Style = 'Quint',
  1689. Direction = 'Out',
  1690. Time = .5,
  1691. Right_Arm_ = cf(0,0,0),
  1692. Left_Arm_ = cf(0,0,0),
  1693. Right_Leg_ = cf(0,0,0),
  1694. Left_Leg_ = cf(0,0,0),
  1695. Head_ = cf(0,0,0),
  1696. Torso_ = cf(0,0,0),
  1697. }
  1698. dkd,ds = false,false
  1699. end
  1700.  
  1701. function Attack3()
  1702. dkd,ds = true,true
  1703. TweenJoints{
  1704. Style = 'Quint',
  1705. Direction = 'Out',
  1706. Time = .5,
  1707. Right_Arm_ = cf(0,0,0),
  1708. Left_Arm_ = cf(0,0,0),
  1709. Right_Leg_ = cf(0,0,0),
  1710. Left_Leg_ = cf(0,0,0),
  1711. Head_ = cf(0,0,0),
  1712. Torso_ = cf(0,0,0),
  1713. }
  1714. TweenJoints{
  1715. Style = 'Quint',
  1716. Direction = 'Out',
  1717. Time = .5,
  1718. Right_Arm_ = cf(0,0,0),
  1719. Left_Arm_ = cf(0,0,0),
  1720. Right_Leg_ = cf(0,0,0),
  1721. Left_Leg_ = cf(0,0,0),
  1722. Head_ = cf(0,0,0),
  1723. Torso_ = cf(0,0,0),
  1724. }
  1725. dkd,ds = false,false
  1726. end
  1727.  
  1728. function Attack1()
  1729. dkd,ds = true,true
  1730. TweenC0(shw, ang(0,-rad(180),rad(135)), 'Linear', 'Out', .05)
  1731. TweenJoints{
  1732. Style = 'Quint',
  1733. Direction = 'Out',
  1734. Time = .15,
  1735. Right_Arm_ = CFrame.new(0.480937481, -0.623095155, 0.207057506, 0.829737663, -0.543632448, -0.126478553, 0.558150053, 0.808969557, 0.184476554, 0.00202971697, -0.223660082, 0.974669456),
  1736. Left_Arm_ = CFrame.new(-0.223258257, -0.312400937, 0.592300892, 0.647217274, -0.554238617, -0.523383737, -0.253734976, 0.490803808, -0.833504915, 0.718839288, 0.672259688, 0.177026629),
  1737. Right_Leg_ = CFrame.new(5.14984131e-05, -0.0270439386, -0.340497971, 1, 7.4505806e-09, -8.94069672e-08, -5.12227416e-09, 0.98540169, 0.170247093, -2.98023224e-08, -0.170247093, 0.985401392),
  1738. Left_Leg_ = CFrame.new(-0.0214843154, 0.00267851353, -0.145123824, 0.956951261, -1.0477379e-09, 0.290260822, 1.86264515e-09, 1.00000489, -9.42964107e-09, -0.290262878, -9.54605639e-09, 0.956948757),
  1739. Head_ = CFrame.new(3.81469727e-05, 4.17232513e-06, -0.00303199375, 0.584618986, 0, 0.811308026, 0.00245903619, 0.99999547, -0.00177195237, -0.811304271, 0.0030309523, 0.584616244),
  1740. Torso_ = CFrame.new(0.00667190552, -0.00287604332, -0.000377655029, 0.584618986, 0.00245892606, -0.811304271, -0.00245809881, 0.999996245, 0.0012598458, 0.811303556, 0.00125774904, 0.584622204),
  1741. }
  1742. TweenC0(shw, ang(0,-rad(180),-rad(135)), 'Linear', 'Out', .4)
  1743. snd(588693156,root,true)
  1744. TweenJoints{
  1745. Style = 'Linear',
  1746. Direction = 'Out',
  1747. Time = .15,
  1748. Right_Arm_ = CFrame.new(1.22454464, -1.18362045, -0.306676567, 0.0752486736, -0.146807969, 0.98629868, 0.997097671, 0.02256638, -0.0727136135, -0.0115822516, 0.988907576, 0.148080021),
  1749. Left_Arm_ = CFrame.new(-0.516955376, -0.73023963, -0.855697036, 0.655881882, 0.60047102, 0.457442462, -0.493600518, 0.799645245, -0.341944873, -0.571119547, -0.00151839852, 0.820865571),
  1750. Right_Leg_ = CFrame.new(3.68356705e-05, -0.0779465437, -0.447924763, 1.00000942, -2.08616257e-07, 2.38418579e-07, -1.59139745e-07, 0.975493431, 0.220059082, -7.74860382e-07, -0.22006014, 0.97549367),
  1751. Left_Leg_ = CFrame.new(0.246763051, -0.165307999, 7.34627247e-06, 0.97661984, 0.21497333, 1.34110451e-06, -0.21497333, 0.976619899, -5.21395123e-07, -1.43051147e-06, 2.16066837e-07, 1),
  1752. Head_ = CFrame.new(-0.175744906, 0.017444849, 0.146904826, 0.648833036, 0.1171887, -0.75185281, -0.00230547017, 0.988368213, 0.152063951, 0.76092732, -0.0969307423, 0.641555905),
  1753. Torso_ = CFrame.new(-0.00162887573, -0.00289463997, 0.00579071045, 0.374878913, -0.0028091569, 0.927069545, 0.00280869659, 0.999994338, 0.00189410418, -0.92706871, 0.00189380953, 0.374884337),
  1754. }
  1755. local poss = SHA.CFrame
  1756. local offset = root.CFrame:toObjectSpace(SHA.CFrame)
  1757. shw:Destroy()
  1758. SHA.CFrame=poss
  1759. SHA.Anchored=true
  1760. local done=false
  1761. local half=false
  1762. OnHumanoidFind(SHA, cf(0,0,0), function(proot,phum,body)
  1763. local dmg = math.random(5,13)
  1764. phum.Health = phum.Health - dmg
  1765. pcall(function()
  1766. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=math.random()>.9})
  1767. end)
  1768. end, 7, true)
  1769. spawn(function()
  1770. while lwait(.5) and not done do
  1771. OnHumanoidFind(SHA, cf(0,0,0), function(proot,phum,body)
  1772. local dmg = math.random(3,7)
  1773. phum.Health = phum.Health - dmg
  1774. pcall(function()
  1775. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=math.random()>.9})
  1776. end)
  1777. end, 7, true)
  1778. end
  1779. end)
  1780. trail=true
  1781. spawn(function()
  1782. repeat lrs:wait();lrs:wait();lrs:wait()
  1783. --local ptc1 = effects:particle(.1,.5,1,'Block', SHI.CFrame,{'Alder', 'Pearl'})
  1784. local ptc2 = effects:particle(.1,.5,2,'Cylinder',SHI.CFrame,{'Alder', 'Pearl'})
  1785. local ss=3.4
  1786. --for i,v in next, ptc1 do Tween(v, 1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, {Size=Vector3.new(ss,ss,ss)}) end
  1787. for i,v in next, ptc2 do Tween(v, 1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, {Size=Vector3.new(ss,ss,ss)}) end
  1788. until done
  1789. end)
  1790. spawn(function()
  1791. snd(233856097,root,true)
  1792. local lp = snd(235097691,root,true,{Pitch=.45,Looped=true})
  1793. for i = 0,360,10 do
  1794. local set = (root.CFrame*cf(0,0,-1-(-1/(360/(360-i))))*ang(0,math.rad(i),0)*offset*ang(rad(i),0,rad(i*3))*cf(1.5,0,0))
  1795. SHA.CFrame = set
  1796. lrs:wait()
  1797. end
  1798. for i = 0,200,10 do
  1799. local set = (root.CFrame*cf(0,0,-1/(360/(360-i)))*ang(0,math.rad(i),0)*offset*ang(rad(13),0,rad(i*3))*cf(6,0,0))
  1800. SHA.CFrame = set
  1801. lrs:wait()
  1802. end
  1803. half=true
  1804. for i = 200,360,10 do
  1805. local set = (root.CFrame*cf(0,0,-1/(360/(360-i)))*ang(0,math.rad(i),0)*offset*ang(rad(9),0,rad(i*3))*cf(6,0,0))
  1806. SHA.CFrame = set
  1807. lrs:wait()
  1808. end
  1809. lp:Destroy()
  1810. done=true
  1811. trail=false
  1812. end)
  1813. lwait(.3)
  1814. TweenJoints{
  1815. Style = 'Quint',
  1816. Direction = 'In',
  1817. Time = .3,
  1818. Right_Arm_ = CFrame.new(0.998920679, 0.14364481, 1.68959856, 0.300145298, -0.618172228, 0.726481915, -0.0739984512, 0.74421227, 0.663831592, -0.951018989, -0.253004432, 0.177628011),
  1819. Left_Arm_ = CFrame.new(-1.36803436, -0.0923654437, -1.48961067, 0.0884984732, 0.600464821, 0.794741571, -0.0683499575, 0.799651325, -0.596564591, -0.993728042, -0.00152620673, 0.111809149),
  1820. Right_Leg_ = CFrame.new(0.10795176, 0.137223721, -0.322895944, 0.868303895, -0.172812983, -0.464955926, -0.00150111609, 0.936429739, -0.350851864, 0.496030331, 0.305344015, 0.812846243),
  1821. Left_Leg_ = CFrame.new(0.24675554, -0.16530633, 1.2665987e-06, 0.976619899, 0.214973375, 3.57627869e-06, -0.21497333, 0.976620018, 1.66893005e-06, -3.1888485e-06, -2.38418579e-06, 1),
  1822. Head_ = CFrame.new(0.0915586054, 0.0196099281, -0.111794382, 0.869667768, -0.0338301063, -0.492476821, 0.104621723, 0.987616539, 0.116908997, 0.482423246, -0.153195754, 0.862437844),
  1823. Torso_ = CFrame.new(-0.315471649, -0.31086731, -0.393325806, 0.394115746, -0.218366832, 0.892742395, -0.170076683, 0.937257767, 0.304338545, -0.903187037, -0.271779239, 0.332248896),
  1824. }
  1825. snd(588693579,root,true)
  1826. TweenJoints{
  1827. Style = 'Linear',
  1828. Direction = 'Out',
  1829. Time = .2,
  1830. Right_Arm_ = CFrame.new(0.0439815521, -0.135678574, -0.440430045, 0.806191146, 0.397307813, -0.438409001, -0.0213991497, 0.76008296, 0.649473667, 0.591268122, -0.514218271, 0.621274173),
  1831. Left_Arm_ = CFrame.new(0.236092269, 0.785143495, 0.332070351, 0.558541417, -0.762449682, 0.326653212, 0.206355974, -0.253699929, -0.945015788, 0.803398728, 0.595236301, 0.0156343132),
  1832. Right_Leg_ = CFrame.new(-0.351975918, -0.201288223, -0.3103953, 0.947356284, -0.32018137, 3.57627869e-06, 0.315506399, 0.93352598, 0.170250237, -0.0545143187, -0.161286473, 0.985400915),
  1833. Left_Leg_ = CFrame.new(-0.178579241, 0.00266909599, -0.383025676, 0.642761528, -3.51574272e-08, 0.766066432, 7.49423634e-09, 1.00000024, 3.99304554e-08, -0.766066551, -1.94413587e-08, 0.64276135),
  1834. Head_ = CFrame.new(3.9100647e-05, 3.93390656e-06, -0.00303199375, 0.584618986, 0, 0.811308026, 0.00245903619, 0.99999547, -0.00177195237, -0.811304271, 0.0030309523, 0.584616244),
  1835. Torso_ = CFrame.new(0.00667190552, -0.00287604332, -0.000377655029, 0.584618986, 0.00245892606, -0.811304271, -0.00245809881, 0.999996245, 0.0012598458, 0.811303556, 0.00125774904, 0.584622204),
  1836. }
  1837. OnHumanoidFind(Left_Arm, cf(0,0,0), function(proot,phum,body)
  1838. local dmg = math.random(3,9) * (rand()>.8 and 2 or 1)
  1839. phum.Health = phum.Health - dmg
  1840. pcall(function()
  1841. showDmg(body, Character, dmg, {Rod=true,RodTrans=0,Crit=dmg>9})
  1842. end)
  1843. end, 10, true)
  1844. repeat lrs:wait() until half
  1845. TweenJoints{
  1846. Style = 'Linear',
  1847. Direction = 'Out',
  1848. Time = .15,
  1849. Right_Arm_ = CFrame.new(0.829519689, 0.381413698, -1.57987428, 0.374878913, -0.927073777, 4.05236804e-08, -0.00280904677, -0.00113593217, -0.99999547, 0.927069545, 0.374877214, -0.00303003029),
  1850. Left_Arm_ = CFrame.new(-0.519713402, -0.873377562, -0.158320561, 0.739482224, 0.668240309, 0.0813785493, -0.665690601, 0.74387598, -0.0592175536, -0.100107282, -0.0103825331, 0.994922578),
  1851. Right_Leg_ = CFrame.new(3.68356705e-05, -0.0779465437, -0.447928578, 1.00000942, -2.08616257e-07, 2.38418579e-07, -1.59139745e-07, 0.975493431, 0.220059082, -7.74860382e-07, -0.22006014, 0.97549367),
  1852. Left_Leg_ = CFrame.new(0.246763051, -0.165307999, 5.43892384e-06, 0.97661984, 0.21497333, 1.34110451e-06, -0.21497333, 0.976619899, -5.21395123e-07, -1.43051147e-06, 2.16066837e-07, 1),
  1853. Head_ = CFrame.new(-0.175744906, 0.0174450874, 0.14690578, 0.648833036, 0.1171887, -0.75185281, -0.00230547017, 0.988368213, 0.152063951, 0.76092732, -0.0969307423, 0.641555905),
  1854. Torso_ = CFrame.new(-0.00162887573, -0.00289463997, 0.00579071045, 0.374878913, -0.0028091569, 0.927069545, 0.00280869659, 0.999994338, 0.00189410418, -0.92706871, 0.00189380953, 0.374884337),
  1855. }
  1856. snd(231917871,root,true)
  1857. repeat lrs:wait() until done
  1858. SHA.Anchored=false
  1859. shw = Weld(Right_Arm, SHA, Right_Arm.CFrame:toObjectSpace(SHA.CFrame))
  1860. Tween(shw,.25/2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,{C1=cf(0,-1,0)*ang(0,-rad(0),-rad(90))})
  1861. lwait(.25/2)
  1862. Tween(shw,.25/2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,{C1=cf(0,-1,0)*ang(0,-rad(90),-rad(90))})
  1863. lwait(.25/2)
  1864. dkd,ds = false,false
  1865. end
  1866.  
  1867.  
  1868. hum.MaxHealth = Max_Health
  1869. lwait(.1)
  1870. hum.Health = Max_Health
  1871. HumanoidRootPart.Transparency = 1
  1872.  
  1873. local debvals={};
  1874. debvals['CLEAN']=0
  1875. debvals['walkparticles']=0
  1876. local Handle = function()
  1877. spawn(function()
  1878. for i,v in next, effects.MagicCircles do
  1879. if v[1].Parent ~= nil then
  1880. v[1].CFrame = lerp(v[1].CFrame, v[1].CFrame * CFrame.Angles(0,0,rad(v[4])), .9)
  1881. else
  1882. --table.remove(effects.MagicCircles,i)
  1883. effects.MagicCircles[i]=nil
  1884. end
  1885. end
  1886. end)
  1887. spawn(function()
  1888. for ting,data in next, trans do
  1889. if ting.Transparency~=nil and ting.Transparency < data[2] then
  1890. --print(ting.Transparency,data[2])
  1891. ting.Transparency=ting.Transparency+data[1]
  1892. elseif ting.Transparency >= tonumber(data[2]) and ting.Parent ~= nil then
  1893. --print'ded'
  1894. trans[ting]=nil
  1895. ting:Destroy()
  1896. end
  1897. end
  1898. end)
  1899. spawn(function()
  1900. for a,b in next, grows do
  1901. if a==grows[15] then
  1902. grows={};
  1903. for i,v in next, grows do
  1904. grows[i]=v
  1905. end
  1906. print'ded'
  1907. else
  1908. if #b > 1 then
  1909. for __,v in next, b[1] do
  1910. if v.Parent ~= nil then
  1911. if v.Transparency > 1 then
  1912. v:Destroy()
  1913. else
  1914. local c=v.CFrame
  1915. v.Size=v.Size+b[2] or vec3(b[2],b[2],b[2]) or vec3(0,0,0)
  1916. v.CFrame=c*b[3] or cf(0,0,0)
  1917. end
  1918. else
  1919. b[1][__]=nil
  1920. end
  1921. end
  1922. else
  1923. grows[a]=nil
  1924. end
  1925. end
  1926. end
  1927. end)
  1928. local actual,floor = CheckIfLanded(5)
  1929. if debvals['CLEAN'] > 40 then
  1930. debvals['CLEAN']=0
  1931. grows={};
  1932. trans={};
  1933. effects.MagicCircles={};
  1934. for i,v in next, FX:children() do
  1935. v:Destroy()
  1936. end
  1937. end
  1938. for i,v in next,debvals do
  1939. debvals[i]=v+.1
  1940. --print(i,v)
  1941. end
  1942. end
  1943.  
  1944. --_G.g=function(mdl)local t,s=0 function s(p)for i,v in next,p:children()do if v:IsA'Part'then t=t+v:GetMass()end;s(v)end;end s(mdl) return t end
  1945.  
  1946. Mouse.KeyDown:connect(function(Key)
  1947. if Key:byte() == 48 then
  1948. Walking = false
  1949. elseif Key:byte() == 93 then
  1950. table.foreach(keyz,print)
  1951. end
  1952. end)
  1953.  
  1954. Mouse.KeyUp:connect(function(Key)
  1955. if Key:byte() == 48 then
  1956. Walking = true
  1957. end
  1958. end)
  1959.  
  1960. local ComboResetTime,canatk = .1,true
  1961. local combo = 0
  1962. local output_clicks = false
  1963.  
  1964. function ComboUp()
  1965. if dkd == true then return end
  1966. if combo == 0 and canatk == true then
  1967. canatk = false
  1968. Attack1()
  1969. combo = 1
  1970. canatk = true
  1971. spawn(function()
  1972. ds = true
  1973. lwait(ComboResetTime)
  1974. if canatk == true then
  1975. ds = false
  1976. end
  1977. if combo == 1 and not ds then
  1978. combo = 0
  1979. end
  1980. end)
  1981. return
  1982. end
  1983. if combo == 1 and canatk == true then
  1984. canatk = false
  1985. --print'2'
  1986. Attack2()
  1987. combo = 2
  1988. canatk = true
  1989. spawn(function()
  1990. ds = true
  1991. lwait(ComboResetTime)
  1992. if canatk == true then
  1993. ds = false
  1994. end
  1995. if combo == 2 and not ds then
  1996. combo = 0
  1997. end
  1998. end)
  1999. return
  2000. end
  2001. if combo == 2 and canatk == true then
  2002. canatk = false
  2003. Attack3()
  2004. combo = 3
  2005. canatk = true
  2006. spawn(function()
  2007. ds = true
  2008. lwait(ComboResetTime)
  2009. if canatk == true then
  2010. ds = false
  2011. end
  2012. if combo == 3 and not ds then
  2013. combo = 0
  2014. end
  2015. end)
  2016. return
  2017. end
  2018. if combo == 3 and canatk == true then
  2019. canatk = false
  2020. Attack4()
  2021. combo = 0
  2022. lwait(ComboResetTime)
  2023. canatk = true
  2024. spawn(function()
  2025. if canatk == true then
  2026. ds = false
  2027. end
  2028. if combo == 0 and not ds then
  2029. combo = 0
  2030. end
  2031. end)
  2032. return
  2033. end
  2034. end
  2035.  
  2036. mouse.Button1Down:connect(function()
  2037. ComboUp()
  2038. end)
  2039.  
  2040. local can=true
  2041. function FootStep()
  2042. if root.CFrame.Y < -10 then
  2043. root.CFrame = cf(rand(-10, 10), 5, rand(-10, 10))
  2044. end
  2045. if can then
  2046. --// continue
  2047. else
  2048. return
  2049. end
  2050. can=false
  2051. delay(.2,function()
  2052. can=true
  2053. end)
  2054. local ping = Instance.new('Sound',Torso)
  2055. local ov = .5
  2056. local pitches={}
  2057. for i = -.05,.05,.005 do table.insert(pitches,1+i) end
  2058. ping.Volume = .25/ov
  2059. game:service'RunService'.RenderStepped:wait()
  2060. local ray = Ray.new(HumanoidRootPart.CFrame.p,(HumanoidRootPart.CFrame.p-(HumanoidRootPart.CFrame*cf(0,2.5,0)).p).unit*3.15)
  2061. local Hit,Pos = workspace:FindPartOnRayWithIgnoreList(ray, {Char})
  2062. if Hit and (Hit:IsDescendantOf(Character) == false) then
  2063. local num=0
  2064. if Hit.Material == Enum.Material.Plastic or Hit.Material == Enum.Material.SmoothPlastic then
  2065. local ss={379483672, 379398649};
  2066. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2067. ping.Pitch = pitches[math.random(1,#pitches)]
  2068. ping:Play()
  2069. return
  2070. end
  2071. if Hit.Material == Enum.Material.Grass then
  2072. ping.SoundId = rbx..379482039
  2073. ping.Volume = .05/ov
  2074. ping.Pitch = pitches[math.random(1,#pitches)]
  2075. ping:Play()
  2076. return
  2077. end
  2078. if Hit.Material == Enum.Material.Neon then
  2079. ping.SoundId = rbx..236989198
  2080. ping.Volume = 1/ov
  2081. ping.Pitch = pitches[math.random(1,#pitches)]
  2082. local ping2 = Instance.new('Sound',Torso)
  2083. ping2.Volume = .075/ov
  2084. ping2.SoundId = rbx..379482691
  2085. ping2.Pitch = pitches[math.random(1,#pitches)]
  2086. ping:Play()
  2087. ping2:Play()
  2088. return
  2089. end
  2090. if Hit.Material == Enum.Material.Metal or Hit.Material == Enum.Material.DiamondPlate or Hit.Material == Enum.Material.CorrodedMetal then
  2091. local ss={379482691,};
  2092. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2093. ping.Volume = .5/ov
  2094. ping.Pitch = pitches[math.random(1,#pitches)]
  2095. ping:Play()
  2096. return
  2097. end --510932495
  2098. if Hit.Material == Enum.Material.WoodPlanks or Hit.Material == Enum.Material.Wood then
  2099. local ss={ 379484117};
  2100. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2101. ping.Volume = .15/ov
  2102. ping.Pitch = pitches[math.random(1,#pitches)]
  2103. ping:Play()
  2104. return
  2105. end
  2106. if Hit.Material == Enum.Material.Ice or Hit.Material == Enum.Material.Foil then
  2107. local ss={ 510932495};
  2108. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2109. ping.Volume = .5/ov
  2110. ping.Pitch = pitches[math.random(1,#pitches)]
  2111. ping:Play()
  2112. return
  2113. end
  2114. if Hit.Material == Enum.Material.Fabric or Hit.Material == Enum.Material.Sand or Hit.Name == 'Snow' then
  2115. --warn'derp'
  2116. local ss={145536125,145536149};
  2117. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2118. ping.Pitch = pitches[math.random(1,#pitches)]
  2119. ping:Play()
  2120. return
  2121. end
  2122. if Hit.Material == Enum.Material.Slate or Hit.Material == Enum.Material.Pebble or Hit.Material == Enum.Material.Marble or Hit.Material == Enum.Material.Brick or Hit.Material == Enum.Material.Cobblestone or Hit.Material == Enum.Material.Concrete or Hit.Material == Enum.Material.Granite then
  2123. local ss={379483672, 379398649};
  2124. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2125. ping.Volume = .5/ov
  2126. ping.Pitch = pitches[math.random(1,#pitches)]
  2127. ping:Play()
  2128. return
  2129. end
  2130. end
  2131. end
  2132.  
  2133. local upv=0
  2134.  
  2135. srs:connect(function()
  2136. sine = tick() * (change * 25)
  2137. Handle()
  2138. end)
  2139.  
  2140. local once=false
  2141. lrs:connect(function()
  2142. Trail.Enabled=trail
  2143. Landed = CheckIfLanded()
  2144. hum.PlatformStand = false
  2145. if ds then
  2146. if Mode == 'Running' and not once then
  2147. once=true
  2148. spawn(function()
  2149. FadeSword'In'
  2150. end)
  2151. end
  2152. return
  2153. end
  2154. hum.JumpPower = 0
  2155. hum.Jump=false
  2156. hum.WalkSpeed = hum.WalkSpeed + (walkspd - hum.WalkSpeed) * .1;
  2157. walkspd=7
  2158. if not Walking then
  2159. walkspd = 25
  2160. end
  2161. local tmag_xz = (torso.Velocity*vec3(1, 0, 1)).magnitude
  2162. local tmag_y = torso.Velocity.Y
  2163. local trot = torso.RotVelocity.Y/50
  2164. local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z)
  2165. local TiltOnAxis = (root.CFrame-root.CFrame.p):inverse()*speed/200
  2166. local Tilt = ang(TiltOnAxis.Z,-TiltOnAxis.X,-TiltOnAxis.X)
  2167. if Landed == false then
  2168. State, Mode = 'Falling', 'Normal'
  2169. elseif tmag_xz < 3 then
  2170. State, Mode = 'Idle', 'Normal'
  2171. elseif tmag_xz >= 4 then
  2172. State = 'Walking'
  2173. if tmag_xz > 20 then
  2174. Mode = 'Running'
  2175. else
  2176. Mode = 'Normal'
  2177. end
  2178. end
  2179. local RestoreDefault = function(Current)
  2180. Current = Current or State
  2181. local Current2 = Mode
  2182. if LastMode ~= Current2 then
  2183. if Current2 == 'Running' then
  2184. spawn(function()
  2185. FadeSword'Out'
  2186. end)
  2187. elseif Current2 ~= 'Running' or once then
  2188. spawn(function()
  2189. FadeSword'In'
  2190. end)
  2191. end
  2192. LastMode = Current2
  2193. end
  2194. if LastState ~= Current then
  2195. LastState = Current
  2196. sine = 0
  2197. end
  2198. end
  2199. once=false
  2200. local Default_Anims = function()
  2201. local animspd = .1
  2202. local Right_Arm_ = cf(0,0,0)
  2203. local Left_Arm_ = cf(0,0,0)
  2204. local Right_Leg_ = cf(0,0,0)
  2205. local Left_Leg_ = cf(0,0,0)
  2206. local Head_ = cf(0,0,0)
  2207. local Torso_ = cf(0,0,0)
  2208.  
  2209. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2210. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2211. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2212. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2213. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2214. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2215. end
  2216. if State == 'Falling' and ds == false then
  2217. local animspd = .3
  2218. change = 1
  2219. local Right_Arm_ = cf(0,0,0)
  2220. local Left_Arm_ = cf(0,0,0)
  2221. local Right_Leg_ = cf(0,0,0)
  2222. local Left_Leg_ = cf(0,0,0)
  2223. local Head_ = cf(0,0,0)
  2224. local Torso_ = cf(0,0,0)
  2225.  
  2226. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2227. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2228. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2229. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2230. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2231. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2232. elseif State == 'Idle' and ds == false then
  2233. RestoreDefault()
  2234. if Mode == 'Normal' and ds == false then
  2235. local animspd = .125
  2236. change = .35
  2237. local Right_Arm_ = CFrame.new(0.467620611, -0.552611947, -0.132565618, 0.842239499, -0.53289324, -0.0816002488, 0.520031989, 0.842986345, -0.137627944, 0.142128706, 0.0734807402, 0.987117887)
  2238. local Left_Arm_ = CFrame.new(-0.781376958, 0.0332048535, -1.34890664, 0.59977144, 0.799722373, -0.0268236771, -0.304636121, 0.197214842, -0.931828678, -0.739913702, 0.567055464, 0.361907959)
  2239. local Right_Leg_ = CFrame.new(-0.272229075, -0.24053812, 0.000354528427, 0.955758393, -0.294165701, -1.257658e-05, 0.294165134, 0.955759764, 6.22232903e-07, 1.13546848e-05, -4.07546759e-06, 1.00000012)
  2240. local Left_Leg_ = CFrame.new(0.0260814428, 0.0450050831, -0.361847639, 0.775439262, 0.110567033, 0.621666431, -0.0906994343, 0.993843734, -0.0636264831, -0.624874234, -0.00704631209, 0.780693769)
  2241. local Head_ = CFrame.new(0.270924807, 0.0874993801, 0.260071456, 0.390913397, -0.180617183, 0.90253222, -0.0901362225, 0.96833241, 0.23282595, -0.916003525, -0.172365636, 0.362253964)
  2242. local Torso_ = CFrame.new(0.0059170723, -0.182877302, -0.00212669373, 0.392511159, 0, -0.919747353, 0, 1, 0, 0.919747353, 0, 0.392511159)
  2243.  
  2244. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2245. hedw.C0 = lerp(hedw.C0, cf(0,0,-cos(sine/8)/16)*Head_*ang(cos(sine/8)/16,0,0),animspd)
  2246. law.C0 = lerp(law.C0, cf(sin(sine/8)/20,cos(sine/8)/14,0)*Left_Arm_*ang(cos(sine/8)/14,0,sin(sine/8)/20),animspd)
  2247. raw.C0 = lerp(raw.C0, cf(0,.5+sin(sine/8)/14,-.5)*Right_Arm_*ang(rad(70)+sin(sine/8)/14,0,0),animspd)
  2248. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2249. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2250. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2251. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2252. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,-rad(15),rad(70)), animspd)
  2253. else
  2254. Default_Anims()
  2255. warn'Idle: Unknown Mode Used'
  2256. end
  2257. elseif State == 'Walking' and ds == false then
  2258. RestoreDefault()
  2259. if Mode == 'Normal' and ds == false then
  2260. local up = sin(sine/6)
  2261. if math.abs(up)>=.995 then
  2262. local actual,floor = CheckIfLanded(7)
  2263. local clrs={'Really black','Pearl'}
  2264. local mtrl='Neon'
  2265. local ss = 3
  2266. if actual then
  2267. clrs={tostring(floor.BrickColor)}
  2268. mtrl=floor.Material
  2269. end
  2270. FootStep()
  2271. if up > 0 then
  2272.  
  2273. else
  2274.  
  2275. end
  2276. end
  2277. local animspd = .25
  2278. change = 1.4
  2279. local Right_Arm_ = cf(0,0,0)
  2280. local Left_Arm_ = cf(0,0,0)
  2281. local Right_Leg_ = cf(0,0,0)
  2282. local Left_Leg_ = cf(0,0,0)
  2283. local Head_ = cf(0,0,0)
  2284. local Torso_ = cf(0,0,0)
  2285.  
  2286. torw.C0 = clerp(torw.C0, cf(0,-.2,0)*Torso_*ang(-rad(12)+sin(sine/3)/18,sin(sine/6)/13,0),animspd)
  2287. hedw.C0 = clerp(hedw.C0, cf(0,0,-rad(4))*Head_*ang(rad(4),0,0),animspd)
  2288. law.C0 = clerp(law.C0, cf(-.265,-.359/2,sin(sine/6)/4)*Left_Arm_*ang(-sin(sine/6)/4,0,-rad(20)),animspd)
  2289. raw.C0 = clerp(raw.C0, cf(.265+cos(sine/6)/8,(-.359/2)+.65,-.85)*Right_Arm_*ang(rad(90),0,rad(20)+cos(sine/6)/8),animspd)
  2290. rlw.C0 = clerp(rlw.C0, cf(-.034/2,.1-cos(sine/6)/4,-.4+cos(sine/6)/4+-sin(sine/6)/2)*ang(-rad(5)+-sin(sine/6)/2,-sin(sine/6)/13,rad(1)),animspd)
  2291. llw.C0 = clerp(llw.C0, cf(.034/2,.1+cos(sine/6)/4,-.4+-cos(sine/6)/4+sin(sine/6)/2)*ang(-rad(5)+sin(sine/6)/2,-sin(sine/6)/13,-rad(1)),animspd)
  2292.  
  2293. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2294. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2295. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,rad(15),rad(70)), .1)
  2296. elseif Mode == 'Running' and ds == false then
  2297. local up = sin(sine/6)
  2298. if math.abs(up)>=.995 then
  2299. local actual,floor = CheckIfLanded(7)
  2300. local clrs={'Really black','Pearl'}
  2301. local mtrl='Neon'
  2302. local ss = 3
  2303. if actual then
  2304. clrs={tostring(floor.BrickColor)}
  2305. mtrl=floor.Material
  2306. end
  2307. FootStep()
  2308. if up > 0 then
  2309.  
  2310. else
  2311.  
  2312. end
  2313. end
  2314. local animspd = .25
  2315. change = 1.4
  2316. local Right_Arm_ = cf(0,0,0)
  2317. local Left_Arm_ = cf(0,0,0)
  2318. local Right_Leg_ = cf(0,0,0)
  2319. local Left_Leg_ = cf(0,0,0)
  2320. local Head_ = cf(0,0,0)
  2321. local Torso_ = cf(0,0,0)
  2322.  
  2323. torw.C0 = clerp(torw.C0, cf(0,-.2,0)*Torso_*ang(-rad(12)+sin(sine/3)/18,sin(sine/6)/13,0),animspd)
  2324. hedw.C0 = clerp(hedw.C0, cf(0,0,-rad(4))*Head_*ang(rad(4),0,0),animspd)
  2325. law.C0 = clerp(law.C0, cf(-.265,-.359/2,sin(sine/6)/4)*Left_Arm_*ang(-sin(sine/6)/4,0,-rad(20)),animspd)
  2326. raw.C0 = clerp(raw.C0, cf(.265,-.359/2,-sin(sine/6)/4)*Right_Arm_*ang(sin(sine/6)/4,0,rad(20)),animspd)
  2327. rlw.C0 = clerp(rlw.C0, cf(-.034/2,.1-cos(sine/6)/4,-.4+cos(sine/6)/4+-sin(sine/6)/2)*ang(-rad(5)+-sin(sine/6)/2,-sin(sine/6)/13,rad(1)),animspd)
  2328. llw.C0 = clerp(llw.C0, cf(.034/2,.1+cos(sine/6)/4,-.4+-cos(sine/6)/4+sin(sine/6)/2)*ang(-rad(5)+sin(sine/6)/2,-sin(sine/6)/13,-rad(1)),animspd)
  2329.  
  2330. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2331. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2332. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,rad(15),rad(70)), .1)
  2333. else --// 59426=74955
  2334. Default_Anims()
  2335. warn'Walking: Unknown Mode Used'
  2336. end
  2337. else --// New Animation Test Stage
  2338. local animspd = .1
  2339. local Right_Arm_ = cf(0,0,0)
  2340. local Left_Arm_ = cf(0,0,0)
  2341. local Right_Leg_ = cf(0,0,0)
  2342. local Left_Leg_ = cf(0,0,0)
  2343. local Head_ = cf(0,0,0)
  2344. local Torso_ = cf(0,0,0)
  2345.  
  2346. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2347. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2348. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2349. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2350. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2351. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2352. end
  2353.  
  2354. end)
  2355.  
  2356. --[[ Default Welds
  2357. local animspd = .3
  2358. change = 1
  2359.  
  2360. local Right_Arm_ = cf(0,0,0)
  2361. local Left_Arm_ = cf(0,0,0)
  2362. local Right_Leg_ = cf(0,0,0)
  2363. local Left_Leg_ = cf(0,0,0)
  2364. local Head_ = cf(0,0,0)
  2365. local Torso_ = cf(0,0,0)
  2366.  
  2367. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2368. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2369. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2370. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2371. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2372. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2373. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2374. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2375.  
  2376. --]]
  2377.  
  2378. Player.Chatted:connect(function(Message)
  2379. if Message == '~debug' then
  2380. ds,dkd=false,false
  2381. for i,v in next, FX:children() do
  2382. v:Destroy()
  2383. end
  2384. FadeSword'In'
  2385. end
  2386. end)
  2387.  
  2388. script.Archivable = false
  2389. script:WaitForChild('Sound'):Play()
  2390.  
  2391. print("Press ']' to see all KeyBinds")
  2392. print('Say ~debug to... debug..............................')
Add Comment
Please, Sign In to add comment