Advertisement
Disseya

Malus FE

Oct 15th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.98 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. --// Thanks for using SavageMunkey's Animation Base
  153. --// Got decompiled so fuck it asd
  154.  
  155. --// 145769116, 204863573 lol
  156. local Player = game:service'Players'.LocalPlayer
  157. repeat wait() until Player.Character
  158. local Character = Player.Character
  159. local Mouse = Player:GetMouse()
  160. local Landed = true
  161. local Walking = true
  162.  
  163. --// Settings
  164.  
  165. local ComboResetTime = .125 --// Seconds it takes for the combo to reset if not clicked fast enough
  166. local Max_Health = 150
  167. local NotifyKeyPresses = false
  168.  
  169. --// Limbs and what not
  170.  
  171. local Torso = Character:WaitForChild'Torso'
  172. local Head = Character:WaitForChild'Head'
  173. local Left_Arm = Character:WaitForChild'Left Arm'
  174. local Right_Arm = Character:WaitForChild'Right Arm'
  175. local Left_Leg = Character:WaitForChild'Left Leg'
  176. local Right_Leg = Character:WaitForChild'Right Leg'
  177. local HumanoidRootPart = Character:WaitForChild'HumanoidRootPart'
  178. local Humanoid = Character:WaitForChild'Humanoid'
  179.  
  180. --// Debounces
  181.  
  182. local trail=false
  183. local DebounceHit = false
  184. local DebounceKeyDown, DebounceState = false, false
  185. local DebounceAFKAnimations = false
  186.  
  187. --// Other Things
  188.  
  189. local State, LastState, Mode = 'Idle', 'Normal'
  190. Mode=LastState
  191. local AFKAnimSequenceCount,MaxSequenceCount = 0, 200
  192.  
  193. --// Abbreiviations
  194.  
  195. local rbx = 'rbxassetid://'
  196. local char,Char,plr,Plr = Character, Character, Player, Player
  197. local mouse,ms = Mouse, Mouse
  198. local cam,camera,Camera,Cam=workspace.CurrentCamera,workspace.CurrentCamera,workspace.CurrentCamera,workspace.CurrentCamera
  199. local dkd, debkd = DebounceKeyDown, DebounceKeyDown
  200. local dst, debst, ds, debs = DebounceState,DebounceState,DebounceState,DebounceState
  201. local daa,dafk,debafk = DebounceAFKAnimations,DebounceAFKAnimations,DebounceAFKAnimations
  202. local rs = game:service'RunService'
  203. local lrs = rs.Stepped
  204. local srs = rs.Stepped
  205. local lleg,rleg = Left_Leg, Right_Leg
  206. local larm,rarm = Left_Arm, Right_Arm
  207. local hed,torr,torso = Head, Torso, Torso
  208. local hum, root = Humanoid, HumanoidRootPart
  209. local vec3,vec2 = Vector3.new, Vector2.new
  210. local sin, cos, atan, rad, rand, rands = math.sin, math.cos, math.atan, math.rad, math.random, math.randomseed
  211. local cf, ang, eu, v3 = CFrame.new, CFrame.Angles, CFrame.fromEulerAnglesXYZ, Vector3.new
  212. local bc,bcr,c3 = BrickColor.new,BrickColor.Random,Color3.new
  213.  
  214. --// Removals and error prevention
  215.  
  216. if Char:FindFirstChild'Animate' then
  217. local Anim = Char:WaitForChild'Animate'
  218. Anim.Disabled=true
  219. end
  220. local anims = Humanoid:GetPlayingAnimationTracks()
  221. for i, v in ipairs(anims) do v:Stop() end
  222. print'Loading'
  223. wait(2)
  224.  
  225. for Index, Object in next, Head:GetChildren() do
  226. if Object:IsA('Sound') then
  227. Object.Volume = 0
  228. end
  229. end
  230. if Char:FindFirstChild'Health' then
  231. ypcall(game.Destroy, Char.Health)
  232. end
  233.  
  234. --// Base Functions
  235.  
  236. function Weld(to, from, c1)
  237. local New_Weld = Instance.new('Motor', to)
  238. New_Weld.Part0 = from
  239. New_Weld.Part1 = to
  240. New_Weld.C1 = c1
  241. return New_Weld
  242. end
  243.  
  244. function clerp(c1,c2,al)
  245. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  246. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  247. for i,v in pairs(com1) do
  248. com1[i] = v+(com2[i]-v)*al
  249. end
  250. return cf(com1[1],com1[2],com1[3]) * ang(select(4,unpack(com1)))
  251. end
  252.  
  253. function lerp(c1,c2,al)
  254. return c1:lerp(c2,al)
  255. end
  256.  
  257. function snd(Id, Parent, PlayAsWell, OtherProperties)
  258. PlayAsWell=PlayAsWell or false
  259. OtherProperties=OtherProperties or {Volume=.5}
  260. local Sound = Instance.new('Sound')
  261. Sound.SoundId = rbx..Id
  262. for i,v in next, OtherProperties do
  263. pcall(function()
  264. Sound[i]=v
  265. end)
  266. end
  267. Sound.Parent=Parent
  268. Sound.Ended:connect(function()
  269. game.Debris:AddItem(Sound, 1)
  270. end)
  271. if PlayAsWell then
  272. Sound:Play()
  273. end
  274. return Sound
  275. end
  276.  
  277. function FacePos(pos)
  278. local torso, torsoPos = torso, HumanoidRootPart.CFrame.p
  279. local torso = Char:FindFirstChild'Torso'
  280. if pos == 'mouse' or not pos then
  281. pos = CFrame.new(torsoPos, Vector3.new(mouse.Hit.X,torsoPos.Y,mouse.Hit.Z))
  282. else
  283. pos = CFrame.new(torsoPos, pos.p)
  284. end
  285. if torso then
  286. HumanoidRootPart.CFrame = lerp(HumanoidRootPart.CFrame,pos,.3)
  287. end
  288. end
  289.  
  290. local function lwait(i, output)
  291. --[[
  292. i, output = i or 0, output or false
  293. local lrs = game:service'RunService'.Stepped
  294. local ifps = 1 / (i / lrs:wait())
  295. local total = 0
  296. for asd = 0, (i - ifps) / i, ifps / 1.6 do
  297. if output then
  298. warn(asd)
  299. end
  300. total = asd * i
  301. lrs:wait()
  302. end
  303. return total, (i / ifps) / ifps, ifps
  304. ==]]
  305. return wait(i)
  306. end
  307.  
  308. local function Tween(Object, Time, Style, Direction, Properties)
  309. local S = type(Style) == 'string' and Enum.EasingStyle[Style] or Style
  310. local D = type(Direction) == 'string' and Enum.EasingDirection[Direction] or Direction
  311. local TweenService = game:GetService("TweenService")
  312. local TweenData = TweenInfo.new(Time, S, D, 0, false, 0)
  313. local Result = TweenService:Create(Object, TweenData, Properties)
  314. Result:Play()
  315. end
  316.  
  317. local walkspd = 16
  318. local sine, change = 0, 1
  319.  
  320. --// Model
  321.  
  322. local Welds = {};
  323. local Parts = {};
  324.  
  325. local function Join(Main, Parent) --// AutoWeld
  326. for Index, Object in next, Parent:GetChildren() do
  327. if Object:IsA('BasePart') then
  328. for i = 0, 5 do
  329. if Object:FindFirstChildOfClass('Weld') then
  330. Object:FindFirstChildOfClass('Weld'):Destroy()
  331. end
  332. end
  333. if Object ~= Main then
  334. Parts[#Parts + 1] = Object
  335. Object.Anchored, Object.CanCollide, Object.Locked = false, false, true
  336. local w = Weld(Main, Object, Main.CFrame:toObjectSpace(Object.CFrame))
  337. w.Name = Object.Name..':'..Main.Name
  338. w.Parent = script
  339. Welds[#Welds + 1] = {w, Main}
  340. else
  341. Parts[#Parts + 1] = Main
  342. Main.Anchored, Main.CanCollide, Main.Locked = false, false, true
  343. end
  344. end
  345. end
  346. end
  347.  
  348. --game:GetService('StarterGui'):SetCoreGuiEnabled(3, false)
  349.  
  350. local RStorage = game:GetService('ReplicatedStorage');
  351. local LG = RStorage:WaitForChild('Left', 5)
  352. local RG = RStorage:WaitForChild('Right', 5)
  353. local Melee = RStorage:WaitForChild('Melee', 5)
  354.  
  355. if LG == nil or RG == nil or Melee == nil then
  356. Character:BreakJoints()
  357. return
  358. end
  359.  
  360. LG = LG:Clone()
  361. RG = RG:Clone()
  362. Melee = Melee:Clone()
  363.  
  364. local LHA, LHI = LG.Handle, LG.Hitbox
  365. local RHA = RG.Handle
  366. local SHA, SHI = Melee.Handle, Melee.Hitbox
  367.  
  368. local trailTop = Instance.new('Part')
  369. trailTop.CFrame=SHI.CFrame*CFrame.new(0,-SHI.Size.Y/2,0)
  370. trailTop.Size=Vector3.new(1,1,1)
  371. trailTop.Transparency=1
  372. trailTop.Color=Color3.new(1,0,0)
  373. trailTop.Anchored=true
  374.  
  375. local trailBottom = Instance.new('Part')
  376. trailBottom.CFrame=SHI.CFrame*CFrame.new(0,(SHI.Size.Y/2),0)
  377. trailBottom.Size=Vector3.new(1,1,1)
  378. trailBottom.Transparency=1
  379. trailBottom.Color=Color3.new(0,1,0)
  380. trailBottom.Anchored=true
  381.  
  382. trailTop.Parent=Melee
  383. trailBottom.Parent=Melee
  384.  
  385. local TrailSettings = {
  386. Lifetime = .1,
  387. Transparency = NumberSequence.new(.5,1),
  388. Texture = 'rbxassetid://31270182',
  389. Color1 = ColorSequence.new(BrickColor.new'Alder'.Color,Color3.new(1,1,1)),
  390. }
  391.  
  392. local A0 = Instance.new('Attachment', trailTop)
  393. local A1 = Instance.new('Attachment', trailBottom)
  394.  
  395. local Trail = Instance.new('Trail', Character)
  396. Trail.Attachment0 = A0
  397. Trail.Attachment1 = A1
  398. Trail.FaceCamera=false
  399. Trail.Transparency = TrailSettings.Transparency
  400. Trail.Texture = TrailSettings.Texture
  401. Trail.Color = TrailSettings.Color1
  402. Trail.Lifetime = TrailSettings.Lifetime
  403.  
  404. Join(LHA, LG)
  405. Join(RHA, RG)
  406. Join(SHA, Melee)
  407. Join(SHA, Melee.Rune)
  408.  
  409. local MeshEffects = RStorage:WaitForChild('Effects'):Clone()
  410. MeshEffects.Parent = nil
  411.  
  412. for Index, Array in next, Welds do
  413. Array[1].Parent = Array[2]
  414. end
  415.  
  416. local Set = {
  417. ['Really black'] = {Color = Color3.new(0, 0, 0), Material = 'Grass'};
  418. Others = {}--Color = Color3.new(0, 0, 0), Material = 'SmoothPlastic'};
  419. };
  420.  
  421. local Exceptions = {};
  422.  
  423. for Index, Object in next, Parts do
  424. local Pardoned = false
  425. for Index, Model in next, Exceptions do
  426. if Object.Parent == Model then
  427. Pardoned = true
  428. end
  429. end
  430. if Object:IsA('BasePart') and not Pardoned then
  431. Object.Anchored, Object.Locked, Object.CanCollide = false, true, false
  432. if Object.ClassName:find('UnionOperation') then
  433. Object.UsePartColor = true
  434. end
  435. local WasSet = false
  436. for Look, Data in next, Set do
  437. if tostring(Object.BrickColor) == Look then
  438. WasSet = true
  439. for Index, Value in next, Data do
  440. pcall(function()
  441. Object[Index] = Value
  442. end)
  443. end
  444. end
  445. end
  446. if not WasSet then
  447. for Index, Value in next, Set.Others do
  448. pcall(function()
  449. Object[Index] = Value
  450. end)
  451. end
  452. end
  453. end
  454. end
  455.  
  456. --// Welds
  457.  
  458. local llw = Weld(Left_Leg, Torso, cf(.5,2,0))
  459. local rlw = Weld(Right_Leg, Torso, cf(-.5,2,0))
  460. local raw = Weld(Right_Arm, Torso, cf(-1.5,0,0))
  461. local law = Weld(Left_Arm, Torso, cf(1.5,0,0))
  462. local torw = Weld(Torso, HumanoidRootPart, cf(0,0,0))
  463. local hedw = Weld(Head, Torso, cf(0,-1.5,0))
  464. local lhw = Weld(Left_Arm, LHA, cf(0,0,0))
  465. local rhw = Weld(Right_Arm, RHA, cf(0,0,0)*ang(0,0,0))
  466. local shw = Weld(Right_Arm, SHA, cf(0,-1,0)*ang(0,-rad(90),-rad(90)))
  467.  
  468. LG.Parent, RG.Parent, Melee.Parent = script, script, script
  469.  
  470. --[[ State Example: Arms Out
  471. raw.C0 = clerp(raw.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  472. law.C0 = clerp(law.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  473. --]]
  474.  
  475. local keyz={};
  476. local Used = {
  477. Executed={};
  478. Failed={};
  479. };
  480.  
  481. local BindKey = function(Name, Key, Function)
  482. local keydown
  483. keyz[Key:upper()]=Name
  484. keydown = mouse.KeyDown:connect(function(key)
  485. if Key:lower() == key:lower() then
  486. local detect=dkd
  487. if dkd then
  488. table.insert(Used.Failed, {Name, Key, Function})
  489. elseif not dkd and Walking then
  490. if NotifyKeyPresses then
  491. warn('executed('..Name..', "'..tostring(Key:upper())..'")')
  492. end
  493. Function(Name, Key)
  494. if NotifyKeyPresses then
  495. warn('ended('..Name..')')
  496. end
  497. table.insert(Used.Executed, {Name, Key, Function})
  498. elseif Walking then
  499. warn('You must Walking enabled to use this key')
  500. end
  501. end
  502. end)
  503. end
  504.  
  505. local pitches = {}
  506. for i = -.1,.1,.01 do table.insert(pitches,1.5+i) end
  507.  
  508. --[[
  509.  
  510. BindKey('Attack Name', 'Key{Not case sensative}', function(AttackName, Key)
  511. ds,dkd = true,true
  512. for i = 0,1,.05 do
  513. local animspd = .1
  514. local Right_Arm_ = cf(0,0,0)
  515. local Left_Arm_ = cf(0,0,0)
  516. local Right_Leg_ = cf(0,0,0)
  517. local Left_Leg_ = cf(0,0,0)
  518. local Head_ = cf(0,0,0)
  519. local Torso_ = cf(0,0,0)
  520.  
  521. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  522. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  523. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  524. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  525. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  526. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  527. lrs:wait()
  528. lrs:wait()
  529. end
  530. for i = 0,1,.05 do
  531. local animspd = .1
  532. local Right_Arm_ = cf(0,0,0)
  533. local Left_Arm_ = cf(0,0,0)
  534. local Right_Leg_ = cf(0,0,0)
  535. local Left_Leg_ = cf(0,0,0)
  536. local Head_ = cf(0,0,0)
  537. local Torso_ = cf(0,0,0)
  538.  
  539. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  540. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  541. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  542. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  543. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  544. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  545. lrs:wait()
  546. end
  547. ds,dkd = false,false
  548. end)
  549.  
  550. --]]
  551.  
  552. function rainb(hue)
  553. local section = hue % 1 * 3
  554. local secondary = 0.5 * math.pi * (section % 1)
  555. if section < 1 then
  556. return c3(1, 1 - cos(secondary), 1 - sin(secondary))
  557. elseif section < 2 then
  558. return c3(1 - sin(secondary), 1, 1 - cos(secondary))
  559. else
  560. return c3(1 - cos(secondary), 1 - sin(secondary), 1)
  561. end
  562. end
  563.  
  564. function showDmg(To, From, Txt, Others)
  565. local bc,c3=BrickColor.new,Color3.new
  566. local vec3,cf=Vector3.new,CFrame.new
  567. local rand=math.random
  568. local n = 2
  569. local lrs=game:service'RunService'.Stepped
  570. local Color = 'Pearl'
  571. local Clr_Raw = Color
  572. if Clr == nil then Clr = 'Pearl' end
  573. Clr = bc(Color).Color
  574. local Pert = Instance.new('Part', Character)
  575. Pert.Size = vec3(.2,.2,.2)
  576. Pert.Transparency = 1
  577. Pert.CanCollide = false
  578. Pert.Anchored = true
  579. Pert.CFrame = To:FindFirstChild'Head'.CFrame * cf(rand(-n,n),n,rand(-n,n))
  580. Pert.BrickColor = bc('Black')
  581. local Rod = nil
  582. if (Others.Rod ~= nil and Others.Rod == true) then
  583. Rod = Instance.new('Part', Character)
  584. local to,from = Pert.CFrame.p, From:WaitForChild'HumanoidRootPart'.CFrame.p
  585. local dist = (to-from).magnitude
  586. Rod.Size = vec3(.2,.2,dist)
  587. Instance.new('BlockMesh',Rod).Scale=vec3(.1,.1,1)
  588. Rod.CFrame = cf(to,from)*cf(0,0,-dist/2)
  589. Rod.Transparency = .5 or Rod.RodTrans
  590. Rod.CanCollide = false
  591. Rod.Anchored = true
  592. Rod.BrickColor = bc(Clr_Raw)
  593. end
  594. local Gui = Instance.new('BillboardGui',Pert)
  595. Gui.Adornee = Pert
  596. local n2 = 10
  597. Gui.Size = UDim2.new(n2,0,n2,0)
  598. local TextL = Instance.new('TextLabel', Gui)
  599. local r,g,b = Clr.r,Clr.g,Clr.b
  600. local clr = c3(r,g,b)
  601. TextL.BackgroundTransparency = 1
  602. TextL.Font = 'SciFi'
  603. TextL.Size = UDim2.new(1,0,1,0)
  604. TextL.TextTransparency = .1
  605. TextL.TextStrokeTransparency = .2
  606. TextL.TextStrokeColor3 = clr
  607. TextL.Position = UDim2.new(0,0,0,0)
  608. Txt=tostring(Txt):upper()
  609. if string.find(Txt:lower(),'critical') or (Others.Crit ~= nil and Others.Crit == true)then
  610. Txt='(CRITICAL) // '..Txt
  611. end
  612. TextL.Text=Txt
  613. TextL.TextScaled = false
  614. TextL.FontSize = 'Size18'
  615. TextL.TextColor3 = Color3.new(1,1,1)
  616. 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))
  617. delay(.1,function()
  618. repeat lrs:wait()
  619. TextL.TextTransparency=TextL.TextTransparency+.005
  620. TextL.TextStrokeTransparency=TextL.TextStrokeTransparency+.005
  621. if Rod ~= nil then
  622. Rod.Transparency = Rod.Transparency + .0025
  623. end
  624. Pert.CFrame = Pert.CFrame:lerp(sp,.01)
  625. clr = c3(r,g,b)
  626. if Rod ~= nil then
  627. local to,from = Pert.CFrame.p, From:WaitForChild'HumanoidRootPart'.CFrame.p
  628. local dist = (to-from).magnitude
  629. Rod.Size = vec3(.2,.2,dist)
  630. Rod.CFrame = cf(to,from)*cf(0,0,-dist/2)
  631. end
  632. --TextL.TextColor3 = clr
  633. until TextL.TextTransparency>=1
  634. Pert:Destroy()
  635. if Rod ~= nil then
  636. Rod:Destroy()
  637. end
  638. end)
  639. end
  640.  
  641. --// Example // showDmg(workspace.SavageMunkey, workspace.Base, 'Damage Dealt'..math.random(0,100), {Rod=false,RodTrans=0,Crit=false})
  642.  
  643. function CheckIfLanded()
  644. local Ray = Ray.new(root.Position,vec3(0,-1,0)*3.5)
  645. local Ignore = {Char}
  646. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  647. if Hit == nil then return false,nil end
  648. return true, Hit
  649. end;
  650.  
  651. function FindNearestTorso(Position, Distance, SinglePlayer)
  652. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  653. local List = {}
  654. for i,v in pairs(workspace:GetChildren())do
  655. if v:IsA("Model")then
  656. if v:findFirstChild("Torso")then
  657. if v ~= Char then
  658. if(v.Torso.Position -Position).magnitude <= Distance then
  659. table.insert(List,v)
  660. end
  661. end
  662. end
  663. end
  664. end
  665. return List
  666. end
  667.  
  668. local function ExpellWithForce(Origin, Radius, Force, OnHit, Break, Ignore)
  669. Origin = Origin or Vector3.new()
  670. Origin = typeof(Origin) == 'Vector3' and Origin or Origin.p
  671. Ignore = Ignore or {};
  672. Ignore = typeof(Ignore) == 'table' and Ignore or {};
  673. Radius = Radius or 5
  674. Force = Force or 50
  675. if Break == nil then
  676. Break = true
  677. end
  678. OnHit = OnHit or function(Part, Distance)
  679. --// oof
  680. end
  681.  
  682. local SearchRegion = Region3.new(Origin - Vector3.new(Radius, Radius, Radius),Origin + Vector3.new(Radius, Radius, Radius))
  683. local Parts = workspace:FindPartsInRegion3WithIgnoreList(SearchRegion, Ignore, 100)
  684.  
  685. for Index, Part in next, Parts do
  686. spawn(function()
  687. OnHit(Part, (Origin - Part.Position).magnitude)
  688. end)
  689. if not Part.Anchored then
  690. if Break then
  691. Part:BreakJoints()
  692. end
  693. local Direction = CFrame.new(Origin, Part.Position).lookVector * Force
  694. local Propell = Instance.new('BodyVelocity')
  695. Propell.Velocity = Direction
  696. Propell.Parent = Part
  697. spawn(function()
  698. game:GetService('RunService').Stepped:wait()
  699. Propell:Destroy()
  700. end)
  701. end
  702. end
  703. end
  704.  
  705. function NewFXBox(name,prnt)
  706. if prnt == nil then
  707. prnt = Character
  708. end
  709. local FXBox = Instance.new('Model', prnt)
  710. FXBox.Name = 'FXBox'
  711. if name then
  712. FXBox.Name = name
  713. end
  714. local Count = 0
  715. local Check
  716. Check = FXBox.ChildAdded:connect(function(Object)
  717. if Object:IsA'BasePart' then
  718. FXBox.PrimaryPart = Object
  719. Check:disconnect()
  720. end
  721. end)
  722. return FXBox
  723. end
  724.  
  725. function ReSurface(Part, Integer)
  726. if Part ~= nil and Part:IsA'BasePart' then
  727. Part.TopSurface = Integer
  728. Part.BottomSurface = Integer
  729. Part.LeftSurface = Integer
  730. Part.RightSurface = Integer
  731. Part.FrontSurface = Integer
  732. Part.BackSurface = Integer
  733. end
  734. end
  735.  
  736. function ni(name,prnt)
  737. return Instance.new(tostring(name),prnt)
  738. end
  739.  
  740. local FX = NewFXBox('FXBox', Character)
  741. function NewObject(Type, prnt, others)
  742. if not prnt then prnt = workspace end
  743. local New = ni(Type)
  744. if New:IsA'BasePart' then
  745. ReSurface(New,10)
  746. New.Anchored = true
  747. New.Size = vec3(1,1,1)
  748. New.CanCollide = false
  749. end
  750. for i,v in next, others do
  751. local suc,err = pcall(function()
  752. New[i] = v
  753. end)
  754. if not suc then
  755. print(err)
  756. end
  757. end
  758. New.Parent = prnt
  759. return New
  760. end
  761.  
  762. function NewPart(prnt)
  763. 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)})
  764. end
  765.  
  766. function OnHumanoidFind(Detector, Offset, Function, Range, Multi) --// R15 Support
  767. spawn(function()
  768. if not Multi then Multi = false end
  769. local PlayerModels={};
  770. local SearchAndStuff
  771. local First = true
  772. SearchAndStuff=function(Parent)
  773. for Index, Obj in next, Parent:children() do
  774. if Obj:IsA'Model' and Obj:FindFirstChild'Humanoid' then
  775. if Obj:FindFirstChild'HumanoidRootPart' and (Obj.HumanoidRootPart.CFrame.p-(Detector.CFrame*Offset).p).magnitude <= Range and Obj~=char then
  776. --print'derp'
  777. table.insert(PlayerModels, Obj)
  778. if First then
  779. if not Multi then
  780. First = false
  781. end
  782. pcall(function()
  783. Obj.Health.Disabled = true
  784. end)
  785. spawn(function()
  786. Function(Obj:WaitForChild'HumanoidRootPart', Obj:WaitForChild'Humanoid', Obj)
  787. end)
  788. end
  789. end
  790. end
  791. SearchAndStuff(Obj)
  792. end
  793. end
  794. SearchAndStuff(workspace)
  795. return PlayerModels
  796. end)
  797. end
  798.  
  799. function debri(item,time)
  800. return game:service'Debris':AddItem(item,time)
  801. end
  802.  
  803. local effects={MagicCircles={};};
  804. local trans={};
  805. local grows={}
  806.  
  807. function effects:MagicCircle(waitt, id, Offset,clr,sz)
  808. sz=sz or 4.5
  809. local mcPart=NewObject('Part', FX,{Transparency=1,Size=vec3(sz,sz,.2)})
  810. debri(mcPart, 40)
  811. clr=clr or 'Pearl'
  812. local mesh=NewObject('BlockMesh',mcPart,{Scale=vec3(1,1,0)})
  813. local backDecal=NewObject('Decal',mcPart,{Color3=bc(clr).Color,Face='Back',Texture=rbx..id})
  814. local frontDecal=NewObject('Decal',mcPart,{Color3=bc(clr).Color,Face='Front',Texture=rbx..id})
  815. local r=rand()
  816. local dir=5
  817. if r>.5 then dir=-5 end
  818. spawn(function()
  819. repeat lwait() until frontDecal.Parent==nil mcPart:Destroy()
  820. end)
  821. table.insert(effects.MagicCircles, {mcPart,backDecal,frontDecal,dir})
  822. mcPart.CFrame = Offset
  823. delay(waitt,function() trans[backDecal]={.05,1} trans[frontDecal]={.05,1}end)
  824. return mcPart,frontDecal,backDecal
  825. end
  826.  
  827. function effects:particle(waitt,mx,num, shape,Offset, clrz,cancollide)
  828. local sz={};
  829. if not clrz or #clrz < 1 then
  830. clrz={'Alder','Pearl'}
  831. end
  832. for i = .4,mx,.025 do table.insert(sz,i) end
  833. local tings={};
  834. for i = 1,num do
  835. local val = sz[rand(1,#sz)]
  836. 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)))})
  837. tings[i]=part
  838. delay(waitt,function() trans[part]={.05,1} end)
  839. end
  840. return tings
  841. end
  842.  
  843. function effects:Debris(cancollide, radius, mx, num, pos, waitt,velocitymax)
  844. local Ray = Ray.new(pos+vec3(0,1,0),vec3(0,-1,0)*5)
  845. local Ignore = {FX,Character}
  846. local Hit, Pos, SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  847. local tings={};
  848. if Hit then
  849. local sz={};
  850. for i = .2,mx,.025 do table.insert(sz,i) end
  851. for i = 1,num do
  852. local val = sz[rand(1,#sz)]
  853. local y = 45
  854. if not cancollide then y = 65 end
  855. local top,bottom=velocitymax[1],velocitymax[2]
  856. local x,z=rand(bottom,top),rand(bottom,top)
  857. 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)))})
  858. tings[i]=part
  859. if cancollide then
  860. delay(waitt,function() trans[part]={.05,1} end)
  861. end
  862. end
  863. return tings
  864. else
  865. --// Derp
  866. end
  867. end
  868.  
  869. function effects:Crown(waitt, origin, sz, height,clr, others,ut)
  870. local props={CanCollide=false,Anchored=true,Size=vec3(sz,height,sz),Color = bc(clr).Color, CFrame = origin*ang(0,rad(rand(-360,360)),0)}
  871. for i,v in next, others do
  872. props[i]=v
  873. end
  874. local cr=MeshEffects.Crown:Clone()
  875. for i,v in next, props do
  876. if tostring(i)~='Parent' then
  877. pcall(function() cr[i]=v end)
  878. end
  879. end
  880. cr.Parent=FX
  881. delay(waitt,function() trans[cr]={ut,1} end)
  882. return cr
  883. end
  884.  
  885. function effects:Ring(waitt, origin, sz, height,clr, slim, others,ut)
  886. local props={CanCollide=false,Anchored=true,Size=vec3(sz,height,sz),Color = bc(clr).Color, CFrame = origin*ang(0,rad(rand(-360,360)),0)}
  887. slim = slim or false
  888. others = others or {};
  889. for i,v in next, others do
  890. props[i]=v
  891. end
  892. local cr=MeshEffects[slim and 'Ring' or 'Donut']:Clone()
  893. for i,v in next, props do
  894. if tostring(i)~='Parent' then
  895. pcall(function() cr[i]=v end)
  896. end
  897. end
  898. cr.Parent=FX
  899. delay(waitt,function() trans[cr]={ut,1} end)
  900. return cr
  901. end
  902.  
  903. function effects:BlastRad(cancollide, radius, num, mx, pos, waitt)
  904. local Ray = Ray.new(pos+vec3(0,1,0),vec3(0,-1,0)*5)
  905. local Ignore = {FX,Character}
  906. local Hit, Pos, SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  907. local tings={};
  908. local org=mx/4
  909. mx=mx
  910. if Hit then
  911. local sz={};
  912. for i = .2,num,.025 do table.insert(sz,i) end
  913. for i = 1,360,mx do
  914. local val = sz[rand(1,#sz)]
  915. local function rr()
  916. local vlz={}
  917. for i = .45,1,.025 do table.insert(vlz,i) end
  918. return vlz[rand(1,#vlz)]
  919. end
  920. 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)))})
  921. tings[i]=part
  922. if cancollide then
  923. delay(waitt,function() trans[part]={.05,1} end)
  924. end
  925. end
  926. return tings
  927. else
  928. --// Derp
  929. end
  930. end
  931.  
  932. --[[ examples
  933. effects:BlastRad(true, 15, 2, 18, pos, .5)
  934.  
  935. effects:Debris(true, 2.5, 2, rand(10,20), pos, .5,{50,25})
  936.  
  937. effects:MagicCircle(.15,124339738, cf(0,-1.5,0))
  938.  
  939. effects:Particle(.5,1.2,rand(2,5),'Ball',cf(0,-1.5,0),{'Pearl','Pearl'})
  940. --]]
  941.  
  942. function SetSwordTransparency(Transparency, Speed)
  943. Speed = Speed or .5
  944. for Index, Obj in next, Parts do
  945. if Obj:IsDescendantOf(Melee) and Obj ~= SHA and Obj ~= trailTop and Obj ~= trailBottom then
  946. Tween(Obj, Speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, {Transparency = Transparency})
  947. end
  948. end
  949. lwait(Speed)
  950. end
  951.  
  952. function FadeSword(Type)
  953. if Type == 'Out' then
  954. snd(588738712,root,true)
  955. SetSwordTransparency(1, .5)
  956. elseif Type == 'In' then
  957. snd(588733880,root,true)
  958. SetSwordTransparency(0, .5)
  959. end
  960. if Type == 'In' or Type == 'Out' then
  961. --// asd
  962. else
  963. warn('Invalid Tween Type')
  964. end
  965. end
  966.  
  967. local function CalculateArc(Smoothness, From, To)
  968. local PeakFactor = 5
  969. local Peak, To = (From - To).magnitude / PeakFactor, To - Vector3.new(0, From.Y, 0)
  970. local Algorithm = math.abs(2 * (Peak * 2 - From.Y + To.Y))
  971. local Fraction, Last, Return = (1 / (Peak * PeakFactor)) / Smoothness, From, {};
  972. for Integer = 0, 1, Fraction do
  973. local New = CFrame.new(From:lerp(To, Integer) + Vector3.new(0, -Algorithm * Integer ^ 2 + Algorithm * Integer + From.Y, 0))
  974. Return[#Return + 1] = New.p
  975. end
  976. return Return
  977. end
  978.  
  979. local function DisplayArc(Arc)
  980. local Storage, Last = Instance.new('Folder', script), Arc[1]
  981. for Index, Point in next, Arc do
  982. if Index > 1 then
  983. local Part = Instance.new('Part')
  984. Part.Anchored = true
  985. Part.Material = 'Plastic'
  986. Part.BrickColor = BrickColor.new('Buttermilk')
  987. Part.TopSurface, Part.BottomSurface = 0, 0
  988. Part.CanCollide = false
  989. local Distance = (Last - Point).magnitude
  990. Part.Size = Vector3.new(.15, .15, Distance)
  991. Part.CFrame = CFrame.new(Point, Last) * CFrame.new(0, 0, -Distance / 2)
  992. Part.Parent = Storage
  993. end
  994. Last = Point
  995. end
  996. return Storage
  997. end
  998.  
  999. local function TweenC0(Obj, C0, Style, Direction, Time)
  1000. local S = type(Style) == 'string' and Enum.EasingStyle[Style] or Style
  1001. local D = type(Direction) == 'string' and Enum.EasingDirection[Direction] or Direction
  1002. return Tween(Obj, Time, S, D, {C0 = C0})
  1003. end
  1004.  
  1005. local function TweenJoints(Array)
  1006. local Style, Direction, Time = Array.Style, Array.Direction, Array.Time
  1007. TweenC0(torw, CFrame.new(0,0,0) * Array.Torso_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  1008. TweenC0(hedw, CFrame.new(0,0,0) * Array.Head_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  1009. TweenC0(law, CFrame.new(0,0,0) * Array.Left_Arm_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  1010. TweenC0(raw, CFrame.new(0,0,0) * Array.Right_Arm_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  1011. TweenC0(rlw, CFrame.new(0,0,0) * Array.Right_Leg_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  1012. TweenC0(llw, CFrame.new(0,0,0) * Array.Left_Leg_ * CFrame.Angles(0,0,0), Enum.EasingStyle[Style], Enum.EasingDirection[Direction], Time)
  1013. lwait(Time)
  1014. end
  1015.  
  1016. BindKey('Shatter', 'g', function()
  1017. local actual,floor = CheckIfLanded(5)
  1018. if floor ~= nil then
  1019. dkd,ds = true,true
  1020. walkspd=0
  1021. spawn(function()
  1022. FadeSword'Out'
  1023. end)
  1024. spawn(function()
  1025. TweenJoints{
  1026. Style = 'Quad',
  1027. Direction = 'InOut',
  1028. Time = 2,
  1029. 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),
  1030. 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),
  1031. 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),
  1032. 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),
  1033. 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),
  1034. 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),
  1035. }
  1036. end)
  1037. local s2=snd(588697034,root)
  1038. s2.Pitch=1
  1039. s2:Play()
  1040. for i = 1,3 do
  1041. lwait(.4)
  1042. local s = snd(588738949, root)
  1043. s.Pitch=1+(i/3)
  1044. s:Play()
  1045. effects:MagicCircle(2, 124339738, Right_Arm.CFrame*cf(0,1.25+i,0)*ang(rad(90),0,0),'Alder',.4+(i*2))
  1046. end
  1047. lwait(1)
  1048. local pe=effects:particle(.5,1.2,rand(2,5),'Cylinder',Right_Arm.CFrame*cf(0,1.25,0),{'Alder','Pearl'})
  1049. for i,v in next, pe do
  1050. v.Material='Neon'
  1051. v.Transparency=.5
  1052. end
  1053. TweenJoints{
  1054. Style = 'Bounce',
  1055. Direction = 'Out',
  1056. Time = .1,
  1057. 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),
  1058. 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),
  1059. 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),
  1060. 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),
  1061. 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),
  1062. 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),
  1063. }
  1064. Tween(s2, .1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, {Volume=0,Pitch=0})
  1065. lwait(.08)
  1066. OnHumanoidFind(root, cf(0,0,0), function(proot,phum,body)
  1067. local dmg = math.random(20,35)
  1068. phum.Health = phum.Health - dmg
  1069. showDmg(body, Character, dmg, {Rod=true,RodTrans=0,Crit=math.random()>.85})
  1070. phum.PlatformStand=proot:GetMass()<4 and true or false
  1071. delay(1,function()
  1072. phum.PlatformStand=false
  1073. end)
  1074. end, 15, true)
  1075. ExpellWithForce(Right_Arm.CFrame*cf(0,-.5,0), 15, math.random(30,80), function(Part, Distance)
  1076. end, false, {workspace:FindFirstChild'Base', Character})
  1077. local cr=effects:Crown(.5, cf((Right_Arm.CFrame*cf(0,-.5,0)).p), 10, 1, tostring(floor.BrickColor),{Material=floor.Material},.2)
  1078. local cr2=effects:Ring(0, cf((Right_Arm.CFrame*cf(0,-.5,0)).p), 10, 2, tostring(floor.BrickColor),false,{Material=floor.Material},.15)
  1079. table.insert(grows,{{cr},vec3(4,0,4)*4,ang(0,rad(10),0)})
  1080. table.insert(grows,{{cr2},vec3(2,0,2)*4,ang(0,0,0)})
  1081. s2:Destroy()
  1082. snd(610359590,root,true)
  1083. snd(610359515,root,true)
  1084. snd(471882019,root,true)
  1085. snd(284228088,root,true)
  1086. effects:Debris(true, 2.5, 2, rand(10,20), (Right_Arm.CFrame*CFrame.new(0,-1,0)).p, .5,{50,25})
  1087. effects:BlastRad(true, 10, 4, 6, (Right_Arm.CFrame*cf(0,-1,0)).p, .5)
  1088. lwait(.2)
  1089. dkd,ds = false,false
  1090. FadeSword'In'
  1091. end
  1092. end)
  1093.  
  1094. local canmine=true
  1095. BindKey('Mine', 'x', function(an,key)
  1096. if canmine then
  1097. canmine=false
  1098. ds,dkd = true,true
  1099. walkspd=0
  1100. TweenJoints{
  1101. Style = 'Quint',
  1102. Direction = 'In',
  1103. Time = .1,
  1104. 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),
  1105. 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),
  1106. Right_Leg_ = CFrame.new(4.7981739e-06, 1.08480453e-05, 3.81469727e-06, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994),
  1107. 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),
  1108. Head_ = CFrame.new(0, -6.10351563e-05, 0, 0.560465097, 0, 0.828179061, 0, 1, 0, -0.828179061, 0, 0.560465097),
  1109. Torso_ = CFrame.new(-1.1920929e-06, 0, 2.86102295e-06, 0.674415231, 0, -0.738352239, 0, 1, 0, 0.738352239, 0, 0.674415231),
  1110. }
  1111.  
  1112. for i=0,1,.1 do
  1113. FacePos(old)
  1114. lrs:wait()
  1115. end
  1116.  
  1117. lwait(.2)
  1118. for i=0,1,.1 do
  1119. FacePos(old)
  1120. end
  1121.  
  1122. local bl=NewPart(script)
  1123. bl.Color=c3(0,0,0)
  1124. bl.Size=Vector3.new(2,2,2)
  1125. bl.CFrame=larm.CFrame*cf(0,-1.5,0)
  1126. bl.Shape='Ball'
  1127. bl.Material='Neon'
  1128. bl.Transparency=.001
  1129. local active=true
  1130. spawn(function()
  1131. game.Debris:AddItem(bl,25)
  1132. delay(24,function()
  1133. active=false
  1134. local c=bl.CFrame
  1135. bl.CanCollide=false
  1136. Tween(bl,1,Enum.EasingStyle.Back,Enum.EasingDirection.In,{Size=Vector3.new(.05,.05,.05),CFrame=c,Transparency=1})
  1137. end)
  1138. local tic=0
  1139. local ontouch
  1140. ontouch=bl.Touched:connect(function(Hit)
  1141. if not Hit:IsDescendantOf(Character) then
  1142. bl.CanCollide=true
  1143. OnHumanoidFind(bl, cf(0,0,0), function(proot,phum,body)
  1144. local dmg = math.random(15,30)
  1145. phum.Health = phum.Health - dmg
  1146. hum.Health=hum.Health+15
  1147. showDmg(body, Character, 'LIFE STEAL '..dmg, {Rod=true,RodTrans=0,Crit=false})
  1148. end, 8, true)
  1149. snd(144699494,root,true)
  1150. snd(260433487,root,true)
  1151. local neww=bl:Clone()
  1152. neww.Color=c3(0,0,0)
  1153. local c=bl.CFrame
  1154. bl:Destroy()
  1155. neww.Parent=script
  1156. effects:particle(.5,7,rand(2,5),'Cylinder',c,{'Pearl','Alder'})
  1157. for i = 0,8,.45 do
  1158. neww.Transparency=neww.Transparency+.056274620146314
  1159. neww.Size=neww.Size:lerp(Vector3.new(2+i,2+i,2+i),.2)
  1160. neww.CFrame=c
  1161. lrs:wait()
  1162. end
  1163. neww:Destroy()
  1164. ontouch:disconnect()
  1165. neww.CFrame=c
  1166. end
  1167. end)
  1168. while lwait(.2) and bl and active do
  1169. if bl.Parent~=nil then
  1170. tic=tic+.1
  1171. if tic > .65 then
  1172. snd(171137312,bl,true)
  1173. OnHumanoidFind(bl, cf(0,0,0), function(proot,phum,body)
  1174. local took=math.random(5,20)
  1175. phum.Health = phum.Health - took
  1176. --hum.Health=hum.Health+took
  1177. showDmg(body, Character, took, {Rod=true,RodTrans=0,Crit=false})
  1178. end, 6, true)
  1179. local cr=effects:Crown(.1, cf(bl.Position)*cf(0,-3,0), 1, .25, 'Pearl',{Material='Neon'},.05)
  1180. local cr2=effects:Ring(.1, cf(bl.Position)*cf(0,-3.5,0), 2, .1, 'Pearl',true,{Material='Neon'},.05)
  1181. table.insert(grows,{{cr,cr2},vec3(.05,.005,.05)*3,ang(0,rad(1),0)})
  1182. tic=0
  1183. local neww=bl:Clone()
  1184. neww.Color=c3(1,1,1)
  1185. neww.Parent=script
  1186. local c=bl.CFrame
  1187. spawn(function()
  1188. for i = 0,3,.1 do
  1189. neww.Transparency=neww.Transparency+.0333
  1190. neww.Size=neww.Size:lerp(Vector3.new(2+i,2+i,2+i),.2)
  1191. neww.CFrame=c
  1192. lrs:wait()
  1193. end
  1194. neww:Destroy()
  1195. end)
  1196. end
  1197. end
  1198. end
  1199. ontouch:disconnect()
  1200. end)
  1201.  
  1202. snd(171137312,root,true)
  1203. snd(187747824,root,true)
  1204.  
  1205. spawn(function()
  1206. TweenJoints{
  1207. Style = 'Back',
  1208. Direction = 'Out',
  1209. Time = .1,
  1210. 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),
  1211. 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),
  1212. 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),
  1213. 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),
  1214. 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),
  1215. Torso_ = CFrame.new(-0.0166940689, -0.179999828, -0.0304899216, 0.861753821, 0, 0.507326901, 0, 1, 0, -0.507326901, 0, 0.861753821),
  1216. }
  1217. end)
  1218. local bv=Instance.new('BodyVelocity',root)
  1219. bv.MaxForce=vec3(9e9,0,9e9)
  1220. bv.Velocity=Head.CFrame.lookVector*-13
  1221. game.Debris:AddItem(bv,.2)
  1222. for i = 0,1,.2 do
  1223. local ptc1 = effects:particle(.1,.5,3,'Block',Left_Leg.CFrame*cf(0,-1,0),{'Really black','Really black', 'Pearl'})
  1224. local ptc2 = effects:particle(.1,.5,3,'Block',Right_Leg.CFrame*cf(0,-1,0),{'Really black','Really black', 'Pearl'})
  1225. local ss=1.6
  1226. table.insert(grows,{{ptc1},vec3(.2,0,.2),ang(rad(10),rad(10),rad(10))})
  1227. table.insert(grows,{{ptc2},vec3(.2,.2,.2),ang(rad(10),rad(10),rad(10))})
  1228. lrs:wait()
  1229. end
  1230. lwait()
  1231. ds,dkd = false,false
  1232. delay(0,function()
  1233. canmine=true
  1234. end)
  1235. end
  1236. end)
  1237.  
  1238. local cangrab=true
  1239. local grabbed=false
  1240. BindKey('Ward (wip)', 'e', function(_,key)
  1241. if not cangrab then return end
  1242. ds,dkd = true,true
  1243. walkspd = 7
  1244. SetSwordTransparency(1,.1)
  1245. local done=false
  1246. local wld=nil
  1247. spawn(function()
  1248. repeat lrs:wait()
  1249. local strt = Right_Arm.CFrame
  1250. local rayray = Ray.new(strt.p, (strt.p - (strt * CFrame.new(0, 1, 0)).p).unit * 1)
  1251. local hit, pp = workspace:FindPartOnRayWithIgnoreList(rayray, {Character})
  1252. if hit then
  1253. local first=true
  1254. OnHumanoidFind(Right_Arm, cf(0,-1,0), function(proot,phum,body)
  1255. if hit:IsDescendantOf(body) and first then
  1256. first=false
  1257. cangrab=false
  1258. local olds={};
  1259. spawn(function()
  1260. local r
  1261. r=function(p)
  1262. for i,v in next, p:children() do
  1263. if v:IsA'BasePart' then
  1264. olds[v]=v.CustomPhysicalProperties
  1265. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1266. end
  1267. r(v)
  1268. end
  1269. end
  1270. r(body)
  1271. end)
  1272. grabbed=true
  1273. local dist=((Right_Arm.CFrame*cf(0,-1,0)).p-(Right_Arm.CFrame*Right_Arm.CFrame:toObjectSpace(hit.CFrame)).p).magnitude
  1274. wld=Weld(Right_Arm,proot,cf(0,-1.25,0)*ang(-rad(90),rad(180),0))
  1275. local ev
  1276. ev=mouse.KeyDown:connect(function(k)
  1277. if k==key then
  1278. game.Debris:AddItem(wld,0)
  1279. ev:disconnect()
  1280. end
  1281. end)
  1282. spawn(function()
  1283. while wld.Parent~= nil and lrs:wait() do
  1284. phum.PlatformStand=true
  1285. end
  1286. grabbed=false
  1287. cangrab=true
  1288. for i,v in next, olds do
  1289. pcall(function()
  1290. i.CustomPhysicalProperties=v
  1291. end)
  1292. end
  1293. end)
  1294. end
  1295. end, 10, true)
  1296. end
  1297. until done or grabbed
  1298. end)
  1299. TweenJoints{
  1300. Style = 'Linear',
  1301. Direction = 'Out',
  1302. Time = .2,
  1303. 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),
  1304. 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),
  1305. 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),
  1306. 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),
  1307. 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),
  1308. 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),
  1309. }
  1310. lwait(.35)
  1311. done=true
  1312. SetSwordTransparency(0,.1)
  1313. ds,dkd = false,false
  1314. end)
  1315.  
  1316. BindKey('Reap (Buggy, wip)', 'z', function()
  1317. local actual,floor = CheckIfLanded(8)
  1318. if actual then
  1319. ds,dkd = true,true
  1320. local og=root.CFrame.Y
  1321. walkspd=0
  1322. spawn(function()
  1323. FadeSword'Out'
  1324. end)
  1325. TweenJoints{
  1326. Style = 'Quint',
  1327. Direction = 'InOut',
  1328. Time = 1.35,
  1329. 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),
  1330. 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),
  1331. Right_Leg_ = CFrame.new(4.19616699e-05, 0.12218833, -0.250127792, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 0.999999881),
  1332. Left_Leg_ = CFrame.new(4.19616699e-05, 0.867762089, 0.3243047, 1, 0, 0, 0, 0.664999247, -0.746844232, 0, 0.746844351, 0.664999068),
  1333. 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),
  1334. 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),
  1335. }
  1336. ExpellWithForce(root.CFrame*cf(0,-3,0), 15, -30, function(Part, Distance)
  1337. end, false, {workspace:FindFirstChild'Base', Character})
  1338. local cr2=effects:Ring(0, cf((Left_Leg.CFrame*cf(0,-.5,0)).p), 10, 2, tostring(floor.BrickColor),false,{Material=floor.Material},.15)
  1339. table.insert(grows,{{cr2},vec3(2,0,2)*4,ang(0,0,0)})
  1340. snd(875882348,root,true)
  1341. snd(875881806,root,true)
  1342. local bv=Instance.new('BodyVelocity',root)
  1343. bv.MaxForce=vec3(0,9e9,0)
  1344. bv.Velocity=vec3(0,300,0)
  1345. game.Debris:AddItem(bv,.1)
  1346. local pos=nil
  1347. local can=false
  1348. local elligable=false
  1349. local done=false
  1350. local failed=false
  1351. local tem=0
  1352. spawn(function()
  1353. repeat lrs:wait()
  1354. if root.CFrame.Y > og+15 then
  1355. elligable=true
  1356. end
  1357. tem=tem+1
  1358. if tem>300 then
  1359. done=true
  1360. print'rip'
  1361. failed=true
  1362. end
  1363. until torso.Velocity.Y < 2 or tem>300
  1364. done=true
  1365. if root.CFrame.Y > og+30 then
  1366. can=true
  1367. pos=Instance.new('BodyPosition',root)
  1368. pos.MaxForce=vec3(9e9,9e9,9e9)
  1369. pos.Position=root.Position
  1370. end
  1371. end)
  1372. TweenJoints{
  1373. Style = 'Linear',
  1374. Direction = 'InOut',
  1375. Time = .05,
  1376. 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),
  1377. 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),
  1378. 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),
  1379. 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),
  1380. 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),
  1381. 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),
  1382. }
  1383. repeat lrs:wait() until elligable or failed
  1384. if failed then
  1385. print'oof1'
  1386. FadeSword'In'
  1387. ds,dkd = false,false
  1388. game.Debris:AddItem(pos,.1)
  1389. return
  1390. end
  1391. snd(610359515,root,true,{Pitch=.75,Volume=3})
  1392. spawn(function()
  1393. TweenJoints{
  1394. Style = 'Quint',
  1395. Direction = 'InOut',
  1396. Time = 1,
  1397. 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),
  1398. 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),
  1399. 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),
  1400. 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),
  1401. 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),
  1402. 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),
  1403. }
  1404. end)
  1405. local ball = NewPart(script)
  1406. ball.Parent=nil
  1407. ball.CFrame=Left_Arm.CFrame*cf(0,-1,0)
  1408. ball.Material='Neon'
  1409. ball.Size=vec3(1,1,1)
  1410. ball.BrickColor=bc'Alder'
  1411. local msh=Instance.new('SpecialMesh',ball)
  1412. msh.Scale=vec3(1,1,1)
  1413. msh.MeshType='Sphere'
  1414. ball.Parent=script
  1415. local t=0
  1416. snd(782199941,root,true)
  1417. repeat lrs:wait()
  1418. t=t+1
  1419. ball.CFrame=Left_Arm.CFrame*cf(0,-1,0)
  1420. Tween(msh,.15,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=msh.Scale+vec3(1,1,1)})
  1421. if t>4 then
  1422. local bl = NewPart(script)
  1423. bl.Parent=nil
  1424. bl.CFrame=Left_Arm.CFrame*cf(rand(-3,3),-1+rand(-3,3),rand(-3,3))
  1425. bl.Material='Neon'
  1426. bl.Size=vec3(2,2,2)
  1427. bl.BrickColor=math.random()>.5 and bc'Alder' or bc'Pearl'
  1428. local msh2=Instance.new('SpecialMesh',bl)
  1429. msh2.MeshType='Sphere'
  1430. msh2.Scale=vec3(1,1,1)
  1431. bl.Parent=script
  1432. Tween(bl,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{CFrame=Left_Arm.CFrame*cf(0,-1,0)})
  1433. Tween(msh2,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=vec3(0,0,0)})
  1434. delay(.5, function()
  1435. bl:Destroy()
  1436. end)
  1437. end
  1438. until done
  1439. if not can or failed then
  1440. print'oof2'
  1441. FadeSword'In'
  1442. ds,dkd = false,false
  1443. game.Debris:AddItem(pos,.1)
  1444. game.Debris:AddItem(ball,.1)
  1445. return
  1446. end
  1447. FadeSword'In'
  1448. local beam = NewPart(script)
  1449. beam.Parent=nil
  1450. beam.Size=vec3(5,1,5)
  1451. beam.CFrame=Left_Arm.CFrame*cf(0,-1,0)
  1452. beam.Material='Neon'
  1453. beam.BrickColor=bc'Alder'
  1454. local cm = Instance.new('CylinderMesh',beam)
  1455. beam.Parent=script
  1456. local strt = root.CFrame
  1457. local rayray = Ray.new(strt.p, (strt.p - (strt * CFrame.new(0, 1, 0)).p).unit * 9e9)
  1458. local hit, pp = workspace:FindPartOnRayWithIgnoreList(rayray, {Character})
  1459. pos.D=0
  1460. pos.P=3e6
  1461. snd(763717897,root,true)
  1462. snd(395184130,root,true)
  1463. snd(782353117,root,true)
  1464. local tii=1
  1465. Tween(cm,tii,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=vec3(3,2048,3)})
  1466. Tween(beam,tii,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{CFrame=Left_Arm.CFrame*cf(0,-1025,0)})
  1467. Tween(pos,tii,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Position=pp+vec3(0,10,0)})
  1468. lwait(tii)
  1469. local ptc1 = effects:particle(.1,40,7,'Block',cf(pp+vec3(0,5,0)),{'Alder', 'Pearl'})
  1470. local ptc2 = effects:particle(.1,40,15,'Cylinder',cf(pp+vec3(0,5,0)),{'Alder', 'Pearl'})
  1471. for i,v in next, ptc1 do v.Material='Neon' end
  1472. for i,v in next, ptc2 do v.Material='Neon' end
  1473. table.insert(grows,{{ptc1},vec3(6,6,6),ang(rad(13),rad(13),rad(13))})
  1474. table.insert(grows,{{ptc2},vec3(-4,4,-4),ang(rad(13),rad(13),rad(13))})
  1475. lrs:wait()
  1476. beam:Destroy()
  1477. ball:Destroy()
  1478. OnHumanoidFind(root, cf(0,0,0), function(proot,phum,body)
  1479. local dmg = math.random(35,50)
  1480. phum.Health = phum.Health - dmg
  1481. pcall(function()
  1482. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=math.random()>.9})
  1483. end)
  1484. phum.PlatformStand=proot:GetMass()<4 and true or false
  1485. delay(1,function()
  1486. phum.PlatformStand=false
  1487. end)
  1488. end, 30, true)
  1489. ExpellWithForce(cf(pp), 25, 150, function(Part, Distance)
  1490. end, false, {workspace:FindFirstChild'Base', Character})
  1491. local cr=effects:Crown(2, cf(pp+vec3(0,5,0)), 5, 4, tostring(floor.BrickColor),{Material=floor.Material},.2)
  1492. local cr2=effects:Ring(2, cf(pp+vec3(0,5,0)), 10, 5, tostring(floor.BrickColor),false,{Material=floor.Material},.15)
  1493. table.insert(grows,{{cr},vec3(4,.1,4)*4,ang(0,rad(3),0)})
  1494. table.insert(grows,{{cr2},vec3(2,0,2)*4,ang(0,0,0)})
  1495. snd(875881806,root,true)
  1496. snd(782353260,root,true)
  1497. snd(284228088,root,true,{Volume=2})
  1498. snd(782200047,root,true)
  1499. snd(782202168,root,true)
  1500. effects:Debris(false, 2.5, 7, rand(10,20), pp+vec3(0,2,0), .05,{50,25})
  1501. effects:BlastRad(false, 15, 3, 6, pp+vec3(0,2,0), .05)
  1502. ds,dkd = false,false
  1503. hum.PlatformStand=false
  1504. --[[TweenJoints{
  1505. Style = 'Quint',
  1506. Direction = 'Out',
  1507. Time = .5,
  1508. Right_Arm_ = cf(0,0,0),
  1509. Left_Arm_ = cf(0,0,0),
  1510. Right_Leg_ = cf(0,0,0),
  1511. Left_Leg_ = cf(0,0,0),
  1512. Head_ = cf(0,0,0),
  1513. Torso_ = cf(0,0,0),
  1514. }--]]
  1515. game.Debris:AddItem(pos,.5)
  1516. end
  1517. end)
  1518.  
  1519. local clsr=true
  1520. BindKey('Incinerate', 'q', function()
  1521. if not clsr then return end
  1522. clsr=false
  1523. ds,dkd = true,true
  1524. walkspd=0
  1525. FadeSword'Out'
  1526. spawn(function()
  1527. TweenJoints{
  1528. Style = 'Quint',
  1529. Direction = 'Out',
  1530. Time = .45,
  1531. 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),
  1532. 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),
  1533. 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),
  1534. 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),
  1535. 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),
  1536. 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),
  1537. }
  1538. end)
  1539. for i=0,1,.05 do
  1540. FacePos'mouse'
  1541. lrs:wait()
  1542. end
  1543.  
  1544. local beam = NewPart(script)
  1545. beam.Parent=nil
  1546. beam.CFrame=Right_Arm.CFrame*cf(0,-1,0)
  1547. beam.Material='Neon'
  1548. beam.BrickColor=bc'Alder'
  1549. Instance.new('CylinderMesh',beam).Scale=Vector3.new(.05,1,.05)
  1550. beam.Parent=script
  1551. local canfrag=true
  1552. spawn(function()
  1553. while beam.Parent ~= nil and lwait(.25) do
  1554. canfrag=true
  1555. end
  1556. end)
  1557. snd(588734767,root,true,{Pitch=1.25})
  1558. snd(588736245,root,true)
  1559. local hums,bps = {},{};
  1560. local ignore={Character};
  1561. local replace
  1562. for i=0, 2048, 50 do
  1563. FacePos'mouse'
  1564. local StartPos = Left_Arm.CFrame*cf(0,-1,0)
  1565. local Ray = Ray.new(StartPos.p, (StartPos.p - (StartPos * CFrame.new(0, 1, 0)).p).unit * i)
  1566. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, ignore)
  1567. local dist = Hit and not Hit:IsDescendantOf(Character) and (Pos-StartPos.p).magnitude or i
  1568. beam.Size=vec3(.85,dist,1)
  1569. beam.CFrame=StartPos*cf(0,-(dist/2),0)
  1570. if Hit then
  1571. local ptc2 = effects:particle(.1,2,1,'Block',cf(Pos),{'Really black',tostring(Hit.BrickColor), 'Pearl'})
  1572. for i,v in next, ptc2 do v.Material='Neon' end
  1573. table.insert(grows,{{ptc2},vec3(1,0,1),ang(rad(10),rad(10),rad(10))})
  1574. if Hit and (Hit.Parent:FindFirstChildOfClass'Humanoid' or Hit.Parent.Parent:FindFirstChildOfClass'Humanoid') and #hums < 5 then
  1575. if Hit:GetMass()<=4 then
  1576. local bp = Instance.new('BodyPosition', Hit)
  1577. game.Debris:AddItem(bp,10)
  1578. local dist = (StartPos.p-Hit.Position).magnitude
  1579. bp.Position=(StartPos*cf(0,-dist,1)).p
  1580. spawn(function()
  1581. while lwait() and bp.Parent ~= nil do
  1582. local pos = ((replace or Left_Arm.CFrame)*cf(0,-1-dist,0)).p
  1583. bp.Position=pos
  1584. end
  1585. end)
  1586. table.insert(bps, bp)
  1587. end
  1588. local phum = Hit.Parent:FindFirstChildOfClass'Humanoid' or Hit.Parent.Parent:FindFirstChildOfClass'Humanoid' or Hit.Parent.Parent.Parent:FindFirstChildOfClass'Humanoid'
  1589. table.insert(ignore,phum.Parent)
  1590. hums[phum]=true
  1591. end
  1592. end
  1593. lrs:wait()
  1594. end
  1595. local pos = Left_Arm.CFrame*cf(0,-1,0)
  1596. ds,dkd = false,false
  1597. replace=Left_Arm.CFrame
  1598. FadeSword'In'
  1599.  
  1600. local b2 = beam:Clone()
  1601. b2.Mesh.Scale=vec3(2,1,2)
  1602. b2.Transparency=.8
  1603. local b3 = beam:Clone()
  1604. b3.Mesh.Scale=vec3(.3,1,.3)
  1605. b3.Transparency=1
  1606. b2.Parent,b3.Parent=script,script
  1607.  
  1608. Tween(b2.Mesh,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Scale=vec3(.45,1,.45)})
  1609. Tween(b2,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency=0})
  1610. Tween(b3.Mesh,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Scale=vec3(3,1,3)})
  1611. Tween(b3,.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency=.85})
  1612. snd(763718573,root,true)
  1613. lwait(.7)
  1614. --b2:Destroy();b3:Destroy()
  1615. snd(763717897, root, true)
  1616. snd(782354294, root,true)
  1617.  
  1618. for i = 1, 6, 1 do
  1619. local effected={};
  1620. for i,v in next, hums do
  1621. local can=true
  1622. for a,b in next, effected do
  1623. if b==i then
  1624. can=false
  1625. end
  1626. end
  1627. if can then
  1628. for a,b in next, bps do
  1629. if b:IsDescendantOf(i.Parent) and (b.Position-i.Parent:WaitForChild'Head'.Position).magnitude < 6 then
  1630. table.insert(effected,i)
  1631. local dmgg = rand(2, 4)*1
  1632. i:TakeDamage(dmgg)
  1633. showDmg(i.Parent, Character, dmgg, {Rod=false,RodTrans=0,Crit=rand()>.5})
  1634. spawn(function()
  1635. snd(588694531,i.Parent:WaitForChild'Head',true)
  1636. end)
  1637. end
  1638. end
  1639. end
  1640. end
  1641. local b4 = beam:Clone()
  1642. b4.Mesh.Scale=vec3(2,1,2)
  1643. b4.Transparency=.2
  1644. b4.Parent=script
  1645.  
  1646. local cone = MeshEffects.Cone:Clone()
  1647. cone.CFrame = pos*cf(0,1.25,0)
  1648. cone.Anchored=true
  1649. cone.BrickColor=bc'Pearl'
  1650. cone.CanCollide=false
  1651. cone.Material='Neon'
  1652. cone.Transparency=.2
  1653. cone.Parent=script
  1654. Tween(cone,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency = 1, Size=vec3(15,4,15)/2.5})
  1655.  
  1656. local cone2 = MeshEffects.Cone:Clone()
  1657. cone2.CFrame = pos*cf(0,1.5,0)
  1658. cone2.Anchored=true
  1659. cone2.BrickColor=bc'Alder'
  1660. cone2.CanCollide=false
  1661. cone2.Material='Neon'
  1662. cone2.Transparency=.2
  1663. cone2.Parent=script
  1664. Tween(cone2,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency = 1, Size=vec3(15,4,15)/1.25})
  1665.  
  1666. Tween(b4.Mesh,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Scale=vec3(15,1,15)})
  1667. Tween(b4,.65,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,{Transparency=1})
  1668. delay(.65,function()
  1669. b4:Destroy();cone:Destroy()
  1670. end)
  1671. lwait(.6)
  1672. end
  1673. b2:Destroy();b3:Destroy()
  1674. for i,v in next, bps do
  1675. v:Destroy()
  1676. end
  1677. delay(5,function()
  1678. clsr=true
  1679. end)
  1680. beam:Destroy()
  1681. end)
  1682.  
  1683. BindKey('Buster', 'r', function(_,k)
  1684. dkd,ds=true,true
  1685. local fire=false
  1686. local ev
  1687. walkspd=0
  1688. ev=mouse.KeyUp:connect(function(key)
  1689. if k==key then
  1690. fire=true
  1691. ev:disconnect()
  1692. end
  1693. end)
  1694. walkspd=0
  1695. local tweened=false
  1696. spawn(function()
  1697. TweenC0(shw, cf(0,0,0)*ang(0,rad(45),rad(70)), 'Quint', 'Out', 1)
  1698. TweenJoints{
  1699. Style = 'Quint',
  1700. Direction = 'Out',
  1701. Time = 1,
  1702. 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),
  1703. 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),
  1704. 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),
  1705. 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),
  1706. Head_ = CFrame.new(4.76837158e-07, 0, -2.86102295e-06, 0.117187969, 0, 0.993109763, 0, 1, 0, -0.993109763, 0, 0.117187969),
  1707. Torso_ = CFrame.new(0.0551037788, -0.53477335, -1.43051147e-06, 0.117187969, 0, -0.993109763, 0, 1, 0, 0.993109763, 0, 0.117187969),
  1708. }
  1709. tweened=true
  1710. end)
  1711. repeat lrs:wait() FacePos'mouse'
  1712. until fire and tweened
  1713. dkd,ds=false,false
  1714. local to = mouse.Hit.p
  1715. local from = (Left_Arm.CFrame*cf(0,-1.5,1.25)).p
  1716. local Arc = CalculateArc(.5, from, to)
  1717. --local Segment = DisplayArc(Arc)
  1718. 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'})
  1719. local msh=Instance.new('SpecialMesh',Ball)
  1720. msh.MeshType='Sphere'
  1721. msh.Scale=vec3(1,1,1)
  1722. local loop=snd(228343433,Ball,true,{Pitch=2,Volume=3,Looped=true})
  1723. snd(231917750,root,true,{Pitch=.9})
  1724. local finished=false
  1725. spawn(function()
  1726. local t=0
  1727. local lcf=Arc[1]
  1728. repeat lrs:wait()
  1729. t=t+1
  1730. Tween(msh,.15,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=msh.Scale.Y < 5 and msh.Scale+vec3(1,1,1) or msh.Scale})
  1731. if t > 10 then
  1732. t=0
  1733. local ri=effects:Ring(.5, cf(lcf,Ball.Position)*ang(rad(90),0,0), 1, .5, 'Alder', true,{Material='Neon'},.15)
  1734. table.insert(grows,{{ri},vec3(.15,0,.15)*4,ang(0,0,0)})
  1735. end
  1736. lcf=Ball.Position
  1737. spawn(function()
  1738. local bl = NewPart(script)
  1739. bl.Parent=nil
  1740. local random = vec3(rand(-3,3),rand(-3,3),rand(-3,3))
  1741. bl.CFrame=Ball.CFrame*cf(random*(msh.Scale.Y/2))
  1742. bl.Material='Neon'
  1743. bl.Size=vec3(1,1,1)
  1744. bl.BrickColor=math.random()>.5 and bc'Alder' or bc'Pearl'
  1745. local msh2=Instance.new('SpecialMesh',bl)
  1746. msh2.MeshType='Sphere'
  1747. msh2.Scale=msh.Scale/2
  1748. bl.Parent=script
  1749. Tween(bl,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{CFrame=Ball.CFrame})
  1750. Tween(msh2,.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,{Scale=vec3(0,0,0)})
  1751. delay(.5, function()
  1752. bl:Destroy()
  1753. end)
  1754. end)
  1755. until finished
  1756. end)
  1757. for i,v in next, Arc do
  1758. Tween(Ball, .025, 'Linear', 'InOut', {CFrame = cf(v)})
  1759. lrs:wait()
  1760. end
  1761. finished=true
  1762. Ball.Transparency=1
  1763. loop:Stop()
  1764. local strt = cf(to)*cf(0,3,0)
  1765. local rayray = Ray.new(strt.p, (strt.p - (strt * CFrame.new(0, 1, 0)).p).unit * 10)
  1766. local hit, pp = workspace:FindPartOnRayWithIgnoreList(rayray, {Character})
  1767. game.Debris:AddItem(Ball,3)
  1768. snd(610359515,Ball,true)
  1769. local ptc1 = effects:particle(.1,.5,5,'Block', cf(to),{'Alder','Pearl'})
  1770. local ptc2 = effects:particle(.1,.5,5,'Cylinder',cf(to),{'Alder', 'Pearl'})
  1771. local ss=10
  1772. 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
  1773. 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
  1774. OnHumanoidFind(Ball,cf(0,0,0), function(proot,phum,body)
  1775. local dmg = math.random(8,16)
  1776. phum.Health = phum.Health - dmg
  1777. pcall(function()
  1778. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=false})
  1779. end)
  1780. phum.PlatformStand=proot:GetMass()<4 and true or false
  1781. delay(.25,function()
  1782. phum.PlatformStand=false
  1783. end)
  1784. end, 20, true)
  1785. ExpellWithForce(strt, 10, 15, function(Part, Distance)
  1786. end, false, {workspace:FindFirstChild'Base', Character})
  1787. 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)
  1788. 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)
  1789. table.insert(grows,{{ri},vec3(.5,0,.5)*4,ang(0,0,0)})
  1790. table.insert(grows,{{cr},vec3(.5,0,.5)*4,ang(0,rad(3),0)})
  1791. snd(782202168,Ball,true)
  1792. snd(228343412,Ball,true)
  1793. snd(231917742,Ball,true)
  1794. effects:Debris(true, 2.5, 2, rand(5,10), to, .005,{50,25})
  1795. --effects:BlastRad(true, 15, 3, 5, to, .05)
  1796. end)
  1797.  
  1798. function Attack4()
  1799. dkd,ds = true,true
  1800. TweenJoints{
  1801. Style = 'Quint',
  1802. Direction = 'Out',
  1803. Time = .5,
  1804. Right_Arm_ = cf(0,0,0),
  1805. Left_Arm_ = cf(0,0,0),
  1806. Right_Leg_ = cf(0,0,0),
  1807. Left_Leg_ = cf(0,0,0),
  1808. Head_ = cf(0,0,0),
  1809. Torso_ = cf(0,0,0),
  1810. }
  1811. TweenJoints{
  1812. Style = 'Quint',
  1813. Direction = 'Out',
  1814. Time = .5,
  1815. Right_Arm_ = cf(0,0,0),
  1816. Left_Arm_ = cf(0,0,0),
  1817. Right_Leg_ = cf(0,0,0),
  1818. Left_Leg_ = cf(0,0,0),
  1819. Head_ = cf(0,0,0),
  1820. Torso_ = cf(0,0,0),
  1821. }
  1822. dkd,ds = false,false
  1823. end
  1824.  
  1825. function Attack2()
  1826. dkd,ds = true,true
  1827. TweenJoints{
  1828. Style = 'Quint',
  1829. Direction = 'Out',
  1830. Time = .5,
  1831. Right_Arm_ = cf(0,0,0),
  1832. Left_Arm_ = cf(0,0,0),
  1833. Right_Leg_ = cf(0,0,0),
  1834. Left_Leg_ = cf(0,0,0),
  1835. Head_ = cf(0,0,0),
  1836. Torso_ = cf(0,0,0),
  1837. }
  1838. TweenJoints{
  1839. Style = 'Quint',
  1840. Direction = 'Out',
  1841. Time = .5,
  1842. Right_Arm_ = cf(0,0,0),
  1843. Left_Arm_ = cf(0,0,0),
  1844. Right_Leg_ = cf(0,0,0),
  1845. Left_Leg_ = cf(0,0,0),
  1846. Head_ = cf(0,0,0),
  1847. Torso_ = cf(0,0,0),
  1848. }
  1849. dkd,ds = false,false
  1850. end
  1851.  
  1852. function Attack3()
  1853. dkd,ds = true,true
  1854. TweenJoints{
  1855. Style = 'Quint',
  1856. Direction = 'Out',
  1857. Time = .5,
  1858. Right_Arm_ = cf(0,0,0),
  1859. Left_Arm_ = cf(0,0,0),
  1860. Right_Leg_ = cf(0,0,0),
  1861. Left_Leg_ = cf(0,0,0),
  1862. Head_ = cf(0,0,0),
  1863. Torso_ = cf(0,0,0),
  1864. }
  1865. TweenJoints{
  1866. Style = 'Quint',
  1867. Direction = 'Out',
  1868. Time = .5,
  1869. Right_Arm_ = cf(0,0,0),
  1870. Left_Arm_ = cf(0,0,0),
  1871. Right_Leg_ = cf(0,0,0),
  1872. Left_Leg_ = cf(0,0,0),
  1873. Head_ = cf(0,0,0),
  1874. Torso_ = cf(0,0,0),
  1875. }
  1876. dkd,ds = false,false
  1877. end
  1878.  
  1879. function Attack1()
  1880. dkd,ds = true,true
  1881. TweenC0(shw, ang(0,-rad(180),rad(135)), 'Linear', 'Out', .05)
  1882. TweenJoints{
  1883. Style = 'Quint',
  1884. Direction = 'Out',
  1885. Time = .15,
  1886. 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),
  1887. 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),
  1888. 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),
  1889. 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),
  1890. 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),
  1891. 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),
  1892. }
  1893. TweenC0(shw, ang(0,-rad(180),-rad(135)), 'Linear', 'Out', .4)
  1894. snd(588693156,root,true)
  1895. TweenJoints{
  1896. Style = 'Linear',
  1897. Direction = 'Out',
  1898. Time = .15,
  1899. 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),
  1900. 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),
  1901. 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),
  1902. 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),
  1903. 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),
  1904. 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),
  1905. }
  1906. local poss = SHA.CFrame
  1907. local offset = root.CFrame:toObjectSpace(SHA.CFrame)
  1908. shw:Destroy()
  1909. SHA.CFrame=poss
  1910. SHA.Anchored=true
  1911. local done=false
  1912. local half=false
  1913. OnHumanoidFind(SHA, cf(0,0,0), function(proot,phum,body)
  1914. local dmg = math.random(5,13)
  1915. phum.Health = phum.Health - dmg
  1916. pcall(function()
  1917. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=math.random()>.9})
  1918. end)
  1919. end, 7, true)
  1920. spawn(function()
  1921. while lwait(.5) and not done do
  1922. OnHumanoidFind(SHA, cf(0,0,0), function(proot,phum,body)
  1923. local dmg = math.random(3,7)
  1924. phum.Health = phum.Health - dmg
  1925. pcall(function()
  1926. showDmg(body, Character, dmg, {Rod=false,RodTrans=0,Crit=math.random()>.9})
  1927. end)
  1928. end, 7, true)
  1929. end
  1930. end)
  1931. trail=true
  1932. spawn(function()
  1933. repeat lrs:wait();lrs:wait();lrs:wait()
  1934. --local ptc1 = effects:particle(.1,.5,1,'Block', SHI.CFrame,{'Alder', 'Pearl'})
  1935. local ptc2 = effects:particle(.1,.5,2,'Cylinder',SHI.CFrame,{'Alder', 'Pearl'})
  1936. local ss=3.4
  1937. --for i,v in next, ptc1 do Tween(v, 1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, {Size=Vector3.new(ss,ss,ss)}) end
  1938. for i,v in next, ptc2 do Tween(v, 1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, {Size=Vector3.new(ss,ss,ss)}) end
  1939. until done
  1940. end)
  1941. spawn(function()
  1942. snd(233856097,root,true)
  1943. local lp = snd(235097691,root,true,{Pitch=.45,Looped=true})
  1944. for i = 0,360,10 do
  1945. 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))
  1946. SHA.CFrame = set
  1947. lrs:wait()
  1948. end
  1949. for i = 0,200,10 do
  1950. 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))
  1951. SHA.CFrame = set
  1952. lrs:wait()
  1953. end
  1954. half=true
  1955. for i = 200,360,10 do
  1956. 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))
  1957. SHA.CFrame = set
  1958. lrs:wait()
  1959. end
  1960. lp:Destroy()
  1961. done=true
  1962. trail=false
  1963. end)
  1964. lwait(.3)
  1965. TweenJoints{
  1966. Style = 'Quint',
  1967. Direction = 'In',
  1968. Time = .3,
  1969. 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),
  1970. 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),
  1971. 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),
  1972. 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),
  1973. 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),
  1974. 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),
  1975. }
  1976. snd(588693579,root,true)
  1977. TweenJoints{
  1978. Style = 'Linear',
  1979. Direction = 'Out',
  1980. Time = .2,
  1981. 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),
  1982. 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),
  1983. 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),
  1984. 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),
  1985. 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),
  1986. 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),
  1987. }
  1988. OnHumanoidFind(Left_Arm, cf(0,0,0), function(proot,phum,body)
  1989. local dmg = math.random(3,9) * (rand()>.8 and 2 or 1)
  1990. phum.Health = phum.Health - dmg
  1991. pcall(function()
  1992. showDmg(body, Character, dmg, {Rod=true,RodTrans=0,Crit=dmg>9})
  1993. end)
  1994. end, 10, true)
  1995. repeat lrs:wait() until half
  1996. TweenJoints{
  1997. Style = 'Linear',
  1998. Direction = 'Out',
  1999. Time = .15,
  2000. 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),
  2001. 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),
  2002. 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),
  2003. 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),
  2004. 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),
  2005. 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),
  2006. }
  2007. snd(231917871,root,true)
  2008. repeat lrs:wait() until done
  2009. SHA.Anchored=false
  2010. shw = Weld(Right_Arm, SHA, Right_Arm.CFrame:toObjectSpace(SHA.CFrame))
  2011. Tween(shw,.25/2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,{C1=cf(0,-1,0)*ang(0,-rad(0),-rad(90))})
  2012. lwait(.25/2)
  2013. Tween(shw,.25/2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,{C1=cf(0,-1,0)*ang(0,-rad(90),-rad(90))})
  2014. lwait(.25/2)
  2015. dkd,ds = false,false
  2016. end
  2017.  
  2018.  
  2019. hum.MaxHealth = Max_Health
  2020. lwait(.1)
  2021. hum.Health = Max_Health
  2022. HumanoidRootPart.Transparency = 1
  2023.  
  2024. local debvals={};
  2025. debvals['CLEAN']=0
  2026. debvals['walkparticles']=0
  2027. local Handle = function()
  2028. spawn(function()
  2029. for i,v in next, effects.MagicCircles do
  2030. if v[1].Parent ~= nil then
  2031. v[1].CFrame = lerp(v[1].CFrame, v[1].CFrame * CFrame.Angles(0,0,rad(v[4])), .9)
  2032. else
  2033. --table.remove(effects.MagicCircles,i)
  2034. effects.MagicCircles[i]=nil
  2035. end
  2036. end
  2037. end)
  2038. spawn(function()
  2039. for ting,data in next, trans do
  2040. if ting.Transparency~=nil and ting.Transparency < data[2] then
  2041. --print(ting.Transparency,data[2])
  2042. ting.Transparency=ting.Transparency+data[1]
  2043. elseif ting.Transparency >= tonumber(data[2]) and ting.Parent ~= nil then
  2044. --print'ded'
  2045. trans[ting]=nil
  2046. ting:Destroy()
  2047. end
  2048. end
  2049. end)
  2050. spawn(function()
  2051. for a,b in next, grows do
  2052. if a==grows[15] then
  2053. grows={};
  2054. for i,v in next, grows do
  2055. grows[i]=v
  2056. end
  2057. print'ded'
  2058. else
  2059. if #b > 1 then
  2060. for __,v in next, b[1] do
  2061. if v.Parent ~= nil then
  2062. if v.Transparency > 1 then
  2063. v:Destroy()
  2064. else
  2065. local c=v.CFrame
  2066. v.Size=v.Size+b[2] or vec3(b[2],b[2],b[2]) or vec3(0,0,0)
  2067. v.CFrame=c*b[3] or cf(0,0,0)
  2068. end
  2069. else
  2070. b[1][__]=nil
  2071. end
  2072. end
  2073. else
  2074. grows[a]=nil
  2075. end
  2076. end
  2077. end
  2078. end)
  2079. local actual,floor = CheckIfLanded(5)
  2080. if debvals['CLEAN'] > 40 then
  2081. debvals['CLEAN']=0
  2082. grows={};
  2083. trans={};
  2084. effects.MagicCircles={};
  2085. for i,v in next, FX:children() do
  2086. v:Destroy()
  2087. end
  2088. end
  2089. for i,v in next,debvals do
  2090. debvals[i]=v+.1
  2091. --print(i,v)
  2092. end
  2093. end
  2094.  
  2095. --_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
  2096.  
  2097. Mouse.KeyDown:connect(function(Key)
  2098. if Key:byte() == 48 then
  2099. Walking = false
  2100. elseif Key:byte() == 93 then
  2101. table.foreach(keyz,print)
  2102. end
  2103. end)
  2104.  
  2105. Mouse.KeyUp:connect(function(Key)
  2106. if Key:byte() == 48 then
  2107. Walking = true
  2108. end
  2109. end)
  2110.  
  2111. local ComboResetTime,canatk = .1,true
  2112. local combo = 0
  2113. local output_clicks = false
  2114.  
  2115. function ComboUp()
  2116. if dkd == true then return end
  2117. if combo == 0 and canatk == true then
  2118. canatk = false
  2119. Attack1()
  2120. combo = 1
  2121. canatk = true
  2122. spawn(function()
  2123. ds = true
  2124. lwait(ComboResetTime)
  2125. if canatk == true then
  2126. ds = false
  2127. end
  2128. if combo == 1 and not ds then
  2129. combo = 0
  2130. end
  2131. end)
  2132. return
  2133. end
  2134. if combo == 1 and canatk == true then
  2135. canatk = false
  2136. --print'2'
  2137. Attack2()
  2138. combo = 2
  2139. canatk = true
  2140. spawn(function()
  2141. ds = true
  2142. lwait(ComboResetTime)
  2143. if canatk == true then
  2144. ds = false
  2145. end
  2146. if combo == 2 and not ds then
  2147. combo = 0
  2148. end
  2149. end)
  2150. return
  2151. end
  2152. if combo == 2 and canatk == true then
  2153. canatk = false
  2154. Attack3()
  2155. combo = 3
  2156. canatk = true
  2157. spawn(function()
  2158. ds = true
  2159. lwait(ComboResetTime)
  2160. if canatk == true then
  2161. ds = false
  2162. end
  2163. if combo == 3 and not ds then
  2164. combo = 0
  2165. end
  2166. end)
  2167. return
  2168. end
  2169. if combo == 3 and canatk == true then
  2170. canatk = false
  2171. Attack4()
  2172. combo = 0
  2173. lwait(ComboResetTime)
  2174. canatk = true
  2175. spawn(function()
  2176. if canatk == true then
  2177. ds = false
  2178. end
  2179. if combo == 0 and not ds then
  2180. combo = 0
  2181. end
  2182. end)
  2183. return
  2184. end
  2185. end
  2186.  
  2187. mouse.Button1Down:connect(function()
  2188. ComboUp()
  2189. end)
  2190.  
  2191. local can=true
  2192. function FootStep()
  2193. if root.CFrame.Y < -10 then
  2194. root.CFrame = cf(rand(-10, 10), 5, rand(-10, 10))
  2195. end
  2196. if can then
  2197. --// continue
  2198. else
  2199. return
  2200. end
  2201. can=false
  2202. delay(.2,function()
  2203. can=true
  2204. end)
  2205. local ping = Instance.new('Sound',Torso)
  2206. local ov = .5
  2207. local pitches={}
  2208. for i = -.05,.05,.005 do table.insert(pitches,1+i) end
  2209. ping.Volume = .25/ov
  2210. game:service'RunService'.RenderStepped:wait()
  2211. local ray = Ray.new(HumanoidRootPart.CFrame.p,(HumanoidRootPart.CFrame.p-(HumanoidRootPart.CFrame*cf(0,2.5,0)).p).unit*3.15)
  2212. local Hit,Pos = workspace:FindPartOnRayWithIgnoreList(ray, {Char})
  2213. if Hit and (Hit:IsDescendantOf(Character) == false) then
  2214. local num=0
  2215. if Hit.Material == Enum.Material.Plastic or Hit.Material == Enum.Material.SmoothPlastic then
  2216. local ss={379483672, 379398649};
  2217. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2218. ping.Pitch = pitches[math.random(1,#pitches)]
  2219. ping:Play()
  2220. return
  2221. end
  2222. if Hit.Material == Enum.Material.Grass then
  2223. ping.SoundId = rbx..379482039
  2224. ping.Volume = .05/ov
  2225. ping.Pitch = pitches[math.random(1,#pitches)]
  2226. ping:Play()
  2227. return
  2228. end
  2229. if Hit.Material == Enum.Material.Neon then
  2230. ping.SoundId = rbx..236989198
  2231. ping.Volume = 1/ov
  2232. ping.Pitch = pitches[math.random(1,#pitches)]
  2233. local ping2 = Instance.new('Sound',Torso)
  2234. ping2.Volume = .075/ov
  2235. ping2.SoundId = rbx..379482691
  2236. ping2.Pitch = pitches[math.random(1,#pitches)]
  2237. ping:Play()
  2238. ping2:Play()
  2239. return
  2240. end
  2241. if Hit.Material == Enum.Material.Metal or Hit.Material == Enum.Material.DiamondPlate or Hit.Material == Enum.Material.CorrodedMetal then
  2242. local ss={379482691,};
  2243. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2244. ping.Volume = .5/ov
  2245. ping.Pitch = pitches[math.random(1,#pitches)]
  2246. ping:Play()
  2247. return
  2248. end --510932495
  2249. if Hit.Material == Enum.Material.WoodPlanks or Hit.Material == Enum.Material.Wood then
  2250. local ss={ 379484117};
  2251. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2252. ping.Volume = .15/ov
  2253. ping.Pitch = pitches[math.random(1,#pitches)]
  2254. ping:Play()
  2255. return
  2256. end
  2257. if Hit.Material == Enum.Material.Ice or Hit.Material == Enum.Material.Foil then
  2258. local ss={ 510932495};
  2259. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2260. ping.Volume = .5/ov
  2261. ping.Pitch = pitches[math.random(1,#pitches)]
  2262. ping:Play()
  2263. return
  2264. end
  2265. if Hit.Material == Enum.Material.Fabric or Hit.Material == Enum.Material.Sand or Hit.Name == 'Snow' then
  2266. --warn'derp'
  2267. local ss={145536125,145536149};
  2268. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2269. ping.Pitch = pitches[math.random(1,#pitches)]
  2270. ping:Play()
  2271. return
  2272. end
  2273. 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
  2274. local ss={379483672, 379398649};
  2275. ping.SoundId = rbx..ss[math.random(1,#ss)]
  2276. ping.Volume = .5/ov
  2277. ping.Pitch = pitches[math.random(1,#pitches)]
  2278. ping:Play()
  2279. return
  2280. end
  2281. end
  2282. end
  2283.  
  2284. local upv=0
  2285.  
  2286. srs:connect(function()
  2287. sine = tick() * (change * 25)
  2288. Handle()
  2289. end)
  2290.  
  2291. local once=false
  2292. lrs:connect(function()
  2293. Trail.Enabled=trail
  2294. Landed = CheckIfLanded()
  2295. hum.PlatformStand = false
  2296. if ds then
  2297. if Mode == 'Running' and not once then
  2298. once=true
  2299. spawn(function()
  2300. FadeSword'In'
  2301. end)
  2302. end
  2303. return
  2304. end
  2305. hum.JumpPower = 0
  2306. hum.Jump=false
  2307. hum.WalkSpeed = hum.WalkSpeed + (walkspd - hum.WalkSpeed) * .1;
  2308. walkspd=7
  2309. if not Walking then
  2310. walkspd = 25
  2311. end
  2312. local tmag_xz = (torso.Velocity*vec3(1, 0, 1)).magnitude
  2313. local tmag_y = torso.Velocity.Y
  2314. local trot = torso.RotVelocity.Y/50
  2315. local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z)
  2316. local TiltOnAxis = (root.CFrame-root.CFrame.p):inverse()*speed/200
  2317. local Tilt = ang(TiltOnAxis.Z,-TiltOnAxis.X,-TiltOnAxis.X)
  2318. if Landed == false then
  2319. State, Mode = 'Falling', 'Normal'
  2320. elseif tmag_xz < 3 then
  2321. State, Mode = 'Idle', 'Normal'
  2322. elseif tmag_xz >= 4 then
  2323. State = 'Walking'
  2324. if tmag_xz > 20 then
  2325. Mode = 'Running'
  2326. else
  2327. Mode = 'Normal'
  2328. end
  2329. end
  2330. local RestoreDefault = function(Current)
  2331. Current = Current or State
  2332. local Current2 = Mode
  2333. if LastMode ~= Current2 then
  2334. if Current2 == 'Running' then
  2335. spawn(function()
  2336. FadeSword'Out'
  2337. end)
  2338. elseif Current2 ~= 'Running' or once then
  2339. spawn(function()
  2340. FadeSword'In'
  2341. end)
  2342. end
  2343. LastMode = Current2
  2344. end
  2345. if LastState ~= Current then
  2346. LastState = Current
  2347. sine = 0
  2348. end
  2349. end
  2350. once=false
  2351. local Default_Anims = function()
  2352. local animspd = .1
  2353. local Right_Arm_ = cf(0,0,0)
  2354. local Left_Arm_ = cf(0,0,0)
  2355. local Right_Leg_ = cf(0,0,0)
  2356. local Left_Leg_ = cf(0,0,0)
  2357. local Head_ = cf(0,0,0)
  2358. local Torso_ = cf(0,0,0)
  2359.  
  2360. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2361. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2362. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2363. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2364. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2365. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2366. end
  2367. if State == 'Falling' and ds == false then
  2368. local animspd = .3
  2369. change = 1
  2370. local Right_Arm_ = cf(0,0,0)
  2371. local Left_Arm_ = cf(0,0,0)
  2372. local Right_Leg_ = cf(0,0,0)
  2373. local Left_Leg_ = cf(0,0,0)
  2374. local Head_ = cf(0,0,0)
  2375. local Torso_ = cf(0,0,0)
  2376.  
  2377. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2378. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2379. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2380. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2381. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2382. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2383. elseif State == 'Idle' and ds == false then
  2384. RestoreDefault()
  2385. if Mode == 'Normal' and ds == false then
  2386. local animspd = .125
  2387. change = .35
  2388. 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)
  2389. 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)
  2390. 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)
  2391. 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)
  2392. 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)
  2393. local Torso_ = CFrame.new(0.0059170723, -0.182877302, -0.00212669373, 0.392511159, 0, -0.919747353, 0, 1, 0, 0.919747353, 0, 0.392511159)
  2394.  
  2395. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2396. hedw.C0 = lerp(hedw.C0, cf(0,0,-cos(sine/8)/16)*Head_*ang(cos(sine/8)/16,0,0),animspd)
  2397. 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)
  2398. 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)
  2399. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2400. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2401. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2402. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2403. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,-rad(15),rad(70)), animspd)
  2404. else
  2405. Default_Anims()
  2406. warn'Idle: Unknown Mode Used'
  2407. end
  2408. elseif State == 'Walking' and ds == false then
  2409. RestoreDefault()
  2410. if Mode == 'Normal' and ds == false then
  2411. local up = sin(sine/6)
  2412. if math.abs(up)>=.995 then
  2413. local actual,floor = CheckIfLanded(7)
  2414. local clrs={'Really black','Pearl'}
  2415. local mtrl='Neon'
  2416. local ss = 3
  2417. if actual then
  2418. clrs={tostring(floor.BrickColor)}
  2419. mtrl=floor.Material
  2420. end
  2421. FootStep()
  2422. if up > 0 then
  2423.  
  2424. else
  2425.  
  2426. end
  2427. end
  2428. local animspd = .25
  2429. change = 1.4
  2430. local Right_Arm_ = cf(0,0,0)
  2431. local Left_Arm_ = cf(0,0,0)
  2432. local Right_Leg_ = cf(0,0,0)
  2433. local Left_Leg_ = cf(0,0,0)
  2434. local Head_ = cf(0,0,0)
  2435. local Torso_ = cf(0,0,0)
  2436.  
  2437. torw.C0 = clerp(torw.C0, cf(0,-.2,0)*Torso_*ang(-rad(12)+sin(sine/3)/18,sin(sine/6)/13,0),animspd)
  2438. hedw.C0 = clerp(hedw.C0, cf(0,0,-rad(4))*Head_*ang(rad(4),0,0),animspd)
  2439. law.C0 = clerp(law.C0, cf(-.265,-.359/2,sin(sine/6)/4)*Left_Arm_*ang(-sin(sine/6)/4,0,-rad(20)),animspd)
  2440. 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)
  2441. 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)
  2442. 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)
  2443.  
  2444. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2445. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2446. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,rad(15),rad(70)), .1)
  2447. elseif Mode == 'Running' and ds == false then
  2448. local up = sin(sine/6)
  2449. if math.abs(up)>=.995 then
  2450. local actual,floor = CheckIfLanded(7)
  2451. local clrs={'Really black','Pearl'}
  2452. local mtrl='Neon'
  2453. local ss = 3
  2454. if actual then
  2455. clrs={tostring(floor.BrickColor)}
  2456. mtrl=floor.Material
  2457. end
  2458. FootStep()
  2459. if up > 0 then
  2460.  
  2461. else
  2462.  
  2463. end
  2464. end
  2465. local animspd = .25
  2466. change = 1.4
  2467. local Right_Arm_ = cf(0,0,0)
  2468. local Left_Arm_ = cf(0,0,0)
  2469. local Right_Leg_ = cf(0,0,0)
  2470. local Left_Leg_ = cf(0,0,0)
  2471. local Head_ = cf(0,0,0)
  2472. local Torso_ = cf(0,0,0)
  2473.  
  2474. torw.C0 = clerp(torw.C0, cf(0,-.2,0)*Torso_*ang(-rad(12)+sin(sine/3)/18,sin(sine/6)/13,0),animspd)
  2475. hedw.C0 = clerp(hedw.C0, cf(0,0,-rad(4))*Head_*ang(rad(4),0,0),animspd)
  2476. law.C0 = clerp(law.C0, cf(-.265,-.359/2,sin(sine/6)/4)*Left_Arm_*ang(-sin(sine/6)/4,0,-rad(20)),animspd)
  2477. raw.C0 = clerp(raw.C0, cf(.265,-.359/2,-sin(sine/6)/4)*Right_Arm_*ang(sin(sine/6)/4,0,rad(20)),animspd)
  2478. 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)
  2479. 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)
  2480.  
  2481. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2482. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2483. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,rad(15),rad(70)), .1)
  2484. else --// 59426=74955
  2485. Default_Anims()
  2486. warn'Walking: Unknown Mode Used'
  2487. end
  2488. else --// New Animation Test Stage
  2489. local animspd = .1
  2490. local Right_Arm_ = cf(0,0,0)
  2491. local Left_Arm_ = cf(0,0,0)
  2492. local Right_Leg_ = cf(0,0,0)
  2493. local Left_Leg_ = cf(0,0,0)
  2494. local Head_ = cf(0,0,0)
  2495. local Torso_ = cf(0,0,0)
  2496.  
  2497. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2498. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2499. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2500. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2501. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2502. llw.C0 = clerp(llw.C0, cf(0,0,0)*Left_Leg_*ang(0,0,0),animspd)
  2503. end
  2504.  
  2505. end)
  2506.  
  2507. --[[ Default Welds
  2508. local animspd = .3
  2509. change = 1
  2510.  
  2511. local Right_Arm_ = cf(0,0,0)
  2512. local Left_Arm_ = cf(0,0,0)
  2513. local Right_Leg_ = cf(0,0,0)
  2514. local Left_Leg_ = cf(0,0,0)
  2515. local Head_ = cf(0,0,0)
  2516. local Torso_ = cf(0,0,0)
  2517.  
  2518. torw.C0 = clerp(torw.C0, cf(0,0,0)*Torso_*ang(0,0,0),animspd)
  2519. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*Head_*ang(0,0,0),animspd)
  2520. law.C0 = clerp(law.C0, cf(0,0,0)*Left_Arm_*ang(0,0,0),animspd)
  2521. raw.C0 = clerp(raw.C0, cf(0,0,0)*Right_Arm_*ang(0,0,0),animspd)
  2522. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*Right_Leg_*ang(0,0,0),animspd)
  2523. rhw.C0 = clerp(rhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2524. lhw.C0 = clerp(lhw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2525. shw.C0 = clerp(shw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  2526.  
  2527. --]]
  2528.  
  2529. Player.Chatted:connect(function(Message)
  2530. if Message == '~debug' then
  2531. ds,dkd=false,false
  2532. for i,v in next, FX:children() do
  2533. v:Destroy()
  2534. end
  2535. FadeSword'In'
  2536. end
  2537. end)
  2538.  
  2539. script.Archivable = false
  2540. script:WaitForChild('Sound'):Play()
  2541.  
  2542. print("Press ']' to see all KeyBinds")
  2543. print('Say ~debug to... debug..............................')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement