Advertisement
Scripteditor233

Linked Sword

Mar 17th, 2020
3,734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.21 KB | None | 0 0
  1. --{{Linked Sword remake by SezHu. Made for Darkross. Whoever it is that spread this around, I hope you kill yourself.}}--
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = Player
  6. do
  7. print("FE Compatibility code V2 by Mokiros")
  8. local RealPlayer = RealPlayer
  9. script.Parent = RealPlayer.Character
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local Disconnect_Function = function(this)
  13. this[1].Functions[this[2]] = nil
  14. end
  15. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  16. local FakeEvent_Metatable = {__index={
  17. Connect = function(this,f)
  18. local i = tostring(math.random(0,10000))
  19. while this.Functions[i] do
  20. i = tostring(math.random(0,10000))
  21. end
  22. this.Functions[i] = f
  23. return setmetatable({this,i},Disconnect_Metatable)
  24. end
  25. }}
  26. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  27. local function fakeEvent()
  28. return setmetatable({Functions={}},FakeEvent_Metatable)
  29. end
  30.  
  31. --Creating fake input objects with fake variables
  32. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  33. FakeMouse.keyUp = FakeMouse.KeyUp
  34. FakeMouse.keyDown = FakeMouse.KeyDown
  35. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  36. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  37. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  38. end}
  39. --Merged 2 functions into one by checking amount of arguments
  40. CAS.UnbindAction = CAS.BindAction
  41.  
  42. --This function will trigger the events that have been :Connect()'ed
  43. local function TriggerEvent(self,ev,...)
  44. for _,f in pairs(self[ev].Functions) do
  45. f(...)
  46. end
  47. end
  48. FakeMouse.TriggerEvent = TriggerEvent
  49. UIS.TriggerEvent = TriggerEvent
  50.  
  51. --Client communication
  52. local Event = Instance.new("RemoteEvent")
  53. Event.Name = "UserInput_Event"
  54. Event.OnServerEvent:Connect(function(plr,io)
  55. if plr~=RealPlayer then return end
  56. FakeMouse.Target = io.Target
  57. FakeMouse.Hit = io.Hit
  58. if not io.isMouse then
  59. local b = io.UserInputState == Enum.UserInputState.Begin
  60. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  61. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  62. end
  63. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  64. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  65. end
  66. for _,t in pairs(CAS.Actions) do
  67. for _,k in pairs(t.Keys) do
  68. if k==io.KeyCode then
  69. t.Function(t.Name,io.UserInputState,io)
  70. end
  71. end
  72. end
  73. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  74. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  75. end
  76. end)
  77. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  78. local Mouse = owner:GetMouse()
  79. local UIS = game:GetService("UserInputService")
  80. local input = function(io,RobloxHandled)
  81. if RobloxHandled then return end
  82. --Since InputObject is a client-side instance, we create and pass table instead
  83. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  84. end
  85. UIS.InputBegan:Connect(input)
  86. UIS.InputEnded:Connect(input)
  87.  
  88. local h,t
  89. --Give the server mouse data every second frame, but only if the values changed
  90. --If player is not moving their mouse, client won't fire events
  91. local HB = game:GetService("RunService").Heartbeat
  92. while true do
  93. if h~=Mouse.Hit or t~=Mouse.Target then
  94. h,t=Mouse.Hit,Mouse.Target
  95. Event:FireServer({isMouse=true,Target=t,Hit=h})
  96. end
  97. --Wait 2 frames
  98. for i=1,2 do
  99. HB:Wait()
  100. end
  101. end]==],script)
  102.  
  103. ----Sandboxed game object that allows the usage of client-side methods and services
  104. --Real game object
  105. local RealGame = game
  106.  
  107. --Metatable for fake service
  108. local FakeService_Metatable = {
  109. __index = function(self,k)
  110. local s = rawget(self,"_RealService")
  111. if s then
  112. return typeof(s[k])=="function"
  113. and function(_,...)return s[k](s,...)end or s[k]
  114. end
  115. end,
  116. __newindex = function(self,k,v)
  117. local s = rawget(self,"_RealService")
  118. if s then s[k]=v end
  119. end
  120. }
  121. local function FakeService(t,RealService)
  122. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  123. return setmetatable(t,FakeService_Metatable)
  124. end
  125.  
  126. --Fake game object
  127. local FakeGame = {
  128. GetService = function(self,s)
  129. return rawget(self,s) or RealGame:GetService(s)
  130. end,
  131. Players = FakeService({
  132. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  133. },"Players"),
  134. UserInputService = FakeService(UIS,"UserInputService"),
  135. ContextActionService = FakeService(CAS,"ContextActionService"),
  136. RunService = FakeService({
  137. _btrs = {},
  138. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  139. BindToRenderStep = function(self,name,_,fun)
  140. self._btrs[name] = self.Heartbeat:Connect(fun)
  141. end,
  142. UnbindFromRenderStep = function(self,name)
  143. self._btrs[name]:Disconnect()
  144. end,
  145. },"RunService")
  146. }
  147. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  148. FakeGame.service = FakeGame.GetService
  149. FakeService(FakeGame,game)
  150. --Changing owner to fake player object to support owner:GetMouse()
  151. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  152. end
  153. wait(1 / 60)
  154. Effects = { }
  155. local Player = game.Players.localPlayer
  156. local Mouse = Player:GetMouse()
  157. local Character = Player.Character
  158. local Humanoid = Character.Humanoid
  159. local Head = Character.Head
  160. local RootPart = Character.HumanoidRootPart
  161. local Torso = Character.Torso
  162. local LeftArm = Character["Left Arm"]
  163. local RightArm = Character["Right Arm"]
  164. local LeftLeg = Character["Left Leg"]
  165. local RightLeg = Character["Right Leg"]
  166. local Camera = game.Workspace.CurrentCamera
  167. local RootJoint = RootPart.RootJoint
  168. local Equipped = false
  169. local Attack = false
  170. local Anim = 'Idle'
  171. local Idle = 0
  172. local Combo = 1
  173. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  174. local Velocity = RootPart.Velocity.y
  175. local Sine = 0
  176. local Change = 1
  177. Instance.new("ForceField",Character).Visible = false
  178. Character.Humanoid.Name = "help"
  179. humanoid = Character.help
  180.  
  181. local RbxUtility = LoadLibrary("RbxUtility")
  182. local Create = RbxUtility.Create
  183.  
  184. humanoid.WalkSpeed = 13
  185. humanoid.JumpPower = 60
  186. humanoid.Animator.Parent = nil
  187. Character.Animate.Parent = nil
  188.  
  189. local newMotor = function(part0, part1, c0, c1)
  190. local w = Create('Motor'){
  191. Parent = part0,
  192. Part0 = part0,
  193. Part1 = part1,
  194. C0 = c0,
  195. C1 = c1,
  196. }
  197. return w
  198. end
  199.  
  200. function clerp(a, b, t)
  201. return a:lerp(b, t)
  202. end
  203.  
  204. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  205. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  206.  
  207. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  208. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  209. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  210. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  211. RootJoint.C1 = CFrame.new(0, 0, 0)
  212. RootJoint.C0 = CFrame.new(0, 0, 0)
  213. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  214. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  215.  
  216. local rarmc1 = RW.C1
  217. local larmc1 = LW.C1
  218. local rlegc1 = RH.C1
  219. local llegc1 = LH.C1
  220.  
  221. local resetc1 = false
  222.  
  223. function PlayAnimationFromTable(table, speed, bool)
  224. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  225. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  226. RW.C0 = clerp(RW.C0, table[3], speed)
  227. LW.C0 = clerp(LW.C0, table[4], speed)
  228. RH.C0 = clerp(RH.C0, table[5], speed)
  229. LH.C0 = clerp(LH.C0, table[6], speed)
  230. if bool == true then
  231. if resetc1 == false then
  232. resetc1 = true
  233. RootJoint.C1 = RootJoint.C1
  234. Torso.Neck.C1 = Torso.Neck.C1
  235. RW.C1 = rarmc1
  236. LW.C1 = larmc1
  237. RH.C1 = rlegc1
  238. LH.C1 = llegc1
  239. end
  240. end
  241. end
  242.  
  243. ArtificialHB = Create("BindableEvent"){
  244. Parent = script,
  245. Name = "Heartbeat",
  246. }
  247.  
  248. script:WaitForChild("Heartbeat")
  249.  
  250. frame = 1 / 45
  251. tf = 0
  252. allowframeloss = false
  253. tossremainder = false
  254. lastframe = tick()
  255. script.Heartbeat:Fire()
  256.  
  257. game:GetService("RunService").Heartbeat:connect(function(s, p)
  258. tf = tf + s
  259. if tf >= frame then
  260. if allowframeloss then
  261. script.Heartbeat:Fire()
  262. lastframe = tick()
  263. else
  264. for i = 1, math.floor(tf / frame) do
  265. script.Heartbeat:Fire()
  266. end
  267. lastframe = tick()
  268. end
  269. if tossremainder then
  270. tf = 0
  271. else
  272. tf = tf - frame * math.floor(tf / frame)
  273. end
  274. end
  275. end)
  276.  
  277. function swait(num)
  278. if num == 0 or num == nil then
  279. ArtificialHB.Event:wait()
  280. else
  281. for i = 0, num do
  282. ArtificialHB.Event:wait()
  283. end
  284. end
  285. end
  286.  
  287. local m = Create("Model"){
  288. Parent = Character,
  289. Name = "WeaponModel"
  290. }
  291.  
  292. function RemoveOutlines(part)
  293. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  294. end
  295.  
  296. CFuncs = {
  297. Part = {
  298. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  299. local Part = Create("Part"){
  300. Parent = Parent,
  301. Reflectance = Reflectance,
  302. Transparency = Transparency,
  303. CanCollide = false,
  304. Locked = true,
  305. BrickColor = BrickColor.new(tostring(BColor)),
  306. Name = Name,
  307. Size = Size,
  308. Material = Material,
  309. }
  310. RemoveOutlines(Part)
  311. if Size == Vector3.new() then
  312. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  313. else
  314. Part.Size = Size
  315. end
  316. return Part
  317. end;
  318. };
  319.  
  320. Mesh = {
  321. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  322. local Msh = Create(Mesh){
  323. Parent = Part,
  324. Offset = OffSet,
  325. Scale = Scale,
  326. }
  327. if Mesh == "SpecialMesh" then
  328. Msh.MeshType = MeshType
  329. Msh.MeshId = MeshId
  330. end
  331. return Msh
  332. end;
  333. };
  334.  
  335. Weld = {
  336. Create = function(Parent, Part0, Part1, C0, C1)
  337. local Weld = Create("Weld"){
  338. Parent = Parent,
  339. Part0 = Part0,
  340. Part1 = Part1,
  341. C0 = C0,
  342. C1 = C1,
  343. }
  344. return Weld
  345. end;
  346. };
  347.  
  348. Sound = {
  349. Create = function(id, par, vol, pit)
  350. coroutine.resume(coroutine.create(function()
  351. local S = Create("Sound"){
  352. Volume = vol,
  353. Pitch = pit or 1,
  354. SoundId = "rbxassetid://" .. id,
  355. Parent = par or workspace,
  356. }
  357. wait()
  358. S:play()
  359. game:GetService("Debris"):AddItem(S, 10)
  360. end))
  361. end;
  362. };
  363.  
  364. ParticleEmitter = {
  365. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  366. local Particle = Create("ParticleEmitter"){
  367. Parent = Parent,
  368. Color = ColorSequence.new(Color1, Color2),
  369. LightEmission = LightEmission,
  370. Size = Size,
  371. Texture = Texture,
  372. Transparency = Transparency,
  373. ZOffset = ZOffset,
  374. Acceleration = Accel,
  375. Drag = Drag,
  376. LockedToPart = LockedToPart,
  377. VelocityInheritance = VelocityInheritance,
  378. EmissionDirection = EmissionDirection,
  379. Enabled = Enabled,
  380. Lifetime = LifeTime,
  381. Rate = Rate,
  382. Rotation = Rotation,
  383. RotSpeed = RotSpeed,
  384. Speed = Speed,
  385. VelocitySpread = VelocitySpread,
  386. }
  387. return Particle
  388. end;
  389. };
  390.  
  391. CreateTemplate = {
  392.  
  393. };
  394. }
  395.  
  396.  
  397. SwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325))
  398. SwordHandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179))
  399.  
  400. FSwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325))
  401. FSwordHandleWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179))
  402.  
  403. SwordHitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHitbox",Vector3.new(2.86000085, 0.780000031, 0.490000904))
  404. SwordHitboxWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40326214, -0.0246145725, 0.0822520256, 0.996526599, -0.0713239759, 0.0429853499, -0.0685022175, -0.995603502, -0.063884899, 0.04735291, 0.0607184023, -0.997031152))
  405. Sword=CFuncs.Part.Create(m,Enum.Material.Plastic,0.40000000596046,0,"Dark stone grey","Sword",Vector3.new(1, 0.800000012, 4))
  406. SwordWeld=CFuncs.Weld.Create(m,FSwordHandle,Sword,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00868201256, -0.0434961319, -1.57871437, -0.0685393885, -0.995604873, -0.0638238713, -0.0473001003, -0.060659457, 0.997037172, -0.996526659, 0.0713551864, -0.0429345965))
  407. CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  408. SwordTip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordTip",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007))
  409. SwordTipWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordTip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.99350071, 0.0115001202, -0.0282430649, 0.996526718, -0.0713239908, 0.0429855287, 0.0685023069, 0.995603621, 0.0638830736, -0.0473529696, -0.0607165657, 0.997031391))
  410. SwordBase=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordBase",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007))
  411. SwordBaseWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordBase,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.965875626, -0.108898878, -0.0282406807, 0.996527016, -0.0713239983, 0.0429854989, 0.0685023293, 0.995603859, 0.0638830885, -0.0473529994, -0.0607165806, 0.997031689))
  412. sw00ng=CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  413. sw00ng.TextureId = "rbxasset://textures/SwordTexture.png"
  414. Dodgebox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Dodgebox",Vector3.new(0.380000204, 0.440000057, 0.370000631))
  415. DodgeboxWeld=CFuncs.Weld.Create(m,Character["Left Arm"],Dodgebox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19000053, 0.0500006676, 0.00499725342, -5.2829273e-07, -1, 9.87201929e-08, -1.00000012, 5.32949343e-07, -2.98023224e-08, 2.98023224e-08, -9.68575478e-08, -1.00000012))
  416. RHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RHandle",Vector3.new(4.92000628, 0.740000546, 0.839999795))
  417. RHandleWeld=CFuncs.Weld.Create(m,Character["Left Arm"],RHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.891376376, 0.0220794678, -0.335389137, -0.0211870149, 0.999322236, 0.0301050469, 0.985142112, 0.0157343224, 0.171019673, 0.170430094, 0.0332811475, -0.98480773))
  418. kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75))
  419. RocketMaker=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RocketMaker",Vector3.new(0.349999934, 0.350000024, 0.369999945))
  420. RocketMakerWeld=CFuncs.Weld.Create(m,RHandle,RocketMaker,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.6350019, 0.17499733, 0.0449929237, 0.999999702, 0, 7.4505806e-09, 0, 1.72555447e-05, -1, 0, 1.00000012, 1.72555447e-05))
  421.  
  422. kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75))
  423. kaboomsky.TextureId = "rbxasset://textures/rocketlaunchertex.png"
  424.  
  425.  
  426.  
  427. swordtrail = Instance.new("Trail", SwordHitbox)
  428. A2 = Instance.new('Attachment',SwordBase)
  429. A3 = Instance.new('Attachment',SwordTip)
  430. swordtrail.Lifetime = .1
  431. swordtrail.Enabled = false
  432. swordtrail.Attachment0 = A2
  433. swordtrail.Attachment1 = A3
  434. local startColor = Color3.new(0, 0, 0)
  435. local endColor = Color3.new(200,200, 200)
  436. local startT = .2
  437. local endT = .8
  438.  
  439. local sequence = ColorSequence.new(startColor, endColor)
  440. local sequence2 = NumberSequence.new(startT, endT)
  441.  
  442. swordtrail.Color = sequence
  443. swordtrail.Transparency = sequence2
  444.  
  445.  
  446. function RayCast(Position, Direction, Range, Ignore)
  447. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  448. end
  449.  
  450. FindNearestTorso = function(pos)
  451. local list = (game.Workspace:children())
  452. local torso = nil
  453. local dist = 1000
  454. local temp, human, temp2 = nil, nil, nil
  455. for x = 1, #list do
  456. temp2 = list[x]
  457. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  458. temp = temp2:findFirstChild("Torso")
  459. human = temp2:findFirstChild("Humanoid")
  460. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  461. local dohit = true
  462. if dohit == true then
  463. torso = temp
  464. dist = (temp.Position - pos).magnitude
  465. end
  466. end
  467. end
  468. end
  469. return torso, dist
  470. end
  471.  
  472. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  473. if hit.Parent == nil then
  474. return
  475. end
  476. local h = hit.Parent:FindFirstChild("Humanoid")
  477. for _, v in pairs(hit.Parent:children()) do
  478. if v:IsA("Humanoid") then
  479. h = v
  480. end
  481. end
  482. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  483. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  484. if hit.Parent.DebounceHit.Value == true then
  485. return
  486. end
  487. end
  488. local c = Create("ObjectValue"){
  489. Name = "creator",
  490. Value = game:service("Players").LocalPlayer,
  491. Parent = h,
  492. }
  493. game:GetService("Debris"):AddItem(c, .5)
  494. if HitSound ~= nil and HitPitch ~= nil then
  495. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  496. end
  497. local Damage = math.random(minim, maxim)
  498. local blocked = false
  499. local block = hit.Parent:findFirstChild("Block")
  500. if block ~= nil then
  501. if block.className == "IntValue" then
  502. if block.Value > 0 then
  503. blocked = true
  504. block.Value = block.Value - 1
  505. print(block.Value)
  506. end
  507. end
  508. end
  509. if blocked == false then
  510. h.Health = h.Health - Damage
  511. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color)
  512. else
  513. h.Health = h.Health - (Damage / 2)
  514. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color)
  515. end
  516. if Type == "Knockdown" then
  517. local hum = hit.Parent.Humanoid
  518. hum.PlatformStand = true
  519. coroutine.resume(coroutine.create(function(HHumanoid)
  520. swait(1)
  521. HHumanoid.PlatformStand = false
  522. end), hum)
  523. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  524. local bodvol = Create("BodyVelocity"){
  525. velocity = angle * knockback,
  526. P = 5000,
  527. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  528. Parent = hit,
  529. }
  530. local rl = Create("BodyAngularVelocity"){
  531. P = 3000,
  532. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  533. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  534. Parent = hit,
  535. }
  536. game:GetService("Debris"):AddItem(bodvol, .5)
  537. game:GetService("Debris"):AddItem(rl, .5)
  538. elseif Type == "Normal" then
  539. local vp = Create("BodyVelocity"){
  540. P = 500,
  541. maxForce = Vector3.new(math.huge, 0, math.huge),
  542. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  543. }
  544. hit.Parent.Torso:BreakJoints()
  545. if knockback > 0 then
  546. vp.Parent = hit.Parent.Torso
  547. end
  548. game:GetService("Debris"):AddItem(vp, .5)
  549. elseif Type == "Up" then
  550. local bodyVelocity = Create("BodyVelocity"){
  551. velocity = Vector3.new(0, 20, 0),
  552. P = 5000,
  553. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  554. Parent = hit,
  555. }
  556. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  557. elseif Type == "DarkUp" then
  558. coroutine.resume(coroutine.create(function()
  559. for i = 0, 1, 0.1 do
  560. swait()
  561. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  562. end
  563. end))
  564. local bodyVelocity = Create("BodyVelocity"){
  565. velocity = Vector3.new(0, 20, 0),
  566. P = 5000,
  567. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  568. Parent = hit,
  569. }
  570. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  571. elseif Type == "Snare" then
  572. local bp = Create("BodyPosition"){
  573. P = 2000,
  574. D = 100,
  575. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  576. position = hit.Parent.Torso.Position,
  577. Parent = hit.Parent.Torso,
  578. }
  579. game:GetService("Debris"):AddItem(bp, 1)
  580. elseif Type == "Freeze" then
  581. local BodPos = Create("BodyPosition"){
  582. P = 50000,
  583. D = 1000,
  584. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  585. position = hit.Parent.Torso.Position,
  586. Parent = hit.Parent.Torso,
  587. }
  588. local BodGy = Create("BodyGyro") {
  589. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  590. P = 20e+003,
  591. Parent = hit.Parent.Torso,
  592. cf = hit.Parent.Torso.CFrame,
  593. }
  594. hit.Parent.Torso.Anchored = true
  595. coroutine.resume(coroutine.create(function(Part)
  596. swait(1.5)
  597. Part.Anchored = false
  598. end), hit.Parent.Torso)
  599. game:GetService("Debris"):AddItem(BodPos, 3)
  600. game:GetService("Debris"):AddItem(BodGy, 3)
  601. end
  602. local debounce = Create("BoolValue"){
  603. Name = "DebounceHit",
  604. Parent = hit.Parent,
  605. Value = true,
  606. }
  607. game:GetService("Debris"):AddItem(debounce, Delay)
  608. c = Create("ObjectValue"){
  609. Name = "creator",
  610. Value = Player,
  611. Parent = h,
  612. }
  613. game:GetService("Debris"):AddItem(c, .5)
  614. end
  615. end
  616.  
  617. function ShowDamage(Pos, Text, Time, Color)
  618. local Rate = (1 / 30)
  619. local Pos = (Pos or Vector3.new(0, 0, 0))
  620. local Text = (Text or "")
  621. local Time = (Time or 2)
  622. local Color = (Color or Color3.new(1, 0, 1))
  623. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  624. EffectPart.Anchored = true
  625. local BillboardGui = Create("BillboardGui"){
  626. Size = UDim2.new(3, 0, 3, 0),
  627. Adornee = EffectPart,
  628. Parent = EffectPart,
  629. }
  630. local TextLabel = Create("TextLabel"){
  631. BackgroundTransparency = 1,
  632. Size = UDim2.new(1, 0, 1, 0),
  633. Text = Text,
  634. Font = "SourceSansLight",
  635. TextColor3 = Color,
  636. TextScaled = true,
  637. Parent = BillboardGui,
  638. }
  639. game.Debris:AddItem(EffectPart, (Time))
  640. EffectPart.Parent = game:GetService("Workspace")
  641. delay(0, function()
  642. local Frames = (Time / Rate)
  643. for Frame = 1, Frames do
  644. wait(Rate)
  645. local Percent = (Frame / Frames)
  646. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  647. TextLabel.TextTransparency = Percent
  648. end
  649. if EffectPart and EffectPart.Parent then
  650. EffectPart:Destroy()
  651. end
  652. end)
  653. end
  654.  
  655. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  656. for _, c in pairs(workspace:children()) do
  657. local hum = c:findFirstChild("Humanoid")
  658. if hum ~= nil then
  659. local head = c:findFirstChild("Torso")
  660. if head ~= nil then
  661. local targ = head.Position - Part.Position
  662. local mag = targ.magnitude
  663. if mag <= Magnitude and c.Name ~= Player.Name then
  664. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  665. end
  666. end
  667. end
  668. end
  669. end
  670.  
  671. EffectModel = Create("Model"){
  672. Parent = Character,
  673. Name = "EffectModel",
  674. }
  675.  
  676. Effects = {
  677. Block = {
  678. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  679. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  680. prt.Anchored = true
  681. prt.CFrame = cframe
  682. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  683. game:GetService("Debris"):AddItem(prt, 10)
  684. if Type == 1 or Type == nil then
  685. table.insert(Effects, {
  686. prt,
  687. "Block1",
  688. delay,
  689. x3,
  690. y3,
  691. z3,
  692. msh
  693. })
  694. elseif Type == 2 then
  695. table.insert(Effects, {
  696. prt,
  697. "Block2",
  698. delay,
  699. x3,
  700. y3,
  701. z3,
  702. msh
  703. })
  704. elseif Type == 3 then
  705. table.insert(Effects, {
  706. prt,
  707. "Block3",
  708. delay,
  709. x3,
  710. y3,
  711. z3,
  712. msh,
  713. Part
  714. })
  715. elseif Type == 4 then
  716. table.insert(Effects, {
  717. prt,
  718. "Block2Fire",
  719. delay,
  720. x3,
  721. y3,
  722. z3,
  723. msh
  724. })
  725. end
  726. end
  727. };
  728.  
  729. Sphere = {
  730. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  731. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  732. prt.Anchored = true
  733. prt.CFrame = cframe
  734. if parent == nil then
  735. prt.Parent = workspace
  736. else
  737. prt.Parent = parent
  738. end
  739. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  740. game:GetService("Debris"):AddItem(prt, 10)
  741. table.insert(Effects, {
  742. prt,
  743. "Cylinder",
  744. delay,
  745. x3,
  746. y3,
  747. z3,
  748. msh
  749. })
  750. end
  751. };
  752.  
  753. Blood = {
  754. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  755. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  756. prt.Anchored = true
  757. prt.CFrame = cframe
  758. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  759. game:GetService("Debris"):AddItem(prt, 10)
  760. table.insert(Effects, {
  761. prt,
  762. "Blood",
  763. delay,
  764. x3,
  765. y3,
  766. z3,
  767. msh
  768. })
  769. end
  770. };
  771.  
  772. Blast = {
  773. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  774. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  775. prt.Anchored = true
  776. prt.CFrame = cframe
  777. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  778. game:GetService("Debris"):AddItem(prt, 10)
  779. table.insert(Effects, {
  780. prt,
  781. "Block4",
  782. delay,
  783. x3,
  784. y3,
  785. z3,
  786. msh,
  787. Part
  788. })
  789. end
  790. };
  791.  
  792. Ring = {
  793. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  794. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  795. prt.Anchored = true
  796. prt.CFrame = cframe
  797. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  798. game:GetService("Debris"):AddItem(prt, 10)
  799. table.insert(Effects, {
  800. prt,
  801. "Cylinder",
  802. delay,
  803. x3,
  804. y3,
  805. z3,
  806. msh
  807. })
  808. end
  809. };
  810.  
  811. Cylinder = {
  812. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  813. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  814. prt.Anchored = true
  815. prt.CFrame = cframe
  816. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  817. game:GetService("Debris"):AddItem(prt, 10)
  818. table.insert(Effects, {
  819. prt,
  820. "Cylinder",
  821. delay,
  822. x3,
  823. y3,
  824. z3,
  825. msh
  826. })
  827. end
  828. };
  829.  
  830. Head = {
  831. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  832. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  833. prt.Anchored = true
  834. prt.CFrame = cframe
  835. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  836. game:GetService("Debris"):AddItem(prt, 10)
  837. table.insert(Effects, {
  838. prt,
  839. "Cylinder",
  840. delay,
  841. x3,
  842. y3,
  843. z3,
  844. msh
  845. })
  846. end
  847. };
  848.  
  849. Wave = {
  850. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  851. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  852. prt.Anchored = true
  853. prt.CFrame = cframe
  854. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  855. game:GetService("Debris"):AddItem(prt, 10)
  856. table.insert(Effects, {
  857. prt,
  858. "Cylinder",
  859. delay,
  860. x3,
  861. y3,
  862. z3,
  863. msh
  864. })
  865. end
  866. };
  867.  
  868. Break = {
  869. Create = function(brickcolor, cframe, x1, y1, z1)
  870. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  871. prt.Anchored = true
  872. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  873. game:GetService("Debris"):AddItem(prt, 10)
  874. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  875. local num = math.random(10, 50) / 1000
  876. table.insert(Effects, {
  877. prt,
  878. "Shatter",
  879. num,
  880. prt.CFrame,
  881. math.random() - math.random(),
  882. 0,
  883. math.random(50, 100) / 100
  884. })
  885. end
  886. };
  887.  
  888. Elec = {
  889. Create = function(brickcolor, cff, x, y, z)
  890. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  891. prt.Anchored = true
  892. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  893. prt.CFrame = CFrame.new(prt.Position)
  894. game:GetService("Debris"):AddItem(prt, 10)
  895. xval = math.random() / 9
  896. yval = math.random() / 9
  897. zval = math.random() / 9
  898. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  899. eul1 = math.random(-50, 50)
  900. eul2 = math.random(-50, 50)
  901. eul3 = math.random(-50, 50)
  902. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  903. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  904. table.insert(Effects, {
  905. prt,
  906. "Elec",
  907. .05,
  908. x,
  909. y,
  910. z,
  911. xval,
  912. yval,
  913. zval,
  914. msh,
  915. euld,
  916. euld2
  917. })
  918. end
  919. };
  920.  
  921. Elec2 = {
  922. Create = function(brickcolor, cff, x, y, z)
  923. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  924. prt.Anchored = true
  925. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  926. prt.CFrame = CFrame.new(prt.Position)
  927. game:GetService("Debris"):AddItem(prt, 10)
  928. xval = math.random() / 7
  929. yval = math.random() / 7
  930. zval = math.random() / 7
  931. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  932. eul1 = math.random(-50, 50)
  933. eul2 = math.random(-50, 50)
  934. eul3 = math.random(-50, 50)
  935. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  936. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  937. table.insert(Effects, {
  938. prt,
  939. "Elec",
  940. .1,
  941. x,
  942. y,
  943. z,
  944. xval,
  945. yval,
  946. zval,
  947. msh,
  948. euld,
  949. euld2
  950. })
  951. end
  952. };
  953.  
  954. Clone = {
  955. Create = function()
  956. for _, v in pairs(Torso.Parent:children()) do
  957. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  958. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  959. c.Anchored = true
  960. c.CFrame = v.CFrame
  961. game:GetService("Debris"):AddItem(c, 5)
  962. local cmsh = nil
  963. if v.Name == "Head" then
  964. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  965. else
  966. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  967. end
  968. table.insert(Effects, {
  969. c,
  970. "Cylinder",
  971. 0.05,
  972. 0.1,
  973. 0.1,
  974. 0.1,
  975. cmsh
  976. })
  977. end
  978. end
  979. end
  980. };
  981.  
  982. EffectTemplate = {
  983.  
  984. };
  985. }
  986.  
  987.  
  988.  
  989. function basicatk3()
  990. Attack = true
  991. for i = 0, 1, 0.1 do
  992. swait()
  993. PlayAnimationFromTable({
  994. CFrame.new(-0.0142343417, 0.0233179983, 0.020687107, 0.573575377, 0, -0.819152832, 0, 1, 0, 0.819152832, 0, 0.573575377) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  995. CFrame.new(2.98023224e-07, 1.49992621, 2.16066837e-07, 0.608099699, -0.0691893846, 0.790839791, 0, 0.99619478, 0.0871555731, -0.793860614, -0.0529992878, 0.605785728) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  996. CFrame.new(2.05688548, 0.769726157, 0.0676793456, -0.311439514, -0.945715487, -0.092885226, 0.945463896, -0.298567384, -0.130214006, 0.09541291, -0.128373384, 0.987125456) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  997. CFrame.new(-0.411215395, 0.158524469, -0.878887057, 0.250847429, -0.870902896, 0.422615528, 0.960933626, 0.276778936, -3.5065608e-07, -0.116970763, 0.406105578, 0.906309128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  998. CFrame.new(0.657444179, -1.99999833, -0.128117085, 0.896965504, -0.0924630314, 0.432323426, 0.14320904, 0.98592627, -0.0862591267, -0.418263227, 0.139284089, 0.897583365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  999. CFrame.new(-0.494430214, -2.06444812, 0.151889086, 0.924378932, -0.0320322104, 0.380128324, -0.00379799958, 0.995646238, 0.093135722, -0.381456703, -0.0875364318, 0.920232713) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1000. }, .3, false)
  1001. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1002. end
  1003. swordtrail.Enabled = true
  1004. local con = SwordHitbox.Touched:connect(function(hit)
  1005. Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  1006. CFuncs.Sound.Create("12222208", SwordHitbox, 1, 1)
  1007. for i = 0, 1, 0.1 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(-0.0142339114, 0.0233179983, 0.0206872839, 0.642787755, 0, 0.766044497, 0, 1, 0, -0.766044497, 0, 0.642787755) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1011. CFrame.new(9.59248496e-07, 1.49992597, 4.65522191e-07, 0.60942173, 0, -0.792846382, 0, 1, 0, 0.792846322, 0, 0.609421849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1012. CFrame.new(1.73596513, 0.521444082, -0.798278034, 0.809956312, -0.584440529, 0.0489933714, 0.032929007, -0.0380880162, -0.998731732, 0.585565269, 0.810542405, -0.0116045829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1013. CFrame.new(-1.85990238, 0.325684935, -0.117992491, 0.89608562, 0.442657262, 0.0329447091, -0.4075903, 0.849945962, -0.333859384, -0.175786465, 0.285738617, 0.942047179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1014. CFrame.new(0.425910503, -2.07023525, 0.0920312852, 0.940003216, -0.0248685181, 0.340258449, -0.0248680059, 0.98969233, 0.141034499, -0.340258539, -0.141034409, 0.929695547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1015. CFrame.new(-0.614895225, -2, -0.0110759763, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1016. }, .3, false)
  1017. Torso.Velocity=RootPart.CFrame.lookVector*50
  1018. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), .5)
  1019. end
  1020. Torso.Velocity=RootPart.CFrame.lookVector*0
  1021. con:Disconnect()
  1022. swordtrail.Enabled = false
  1023. Attack = false
  1024. end
  1025.  
  1026. function basicatk1()
  1027. Attack = true
  1028. CFuncs.Sound.Create("12222216", SwordHitbox, 1, 1)
  1029. local con = SwordHitbox.Touched:connect(function(hit)
  1030. Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  1031. for i = 0, 1, 0.1 do
  1032. swait()
  1033. PlayAnimationFromTable({
  1034. CFrame.new(-0.0142327882, 0.0233180653, 0.0206850152, 0.342022419, 9.53674316e-07, -0.939693272, -1.97067857e-06, 0.999999821, -2.77161598e-06, 0.939691842, -3.1888485e-06, 0.342018187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1035. CFrame.new(-3.0002484e-06, 1.49992502, -4.16819603e-06, 0.536599159, 0, 0.843837321, 0, 1, 0, -0.843837321, 0, 0.536599159) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1036. CFrame.new(1.86725414, 0.520918071, 0.271278173, -0.192566082, -0.920491397, -0.340020508, 0.967886448, -0.121106967, -0.220293105, 0.16159907, -0.371522188, 0.914252102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1037. CFrame.new(-1.63878369, 0.0883156657, 0.277901947, 0.932158768, 0.313689649, 0.180773243, -0.33414492, 0.937619865, 0.0960013121, -0.139381975, -0.149892926, 0.978828311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1038. CFrame.new(0.631921172, -2.00664234, -0.186664119, 0.932272255, -0.109707505, 0.344721258, 0.134574026, 0.989692569, -0.0489756428, -0.335795075, 0.0920491666, 0.937426567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1039. CFrame.new(-0.51753515, -2, 0.082954295, 0.939693093, 0, 0.342018992, 0, 1, 0, -0.342019022, 0, 0.939693093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1040. }, .3, false)
  1041. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 1)
  1042. end
  1043. swordtrail.Enabled = true
  1044. for i = 0, .5, 0.1 do
  1045. swait()
  1046. PlayAnimationFromTable({
  1047. CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1048. CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1049. CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1050. CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1051. CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1052. CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1053. }, .3, false)
  1054. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), 1)
  1055. end
  1056.  
  1057.  
  1058. for i = 0, .5, 0.1 do
  1059. swait()
  1060. PlayAnimationFromTable({
  1061. CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1062. CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1063. CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1064. CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1065. CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1066. CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1067. }, .3, false)
  1068. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .1)
  1069. end
  1070. swordtrail.Enabled = false
  1071. con:Disconnect()
  1072. Attack = false
  1073. end
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079. function basicatk2()
  1080. Attack = true
  1081. CFuncs.Sound.Create("12222216", SwordHitbox, 1, .8)
  1082. local con = SwordHitbox.Touched:connect(function(hit)
  1083. Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  1084. for i = 0, .5, 0.1 do
  1085. PlayAnimationFromTable({
  1086. CFrame.new(0.199326009, 0, -0.0621959642, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1087. CFrame.new(0, 1.49999201, 0, 0.866025805, 0, -0.499999762, 0, 1, 0, 0.499999762, 0, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1088. CFrame.new(0.930871904, 0.250794977, -1.28154397, -0.0386770852, 0.569197655, -0.821290731, -0.998659015, 0.00628901878, 0.0513885207, 0.0344153345, 0.822176874, 0.568191111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1089. CFrame.new(-1.60257423, 0.0277413726, -0.076416865, 0.0147553682, 0.129409567, 0.991481602, 0.224142969, 0.965926051, -0.12940973, -0.974444628, 0.224143118, -0.0147536397) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1090. CFrame.new(0.624383092, -1.99999106, -0.0120142996, 0.707107008, 0, -0.707106769, 0, 1, 0, 0.707106769, 0, 0.707107008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1091. CFrame.new(-0.482958466, -1.99999106, -0.129410326, 0.707106769, 0, 0.707107008, 0, 1, 0, -0.707107008, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1092. }, .3, false)
  1093. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1094. end
  1095. swordtrail.Enabled = true
  1096. for i = 0, .5, 0.1 do
  1097. swait()
  1098. PlayAnimationFromTable({
  1099. CFrame.new(0.366101086, 0, -0.414826214, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1100. CFrame.new(0, 1.49999201, 0, 0.342023224, 0, -0.939691603, 0, 1, 0, 0.939691603, 0, 0.342023224) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1101. CFrame.new(0.0553627312, 1.3573252, -1.17095125, 0.785249949, 0.559134185, 0.265991658, 0.545306027, -0.827990174, 0.130666092, 0.293298304, 0.0424413234, -0.955078542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1102. CFrame.new(-1.60256672, 0.0277402997, -0.0764263347, 0.0147550702, 0.129409924, 0.991481423, 0.224143073, 0.965925932, -0.129410043, -0.974444628, 0.224143118, -0.0147539973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1103. CFrame.new(0.624385655, -1.99999106, -0.0120021999, 0.707108498, 0, -0.70710516, 0, 1, 0, 0.70710516, 0, 0.707108498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1104. CFrame.new(-0.48295331, -1.99999106, -0.129420042, 0.70710516, 0, 0.707108498, 0, 1, 0, -0.707108498, 0, 0.70710516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1105. }, .3, false)
  1106. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1107. end
  1108. for i = 0, .5, 0.1 do
  1109. swait()
  1110. PlayAnimationFromTable({
  1111. CFrame.new(0.366099417, -0.200000986, -0.414823025, 0.582563281, 0.271655113, 0.766044199, -0.42261821, 0.906307876, -1.75809453e-06, -0.694272339, -0.323743135, 0.642787993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1112. CFrame.new(-0.231262937, 1.54721832, -0.0511251986, 0.851651847, -0.42261821, -0.309973061, 0.397132277, 0.906307876, -0.144540951, 0.342016667, -1.75809453e-06, 0.939694047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1113. CFrame.new(-0.0908454061, 1.16592097, -1.08897507, -0.0772816539, 0.583855987, 0.808170736, 0.727612376, -0.521148086, 0.446077228, 0.681621552, 0.622508645, -0.384545565) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1114. CFrame.new(-1.61299813, 0.0366990864, 0.314264029, -0.455841899, 0.169077203, 0.87385428, 0.0347501114, 0.984423816, -0.172343403, -0.889382243, -0.048194766, -0.454617083) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1115. CFrame.new(1.21119905, -1.34869587, -0.183849275, 0.851651549, -0.252021521, -0.459537864, 0.397132158, 0.882479608, 0.252023607, 0.342017442, -0.39713347, 0.851650953) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1116. CFrame.new(0.0580956787, -1.95897889, 0.369651437, 0.640855312, -0.42261821, 0.640857816, 0.298834234, 0.906307876, 0.298838168, -0.707108855, -1.75809453e-06, 0.707104981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1117. }, .3, false)
  1118. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1119. end
  1120. for i = 0, .5, 0.1 do
  1121. swait()
  1122. PlayAnimationFromTable({
  1123. CFrame.new(0.366085619, -1.19999647, -0.414817601, 0.582568169, -0.412207156, 0.700499654, -0.422613144, 0.582565188, 0.69427377, -0.694271266, -0.700502098, 0.165179759) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1124. CFrame.new(0.112729274, 1.56678414, 0.254275501, 0.577656388, 0.0997146964, -0.810166836, -0.213354647, 0.976452529, -0.0319427848, 0.787904203, 0.191304803, 0.585328698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1125. CFrame.new(1.96889925, 0.746382177, -0.185331225, 0.0769328177, -0.997015715, 0.00641870499, 0.879773498, 0.0648541152, -0.470948815, 0.469127119, 0.0418784246, 0.882137418) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1126. CFrame.new(-1.88176703, 0.136358321, 0.177449048, -0.455846965, 0.778092861, 0.43217504, 0.703643739, 0.612389445, -0.360367835, -0.545058966, 0.139824644, -0.826655984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1127. CFrame.new(0.90178746, -1.14663219, -0.653959215, 0.851655245, 0.190028608, -0.488439023, -0.00672882795, 0.935840786, 0.352359027, 0.524059415, -0.296801776, 0.798292339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1128. CFrame.new(-0.830604553, -2.07172632, -0.233860642, 0.784890771, 0.0754829049, -0.615019679, -0.147760659, 0.986719251, -0.0674703121, 0.601758778, 0.143832445, 0.785620093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1129. }, .3, false)
  1130. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1131. end
  1132. swordtrail.Enabled = false
  1133. con:Disconnect()
  1134. Attack = false
  1135. end
  1136.  
  1137.  
  1138. function dodgeball()
  1139. Attack = true
  1140. humanoid.AutoRotate = false
  1141. local spawnPos = Torso.Position
  1142. orb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(2,2,2))
  1143. orb1.Anchored=true
  1144. orb1.CanCollide=false
  1145.  
  1146. game:GetService("Debris"):AddItem(orb1, 10)
  1147. orb1.Elasticity = 1
  1148. local mbewm2 = Instance.new("SpecialMesh", orb1)
  1149. mbewm2.MeshType = "Sphere"
  1150. mbewm2.Scale = Vector3.new(1,1,1)
  1151. game:GetService("Debris"):AddItem(orb1, 3)
  1152. for i = 0, 2, 0.1 do
  1153. orb1.CFrame = Dodgebox.CFrame
  1154. swait()
  1155. PlayAnimationFromTable({
  1156. CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1157. CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1158. CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1159. CFrame.new(-1.9394995, 0.331927955, -0.314799666, 0.117194936, 0.856613636, -0.502472639, -0.987918258, 0.0488963015, -0.14706032, -0.101404801, 0.513636589, 0.851994693) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1160. CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1161. CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1162. }, .3, false)
  1163. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1164. end
  1165. local con = orb1.Touched:connect(function(hit)
  1166. CFuncs.Sound.Create("112503990", Torso, 1, .8)end)
  1167. orb1.Anchored=false
  1168. orb1.CanCollide=true
  1169.  
  1170. local roketsped = 500
  1171. local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -3)).p
  1172. orb1.CFrame = CFrame.new(spawnPosition, Mouse.hit.p)
  1173. orb1.Velocity = orb1.CFrame.lookVector * roketsped
  1174. local GRAVITY_ACCELERATION = 196.2
  1175. local bodyForce = Instance.new('BodyForce', orb1)
  1176. bodyForce.Name = 'Antigravity'
  1177. bodyForce.force = Vector3.new(0, orb1:GetMass() * GRAVITY_ACCELERATION, 0)
  1178.  
  1179. game:GetService("Debris"):AddItem(orb1, 8)
  1180.  
  1181. for i = 0, 1, 0.1 do
  1182. swait()
  1183. PlayAnimationFromTable({
  1184. CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1185. CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1186. CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1187. CFrame.new(-1.58664989, 0.765351355, -0.846855521, -0.120212317, 0.321875662, -0.939119458, -0.987918437, -0.131986037, 0.0812216997, -0.0978073403, 0.937537193, 0.333853245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1188. CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1189. CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1190. }, .3, false)
  1191. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1192. end
  1193. humanoid.AutoRotate = true
  1194. Attack = false
  1195. while orb1 do
  1196. swait()
  1197. MagnitudeDamage(orb1, 4, 0, 0, 100, "Normal", "112503990", 1)
  1198. end
  1199.  
  1200. end
  1201.  
  1202.  
  1203. function roketlunch()
  1204. Attack = true
  1205. humanoid.WalkSpeed = 0
  1206. humanoid.JumpPower = 0
  1207. RHandle.Transparency = 0
  1208. Sword.Transparency = 1
  1209. for i = 0, 1, 0.1 do
  1210. swait()
  1211. PlayAnimationFromTable({
  1212. CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1213. CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1214. CFrame.new(1.28755724, 0.00418370962, -0.0650342703, 0.890014946, 0.230696142, -0.393259257, -0.298804998, 0.946620405, -0.120936036, 0.344367683, 0.225142673, 0.911439359) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1215. CFrame.new(-1.59552705, 0.053297095, -0.298519343, 0.986049891, 0.15347448, -0.0644321442, -0.162331849, 0.801095366, -0.576103032, -0.036800772, 0.578525543, 0.814833522) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1216. CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1217. CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1218. }, .3, false)
  1219. end
  1220.  
  1221.  
  1222. for i = 0, 3, 0.1 do
  1223. swait()
  1224. PlayAnimationFromTable({
  1225. CFrame.new(-0.0142319426, -1.08839262, 0.0206871927, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1226. CFrame.new(0.0154080922, 1.55223548, -0.0916156173, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1227. CFrame.new(0.428888142, 0.573096275, -1.0865351, 0.629741013, 0.73693651, -0.245664269, -0.133446366, -0.208918005, -0.968785584, -0.765257001, 0.64286691, -0.0332227312) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1228. CFrame.new(-1.24049437, 0.563232303, -0.47247985, 0.974705219, -0.150607079, -0.165128678, -0.176947653, -0.0686892122, -0.981820583, 0.136526525, 0.986204565, -0.0936013013) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1229. CFrame.new(0.542829335, -1.05595815, -0.494429678, 0.999206185, -0.0391747355, 0.00724902749, 0.0392762125, 0.999124289, -0.0144301355, -0.00667738914, 0.0147034377, 0.999869585) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1230. CFrame.new(-0.433013409, -1.47995389, 0.259185165, 1, -2.98023224e-08, 0, 0, 0.17364727, 0.984807968, 2.98023224e-08, -0.984807849, 0.173647255) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1231. }, .3, false)
  1232. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1233. end
  1234.  
  1235. local roket=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Smoky grey"), "ref", Vector3.new(1,1,2))
  1236. roket.Anchored=false
  1237. roket.CanCollide=true
  1238. local roketsped = 100
  1239. local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -6)).p
  1240. roket.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) --NOTE: This must be done before assigning Parent
  1241. roket.Velocity = roket.CFrame.lookVector * roketsped
  1242. CFuncs.Sound.Create("31761785", roket, 3, 1)
  1243. local GRAVITY_ACCELERATION = 196.2
  1244. local bodyForce = Instance.new('BodyForce', roket)
  1245. bodyForce.Name = 'Antigravity'
  1246. bodyForce.force = Vector3.new(0, roket:GetMass() * GRAVITY_ACCELERATION, 0)
  1247.  
  1248. game:GetService("Debris"):AddItem(roket, 8)
  1249. local con = roket.Touched:connect(function(hit)
  1250. MagnitudeDamage(roket, 10, 0, 0, 100, "Normal", "112503990", 1) Effects.Sphere.Create(BrickColor.new(roket.Color), roket.CFrame, 3, 3, 3, 3, 3, 3, 0.03) roket.Transparency = 1 CFuncs.Sound.Create("169628396", Character, .1, 1) local boo = Instance.new("Explosion", roket) boo.Position = roket.Position boo.BlastRadius = 30
  1251. boo.BlastPressure = 500 roket:Destroy() end)
  1252. for i = 0, 2, 0.1 do
  1253. swait()
  1254. PlayAnimationFromTable({
  1255. CFrame.new(-0.0142334783, -1.08840001, 0.0206862688, 1.00000119, 7.67409801e-07, -2.98023224e-08, 6.21078584e-07, 0.984811127, -0.173649758, 2.38418579e-07, 0.173647732, 0.984807074) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1256. CFrame.new(-0.0153429285, 1.61389816, 0.0791989863, 0.999084234, -0.0110745579, -0.0413306355, 0.00743017718, 0.996153533, -0.0873102993, 0.0421385169, 0.0869232267, 0.995323479) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1257. CFrame.new(0.489735812, 0.316905022, -1.24634087, 0.629742265, 0.683080673, -0.369899511, -0.387131512, -0.136858344, -0.911810875, -0.67346406, 0.717405558, 0.178256541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1258. CFrame.new(-1.24049377, 0.367668957, -0.636619806, 0.974705458, -0.198001236, -0.103657492, -0.119579755, -0.0701957047, -0.990339994, 0.188812226, 0.977685094, -0.092097044) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1259. CFrame.new(0.542830348, -1.16139019, -0.103446305, 0.999207258, -0.0391742066, 0.00724938512, 0.0346246623, 0.943902194, 0.328414857, -0.0197079182, -0.327904552, 0.944504917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1260. CFrame.new(-0.433018923, -1.30207276, 0.749731183, 1.00000107, -2.38418579e-07, 6.00692658e-07, 7.78585672e-07, -0.173647717, 0.984811127, 5.96046448e-08, -0.984807074, -0.173649803) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1261. }, .3, false)
  1262. Torso.Velocity=RootPart.CFrame.lookVector*-20
  1263. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1264. end
  1265. RHandle.Transparency = 1
  1266. Sword.Transparency = 0
  1267.  
  1268. humanoid.WalkSpeed = 13
  1269. humanoid.JumpPower = 60
  1270. Attack = false
  1271. end
  1272.  
  1273.  
  1274.  
  1275. function fireinDhole()
  1276. Attack = true
  1277. local bomb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(1,1,1))
  1278. bomb1.Anchored=true
  1279. bomb1.CanCollide=true
  1280. game:GetService("Debris"):AddItem(orb1, 10)
  1281. bomb1.Elasticity = .3
  1282. local mbewm2 = Instance.new("SpecialMesh", bomb1)
  1283. mbewm2.MeshId = "rbxasset://fonts/timebomb.mesh"
  1284. mbewm2.TextureId = "rbxasset://textures/bombtex.png"
  1285. mbewm2.Scale = Vector3.new(1,1,1)
  1286.  
  1287. CFuncs.Sound.Create("11565378", bomb1, 1, 1)
  1288. for i = 0, 2, 0.1 do
  1289. swait()
  1290. PlayAnimationFromTable({
  1291. CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1292. CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1293. CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1294. CFrame.new(-1.66880238, 0.166423663, -0.183722675, 0.845035851, 0.182852611, -0.502473533, -0.291941375, 0.945062757, -0.147059917, 0.447978795, 0.270963728, 0.851994097) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1295. CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1296. CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1297. }, .3, false)
  1298. bomb1.CFrame = Dodgebox.CFrame
  1299. end
  1300. for i = 0, .5, 0.1 do
  1301. swait()
  1302. PlayAnimationFromTable({
  1303. CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1304. CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1305. CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1306. CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1307. CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1308. CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1309. }, .3, false)
  1310. bomb1.CFrame = Dodgebox.CFrame
  1311. end
  1312. bomb1.CFrame = RootPart.CFrame * CFrame.new(0,0,-3)
  1313. bomb1.Anchored=false
  1314. bomb1.Velocity=RootPart.CFrame.lookVector*50
  1315. for i = 0, .5, 0.1 do
  1316. swait()
  1317. PlayAnimationFromTable({
  1318. CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1319. CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1320. CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1321. CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1322. CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1323. CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1324. }, .3, false)
  1325. end
  1326. Attack = false
  1327. wait(4)
  1328. MagnitudeDamage(bomb1, 30, 0, 0, 400, "Normal", "112503990", 1)
  1329. Effects.Sphere.Create(BrickColor.new(Torso.Color), bomb1.CFrame, 3, 3, 3, 3, 3, 3, 0.03)
  1330. CFuncs.Sound.Create("169628396", bomb1, 3, 1)
  1331. bomb1.Transparency = 1
  1332. bomb1.Anchored=true
  1333. bomb1.CanCollide=false
  1334. local boo = Instance.new("Explosion", bomb1)
  1335. boo.Position = bomb1.Position
  1336. boo.BlastRadius = 30
  1337. boo.BlastPressure = 500
  1338. end
  1339.  
  1340.  
  1341.  
  1342.  
  1343. Mouse.KeyDown:connect(function(Key)
  1344. Key = Key:lower()
  1345. if Attack == false and Key == 'z' then
  1346. dodgeball()
  1347. elseif Attack == false and Key == 'x' then
  1348. roketlunch()
  1349. elseif Attack == false and Key == 'c' then
  1350. fireinDhole()
  1351. end
  1352. end)
  1353.  
  1354.  
  1355.  
  1356. Mouse.Button1Up:connect(function()
  1357. if Attack == false and Combo== 1 then
  1358. basicatk1()
  1359. Combo=2
  1360. elseif Attack == false and Combo== 2 then
  1361. basicatk2()
  1362. Combo=3
  1363. elseif Attack == false and Combo== 3 then
  1364. basicatk3()
  1365. Combo=1
  1366. end
  1367. end)
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373. --{{Linked Sword remake by SezHu. Made for WolfyKi11er.}}--
  1374. while true do
  1375. swait()
  1376. for i, v in pairs(Character:GetChildren()) do
  1377. if v:IsA("Part") then
  1378. v.Material = "SmoothPlastic"
  1379. elseif v:IsA("Accessory") then
  1380. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1381. end
  1382. end
  1383. for i, v in pairs(Character:GetChildren()) do
  1384. if v:IsA'Model' then
  1385. for _, c in pairs(v:GetChildren()) do
  1386. if c:IsA'Part' then
  1387. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1388. end
  1389. end
  1390. end
  1391. end
  1392. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1393. Velocity = RootPart.Velocity.y
  1394. Sine = Sine + Change
  1395. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1396. if RootPart.Velocity.y > 1 and hit == nil then
  1397. Anim = "Jump"
  1398. if Attack == false then
  1399. Change = 1
  1400. PlayAnimationFromTable({
  1401. CFrame.new(-0.0142319221, 0.0233184248, 0.0206878185, 1.00000012, 1.49011612e-08, 0, 2.72463048e-08, 0.965925992, 0.258818656, 2.98023224e-08, -0.258818597, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1402. CFrame.new(0.0172861218, 1.54588914, -0.00366462767, 0.999084175, 0.00742999092, -0.0421376228, -0.011074245, 0.996153653, -0.0869220346, 0.0413297117, 0.0873090774, 0.995323658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1403. CFrame.new(1.54051697, 0.254249156, -0.521965742, 0.890014946, -0.152965426, -0.429505706, -0.32768172, 0.440404594, -0.835864007, 0.317014515, 0.884672523, 0.341842651) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1404. CFrame.new(-1.55745959, 0.112057857, 0.343250573, 0.986049891, 0.113037676, 0.12218184, -0.158506706, 0.861737013, 0.481959641, -0.050808996, -0.49460274, 0.867632747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1405. CFrame.new(0.566533923, -1.59700418, -0.481964171, 0.999206185, -0.0385679156, -0.00998616219, 0.0397087261, 0.94381088, 0.328091979, -0.00322881341, -0.328228056, 0.944592893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1406. CFrame.new(-0.433014154, -1.95977831, 0.0051856637, 1, 0, 0, 0, 0.965925813, 0.258819401, -2.98023224e-08, -0.258819431, 0.965925753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1407. }, .3, false)
  1408. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1409. end
  1410. elseif RootPart.Velocity.y < -1 and hit == nil then
  1411. Anim = "Fall"
  1412. if Attack == false then
  1413. Change = 1
  1414. PlayAnimationFromTable({
  1415. CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1416. CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1417. CFrame.new(1.44003379, 0.0510732532, -0.418421805, 0.890014946, -0.0760585517, -0.449542671, -0.298804998, 0.647417247, -0.701118112, 0.344367683, 0.75833106, 0.553484201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1418. CFrame.new(-1.55745959, 0.141547889, 0.332177758, 0.986049891, 0.113037676, 0.12218184, -0.162331849, 0.815350056, 0.555745184, -0.036800772, -0.567826271, 0.822325349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1419. CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1420. CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1421. }, .3, false)
  1422. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1423. end
  1424. elseif TorsoVelocity < 1 and hit ~= nil then
  1425. Anim = "Idle"
  1426. if Attack == false then
  1427. Change = 1
  1428. PlayAnimationFromTable({
  1429. CFrame.new(-0.014233104, 0.0233179983, 0.020687025, 0.866024911, 0, -0.500000954, 0, 1, 0, 0.500000954, 0, 0.866024852) * CFrame.new(0, 0 + .05 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0),
  1430. CFrame.new(0, 1.49992597, 0, 0.886625588, 0, 0.462487936, 0, 1, 0, -0.462487817, 0, 0.886625707) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .08 * math.cos(Sine/25), 0, 0),
  1431. CFrame.new(1.70001733, 0.169989109, 0.310000241, 0.827918112, -0.251382649, -0.501356483, 0.215029001, 0.967887759, -0.130214334, 0.51799041, 6.03497028e-07, 0.855386436) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 + 2 * math.cos(Sine/25)), math.rad(0), math.rad(0)),
  1432. CFrame.new(-1.61998975, 0.0599977374, 2.55400209e-06, 0.981399894, 0.191975057, 4.17232513e-07, -0.191975072, 0.981399834, 9.87734779e-07, -2.38418579e-07, -1.05053186e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 - 2 * math.cos(Sine/25))),
  1433. CFrame.new(0.649993002, -1.99999797, 9.67067535e-07, 0.98969245, -0.143209025, 1.16229057e-06, 0.14320904, 0.98969245, -1.03930267e-06, -1.01327896e-06, 1.19954348e-06, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0 + .01 * math.cos(Sine/25)),
  1434. CFrame.new(-0.500000954, -2, -9.53674316e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0),
  1435. }, .3, false)
  1436. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1437. end
  1438. elseif TorsoVelocity > 2 and hit ~= nil then
  1439. Anim = "Walk"
  1440. if Attack == false then
  1441. PlayAnimationFromTable({
  1442. CFrame.new(-0.0142326364, 0.023318341, 0.0206875801, 1.00000012, 1.5803721e-08, 5.96046448e-08, 2.72463048e-08, 1, 5.61747235e-08, 2.98023224e-08, 2.44280045e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-.2, math.rad(0 - 10 * math.cos(Sine/6)/2), 0),
  1443. CFrame.new(1.03447394e-06, 1.49992573, -8.27737608e-07, 0.999084234, 2.72463048e-08, -0.0427876711, 2.93197502e-08, 1, 2.55612349e-08, 0.0427877009, 5.61747235e-08, 0.999084353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1444. CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, 0, 0 + .2 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 - 30 * math.cos(Sine/6)/2), 0, 0),
  1445. CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, 0, 0 - .3 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 + 30 * math.cos(Sine/6)/2), 0, 0),
  1446. CFrame.new(.5, -1.64 - 0.8 * math.cos(Sine / 6) / 2, 0 + 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-50 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)),
  1447. CFrame.new(-.5, -1.64 + 0.8 * math.cos(Sine / 6) / 2, 0 - 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(50 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .3, false)
  1448. FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1449. end
  1450. end
  1451.  
  1452. if #Effects > 0 then
  1453. for e = 1, #Effects do
  1454. if Effects[e] ~= nil then
  1455. local Thing = Effects[e]
  1456. if Thing ~= nil then
  1457. local Part = Thing[1]
  1458. local Mode = Thing[2]
  1459. local Delay = Thing[3]
  1460. local IncX = Thing[4]
  1461. local IncY = Thing[5]
  1462. if Thing[1].Transparency <= 1 then
  1463. if Thing[2] == "Block1" then
  1464. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1465. Mesh = Thing[7]
  1466. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1467. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1468. elseif Thing[2] == "Ice" then
  1469. if Thing[6] <= Thing[5] then
  1470. Thing[6] = Thing[6] + .05
  1471. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1472. else
  1473. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1474. end
  1475. elseif Thing[2] == "Shatter" then
  1476. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1477. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1478. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1479. Thing[6] = Thing[6] + Thing[5]
  1480. elseif Thing[2] == "Block2" then
  1481. Thing[1].CFrame = Thing[1].CFrame
  1482. Mesh = Thing[7]
  1483. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1484. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1485. elseif Thing[2] == "Block3" then
  1486. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1487. Mesh = Thing[7]
  1488. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1489. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1490. elseif Thing[2] == "Block4" then
  1491. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1492. Mesh = Thing[7]
  1493. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1494. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1495. elseif Thing[2] == "Block2Fire" then
  1496. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1497. Mesh = Thing[7]
  1498. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1499. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1500. if Thing[1].Transparency >= .3 then
  1501. Thing[1].BrickColor = BrickColor.new("Bright red")
  1502. else
  1503. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1504. end
  1505. elseif Thing[2] == "Cylinder" then
  1506. Mesh = Thing[7]
  1507. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1508. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1509. elseif Thing[2] == "Blood" then
  1510. Mesh = Thing[7]
  1511. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1512. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1513. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1514. elseif Thing[2] == "Elec" then
  1515. Mesh = Thing[10]
  1516. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1517. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1518. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1519. Thing[1].Rotation = Vector3.new(0, 0, 0)
  1520. elseif Thing[2] == "Disappear" then
  1521. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1522. end
  1523. else
  1524. Part.Parent = nil
  1525. table.remove(Effects, e)
  1526. end
  1527. end
  1528. end
  1529. end
  1530. end
  1531. Humanoid.Health = math.huge
  1532. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement