SHARE
TWEET

Untitled

a guest Nov 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --{{Linked Sword remake by SezHu. Made for Darkross. Whoever it is that spread this around, I hope you kill yourself.}}--
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Mouse = Player:GetMouse()
  6. local Character = Player.Character
  7. local Humanoid = Character.Humanoid
  8. local Head = Character.Head
  9. local RootPart = Character.HumanoidRootPart
  10. local Torso = Character.Torso
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Camera = game.Workspace.CurrentCamera
  16. local RootJoint = RootPart.RootJoint
  17. local Equipped = false
  18. local Attack = false
  19. local Anim = 'Idle'
  20. local Idle = 0
  21. local Combo = 1
  22. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  23. local Velocity = RootPart.Velocity.y
  24. local Sine = 0
  25. local Change = 1
  26. Instance.new("ForceField",Character).Visible = false
  27. Character.Humanoid.Name = "help"
  28. humanoid = Character.help
  29.  
  30. local RbxUtility = LoadLibrary("RbxUtility")
  31. local Create = RbxUtility.Create
  32.  
  33. humanoid.WalkSpeed = 13
  34. humanoid.JumpPower = 60
  35. humanoid.Animator.Parent = nil
  36. Character.Animate.Parent = nil
  37.  
  38. local newMotor = function(part0, part1, c0, c1)
  39.     local w = Create('Motor'){
  40.         Parent = part0,
  41.         Part0 = part0,
  42.         Part1 = part1,
  43.         C0 = c0,
  44.         C1 = c1,
  45.     }
  46.     return w
  47. end
  48.  
  49. function clerp(a, b, t)
  50.     return a:lerp(b, t)
  51. end
  52.  
  53. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  54. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  55.  
  56. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  57. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  58. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  59. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  60. RootJoint.C1 = CFrame.new(0, 0, 0)
  61. RootJoint.C0 = CFrame.new(0, 0, 0)
  62. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  63. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  64.  
  65. local rarmc1 = RW.C1
  66. local larmc1 = LW.C1
  67. local rlegc1 = RH.C1
  68. local llegc1 = LH.C1
  69.  
  70. local resetc1 = false
  71.  
  72. function PlayAnimationFromTable(table, speed, bool)
  73.     RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  74.     Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  75.     RW.C0 = clerp(RW.C0, table[3], speed)
  76.     LW.C0 = clerp(LW.C0, table[4], speed)
  77.     RH.C0 = clerp(RH.C0, table[5], speed)
  78.     LH.C0 = clerp(LH.C0, table[6], speed)
  79.     if bool == true then
  80.         if resetc1 == false then
  81.             resetc1 = true
  82.             RootJoint.C1 = RootJoint.C1
  83.             Torso.Neck.C1 = Torso.Neck.C1
  84.             RW.C1 = rarmc1
  85.             LW.C1 = larmc1
  86.             RH.C1 = rlegc1
  87.             LH.C1 = llegc1
  88.         end
  89.     end
  90. end
  91.  
  92. ArtificialHB = Create("BindableEvent"){
  93.     Parent = script,
  94.     Name = "Heartbeat",
  95. }
  96.  
  97. script:WaitForChild("Heartbeat")
  98.  
  99. frame = 1 / 45
  100. tf = 0
  101. allowframeloss = false
  102. tossremainder = false
  103. lastframe = tick()
  104. script.Heartbeat:Fire()
  105.  
  106. game:GetService("RunService").Heartbeat:connect(function(s, p)
  107.     tf = tf + s
  108.     if tf >= frame then
  109.         if allowframeloss then
  110.             script.Heartbeat:Fire()
  111.             lastframe = tick()
  112.         else
  113.             for i = 1, math.floor(tf / frame) do
  114.                 script.Heartbeat:Fire()
  115.             end
  116.             lastframe = tick()
  117.         end
  118.         if tossremainder then
  119.             tf = 0
  120.         else
  121.             tf = tf - frame * math.floor(tf / frame)
  122.         end
  123.     end
  124. end)
  125.  
  126. function swait(num)
  127.     if num == 0 or num == nil then
  128.         ArtificialHB.Event:wait()
  129.     else
  130.         for i = 0, num do
  131.             ArtificialHB.Event:wait()
  132.         end
  133.     end
  134. end
  135.  
  136. local m = Create("Model"){
  137.     Parent = Character,
  138.     Name = "WeaponModel"
  139. }
  140.  
  141. function RemoveOutlines(part)
  142.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  143. end
  144.    
  145. CFuncs = { 
  146.     Part = {
  147.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  148.             local Part = Create("Part"){
  149.                 Parent = Parent,
  150.                 Reflectance = Reflectance,
  151.                 Transparency = Transparency,
  152.                 CanCollide = false,
  153.                 Locked = true,
  154.                 BrickColor = BrickColor.new(tostring(BColor)),
  155.                 Name = Name,
  156.                 Size = Size,
  157.                 Material = Material,
  158.             }
  159.             RemoveOutlines(Part)
  160.             if Size == Vector3.new() then
  161.                 Part.Size = Vector3.new(0.2, 0.2, 0.2)
  162.             else
  163.                 Part.Size = Size
  164.             end
  165.             return Part
  166.         end;
  167.     };
  168.    
  169.     Mesh = {
  170.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171.             local Msh = Create(Mesh){
  172.                 Parent = Part,
  173.                 Offset = OffSet,
  174.                 Scale = Scale,
  175.             }
  176.             if Mesh == "SpecialMesh" then
  177.                 Msh.MeshType = MeshType
  178.                 Msh.MeshId = MeshId
  179.             end
  180.             return Msh
  181.         end;
  182.     };
  183.  
  184.     Weld = {
  185.         Create = function(Parent, Part0, Part1, C0, C1)
  186.             local Weld = Create("Weld"){
  187.                 Parent = Parent,
  188.                 Part0 = Part0,
  189.                 Part1 = Part1,
  190.                 C0 = C0,
  191.                 C1 = C1,
  192.             }
  193.             return Weld
  194.         end;
  195.     };
  196.  
  197.     Sound = {
  198.         Create = function(id, par, vol, pit)
  199.             coroutine.resume(coroutine.create(function()
  200.                 local S = Create("Sound"){
  201.                     Volume = vol,
  202.                     Pitch = pit or 1,
  203.                     SoundId = "rbxassetid://" .. id,
  204.                     Parent = par or workspace,
  205.                 }
  206.                 wait()
  207.                 S:play()
  208.                 game:GetService("Debris"):AddItem(S, 10)
  209.             end))
  210.         end;
  211.     };
  212.    
  213.     ParticleEmitter = {
  214.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  215.             local Particle = Create("ParticleEmitter"){
  216.                 Parent = Parent,
  217.                 Color = ColorSequence.new(Color1, Color2),
  218.                 LightEmission = LightEmission,
  219.                 Size = Size,
  220.                 Texture = Texture,
  221.                 Transparency = Transparency,
  222.                 ZOffset = ZOffset,
  223.                 Acceleration = Accel,
  224.                 Drag = Drag,
  225.                 LockedToPart = LockedToPart,
  226.                 VelocityInheritance = VelocityInheritance,
  227.                 EmissionDirection = EmissionDirection,
  228.                 Enabled = Enabled,
  229.                 Lifetime = LifeTime,
  230.                 Rate = Rate,
  231.                 Rotation = Rotation,
  232.                 RotSpeed = RotSpeed,
  233.                 Speed = Speed,
  234.                 VelocitySpread = VelocitySpread,
  235.             }
  236.             return Particle
  237.         end;
  238.     };
  239.    
  240.     CreateTemplate = {
  241.        
  242.     };
  243. }
  244.  
  245.  
  246. SwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325))
  247. 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))
  248.  
  249. FSwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325))
  250. 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))
  251.  
  252. SwordHitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHitbox",Vector3.new(2.86000085, 0.780000031, 0.490000904))
  253. 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))
  254. Sword=CFuncs.Part.Create(m,Enum.Material.Plastic,0.40000000596046,0,"Dark stone grey","Sword",Vector3.new(1, 0.800000012, 4))
  255. 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))
  256. CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  257. SwordTip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordTip",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007))
  258. 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))
  259. SwordBase=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordBase",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007))
  260. 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))
  261. sw00ng=CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  262. sw00ng.TextureId = "rbxasset://textures/SwordTexture.png"
  263. Dodgebox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Dodgebox",Vector3.new(0.380000204, 0.440000057, 0.370000631))
  264. 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))
  265. RHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RHandle",Vector3.new(4.92000628, 0.740000546, 0.839999795))
  266. 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))
  267. 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))
  268. RocketMaker=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RocketMaker",Vector3.new(0.349999934, 0.350000024, 0.369999945))
  269. 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))
  270.  
  271. 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))
  272. kaboomsky.TextureId = "rbxasset://textures/rocketlaunchertex.png"
  273.  
  274.  
  275.  
  276. swordtrail = Instance.new("Trail", SwordHitbox)
  277. A2 = Instance.new('Attachment',SwordBase)
  278. A3 = Instance.new('Attachment',SwordTip)
  279. swordtrail.Lifetime = .1
  280. swordtrail.Enabled = false
  281. swordtrail.Attachment0 = A2
  282. swordtrail.Attachment1 = A3
  283. local startColor = Color3.new(0, 0, 0)
  284. local endColor = Color3.new(200,200, 200)
  285. local startT = .2
  286. local endT = .8
  287.  
  288. local sequence = ColorSequence.new(startColor, endColor)
  289. local sequence2 = NumberSequence.new(startT, endT)
  290.  
  291. swordtrail.Color = sequence
  292. swordtrail.Transparency = sequence2
  293.  
  294.  
  295. function RayCast(Position, Direction, Range, Ignore)
  296.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  297. end
  298.  
  299. FindNearestTorso = function(pos)
  300.     local list = (game.Workspace:children())
  301.     local torso = nil
  302.     local dist = 1000
  303.     local temp, human, temp2 = nil, nil, nil
  304.     for x = 1, #list do
  305.         temp2 = list[x]
  306.         if temp2.className == "Model" and temp2.Name ~= Character.Name then
  307.             temp = temp2:findFirstChild("Torso")
  308.             human = temp2:findFirstChild("Humanoid")
  309.             if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  310.                 local dohit = true
  311.                 if dohit == true then
  312.                     torso = temp
  313.                     dist = (temp.Position - pos).magnitude
  314.                 end
  315.             end
  316.         end
  317.     end
  318.     return torso, dist
  319. end
  320.  
  321. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  322.     if hit.Parent == nil then
  323.         return
  324.     end
  325.     local h = hit.Parent:FindFirstChild("Humanoid")
  326.     for _, v in pairs(hit.Parent:children()) do
  327.         if v:IsA("Humanoid") then
  328.             h = v
  329.         end
  330.     end
  331.     if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  332.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  333.             if hit.Parent.DebounceHit.Value == true then
  334.                 return
  335.             end
  336.         end
  337.         local c = Create("ObjectValue"){
  338.             Name = "creator",
  339.             Value = game:service("Players").LocalPlayer,
  340.             Parent = h,
  341.         }
  342.         game:GetService("Debris"):AddItem(c, .5)
  343.         if HitSound ~= nil and HitPitch ~= nil then
  344.             CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  345.         end
  346.         local Damage = math.random(minim, maxim)
  347.         local blocked = false
  348.         local block = hit.Parent:findFirstChild("Block")
  349.         if block ~= nil then
  350.             if block.className == "IntValue" then
  351.                 if block.Value > 0 then
  352.                     blocked = true
  353.                     block.Value = block.Value - 1
  354.                     print(block.Value)
  355.                 end
  356.             end
  357.         end
  358.         if blocked == false then
  359.             h.Health = h.Health - Damage
  360.             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)
  361.         else
  362.             h.Health = h.Health - (Damage / 2)
  363.             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)
  364.         end
  365.         if Type == "Knockdown" then
  366.             local hum = hit.Parent.Humanoid
  367.             hum.PlatformStand = true
  368.             coroutine.resume(coroutine.create(function(HHumanoid)
  369.                 swait(1)
  370.                 HHumanoid.PlatformStand = false
  371.             end), hum)
  372.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  373.             local bodvol = Create("BodyVelocity"){
  374.                 velocity = angle * knockback,
  375.                 P = 5000,
  376.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  377.                 Parent = hit,
  378.             }
  379.             local rl = Create("BodyAngularVelocity"){
  380.                 P = 3000,
  381.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  382.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  383.                 Parent = hit,
  384.             }
  385.             game:GetService("Debris"):AddItem(bodvol, .5)
  386.             game:GetService("Debris"):AddItem(rl, .5)
  387.         elseif Type == "Normal" then
  388.             local vp = Create("BodyVelocity"){
  389.                 P = 500,
  390.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  391.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  392.             }
  393.             hit.Parent.Torso:BreakJoints()
  394.             if knockback > 0 then
  395.                 vp.Parent = hit.Parent.Torso
  396.             end
  397.             game:GetService("Debris"):AddItem(vp, .5)
  398.         elseif Type == "Up" then
  399.             local bodyVelocity = Create("BodyVelocity"){
  400.                 velocity = Vector3.new(0, 20, 0),
  401.                 P = 5000,
  402.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  403.                 Parent = hit,
  404.             }
  405.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  406.         elseif Type == "DarkUp" then
  407.             coroutine.resume(coroutine.create(function()
  408.                 for i = 0, 1, 0.1 do
  409.                     swait()
  410.                     Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  411.                 end
  412.             end))
  413.             local bodyVelocity = Create("BodyVelocity"){
  414.                 velocity = Vector3.new(0, 20, 0),
  415.                 P = 5000,
  416.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  417.                 Parent = hit,
  418.             }
  419.             game:GetService("Debris"):AddItem(bodyVelocity, 1)
  420.         elseif Type == "Snare" then
  421.             local bp = Create("BodyPosition"){
  422.                 P = 2000,
  423.                 D = 100,
  424.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  425.                 position = hit.Parent.Torso.Position,
  426.                 Parent = hit.Parent.Torso,
  427.             }
  428.             game:GetService("Debris"):AddItem(bp, 1)
  429.         elseif Type == "Freeze" then
  430.             local BodPos = Create("BodyPosition"){
  431.                 P = 50000,
  432.                 D = 1000,
  433.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  434.                 position = hit.Parent.Torso.Position,
  435.                 Parent = hit.Parent.Torso,
  436.             }
  437.             local BodGy = Create("BodyGyro") {
  438.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  439.                 P = 20e+003,
  440.                 Parent = hit.Parent.Torso,
  441.                 cf = hit.Parent.Torso.CFrame,
  442.             }
  443.             hit.Parent.Torso.Anchored = true
  444.             coroutine.resume(coroutine.create(function(Part)
  445.                 swait(1.5)
  446.                 Part.Anchored = false
  447.             end), hit.Parent.Torso)
  448.             game:GetService("Debris"):AddItem(BodPos, 3)
  449.             game:GetService("Debris"):AddItem(BodGy, 3)
  450.         end
  451.         local debounce = Create("BoolValue"){
  452.             Name = "DebounceHit",
  453.             Parent = hit.Parent,
  454.             Value = true,
  455.         }
  456.         game:GetService("Debris"):AddItem(debounce, Delay)
  457.         c = Create("ObjectValue"){
  458.             Name = "creator",
  459.             Value = Player,
  460.             Parent = h,
  461.         }
  462.         game:GetService("Debris"):AddItem(c, .5)
  463.     end
  464. end
  465.  
  466. function ShowDamage(Pos, Text, Time, Color)
  467.     local Rate = (1 / 30)
  468.     local Pos = (Pos or Vector3.new(0, 0, 0))
  469.     local Text = (Text or "")
  470.     local Time = (Time or 2)
  471.     local Color = (Color or Color3.new(1, 0, 1))
  472.     local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  473.     EffectPart.Anchored = true
  474.     local BillboardGui = Create("BillboardGui"){
  475.         Size = UDim2.new(3, 0, 3, 0),
  476.         Adornee = EffectPart,
  477.         Parent = EffectPart,
  478.     }
  479.     local TextLabel = Create("TextLabel"){
  480.         BackgroundTransparency = 1,
  481.         Size = UDim2.new(1, 0, 1, 0),
  482.         Text = Text,
  483.         Font = "SourceSansLight",
  484.         TextColor3 = Color,
  485.         TextScaled = true,
  486.         Parent = BillboardGui,
  487.     }
  488.     game.Debris:AddItem(EffectPart, (Time))
  489.     EffectPart.Parent = game:GetService("Workspace")
  490.     delay(0, function()
  491.         local Frames = (Time / Rate)
  492.         for Frame = 1, Frames do
  493.             wait(Rate)
  494.             local Percent = (Frame / Frames)
  495.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  496.             TextLabel.TextTransparency = Percent
  497.         end
  498.         if EffectPart and EffectPart.Parent then
  499.             EffectPart:Destroy()
  500.         end
  501.     end)
  502. end
  503.  
  504. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  505.     for _, c in pairs(workspace:children()) do
  506.         local hum = c:findFirstChild("Humanoid")
  507.         if hum ~= nil then
  508.             local head = c:findFirstChild("Torso")
  509.             if head ~= nil then
  510.                 local targ = head.Position - Part.Position
  511.                 local mag = targ.magnitude
  512.                 if mag <= Magnitude and c.Name ~= Player.Name then
  513.                     Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  514.                 end
  515.             end
  516.         end
  517.     end
  518. end
  519.  
  520. EffectModel = Create("Model"){
  521.     Parent = Character,
  522.     Name = "EffectModel",
  523. }
  524.  
  525. Effects = {
  526.     Block = {
  527.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  528.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  529.             prt.Anchored = true
  530.             prt.CFrame = cframe
  531.             msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  532.             game:GetService("Debris"):AddItem(prt, 10)
  533.             if Type == 1 or Type == nil then
  534.                 table.insert(Effects, {
  535.                     prt,
  536.                     "Block1",
  537.                     delay,
  538.                     x3,
  539.                     y3,
  540.                     z3,
  541.                     msh
  542.                 })
  543.             elseif Type == 2 then
  544.                 table.insert(Effects, {
  545.                     prt,
  546.                     "Block2",
  547.                     delay,
  548.                     x3,
  549.                     y3,
  550.                     z3,
  551.                     msh
  552.                 })
  553.             elseif Type == 3 then
  554.                 table.insert(Effects, {
  555.                     prt,
  556.                     "Block3",
  557.                     delay,
  558.                     x3,
  559.                     y3,
  560.                     z3,
  561.                     msh,
  562.                     Part
  563.                 })
  564.             elseif Type == 4 then
  565.                 table.insert(Effects, {
  566.                     prt,
  567.                     "Block2Fire",
  568.                     delay,
  569.                     x3,
  570.                     y3,
  571.                     z3,
  572.                     msh
  573.                 })
  574.             end
  575.         end
  576.     };
  577.  
  578.     Sphere = {
  579.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  580.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  581.             prt.Anchored = true
  582.             prt.CFrame = cframe
  583.             if parent == nil then
  584.                 prt.Parent = workspace
  585.             else
  586.                 prt.Parent = parent
  587.             end
  588.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  589.             game:GetService("Debris"):AddItem(prt, 10)
  590.             table.insert(Effects, {
  591.                 prt,
  592.                 "Cylinder",
  593.                 delay,
  594.                 x3,
  595.                 y3,
  596.                 z3,
  597.                 msh
  598.             })
  599.         end
  600.     };
  601.  
  602.     Blood = {
  603.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  604.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  605.             prt.Anchored = true
  606.             prt.CFrame = cframe
  607.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  608.             game:GetService("Debris"):AddItem(prt, 10)
  609.             table.insert(Effects, {
  610.                 prt,
  611.                 "Blood",
  612.                 delay,
  613.                 x3,
  614.                 y3,
  615.                 z3,
  616.                 msh
  617.             })
  618.         end
  619.     };
  620.  
  621.     Blast = {
  622.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  623.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  624.             prt.Anchored = true
  625.             prt.CFrame = cframe
  626.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  627.             game:GetService("Debris"):AddItem(prt, 10)
  628.             table.insert(Effects, {
  629.                 prt,
  630.                 "Block4",
  631.                 delay,
  632.                 x3,
  633.                 y3,
  634.                 z3,
  635.                 msh,
  636.                 Part
  637.             })
  638.         end
  639.     };
  640.  
  641.     Ring = {
  642.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  643.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  644.             prt.Anchored = true
  645.             prt.CFrame = cframe
  646.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  647.             game:GetService("Debris"):AddItem(prt, 10)
  648.             table.insert(Effects, {
  649.                 prt,
  650.                 "Cylinder",
  651.                 delay,
  652.                 x3,
  653.                 y3,
  654.                 z3,
  655.                 msh
  656.             })
  657.         end
  658.     };
  659.  
  660.     Cylinder = {
  661.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  662.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  663.             prt.Anchored = true
  664.             prt.CFrame = cframe
  665.             local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  666.             game:GetService("Debris"):AddItem(prt, 10)
  667.             table.insert(Effects, {
  668.                 prt,
  669.                 "Cylinder",
  670.                 delay,
  671.                 x3,
  672.                 y3,
  673.                 z3,
  674.                 msh
  675.             })
  676.         end
  677.     };
  678.  
  679.     Head = {
  680.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  681.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  682.             prt.Anchored = true
  683.             prt.CFrame = cframe
  684.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  685.             game:GetService("Debris"):AddItem(prt, 10)
  686.             table.insert(Effects, {
  687.                 prt,
  688.                 "Cylinder",
  689.                 delay,
  690.                 x3,
  691.                 y3,
  692.                 z3,
  693.                 msh
  694.             })
  695.         end
  696.     };
  697.  
  698.     Wave = {
  699.         Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  700.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  701.             prt.Anchored = true
  702.             prt.CFrame = cframe
  703.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  704.             game:GetService("Debris"):AddItem(prt, 10)
  705.             table.insert(Effects, {
  706.                 prt,
  707.                 "Cylinder",
  708.                 delay,
  709.                 x3,
  710.                 y3,
  711.                 z3,
  712.                 msh
  713.             })
  714.         end
  715.     };
  716.  
  717.     Break = {
  718.         Create = function(brickcolor, cframe, x1, y1, z1)
  719.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  720.             prt.Anchored = true
  721.             prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  722.             game:GetService("Debris"):AddItem(prt, 10)
  723.             local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  724.             local num = math.random(10, 50) / 1000
  725.             table.insert(Effects, {
  726.                 prt,
  727.                 "Shatter",
  728.                 num,
  729.                 prt.CFrame,
  730.                 math.random() - math.random(),
  731.                 0,
  732.                 math.random(50, 100) / 100
  733.             })
  734.         end
  735.     };
  736.  
  737.     Elec = {
  738.         Create = function(brickcolor, cff, x, y, z)
  739.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  740.             prt.Anchored = true
  741.             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)
  742.             prt.CFrame = CFrame.new(prt.Position)
  743.             game:GetService("Debris"):AddItem(prt, 10)
  744.             xval = math.random() / 9
  745.             yval = math.random() / 9
  746.             zval = math.random() / 9
  747.             msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  748.             eul1 = math.random(-50, 50)
  749.             eul2 = math.random(-50, 50)
  750.             eul3 = math.random(-50, 50)
  751.             euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  752.             euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  753.             table.insert(Effects, {
  754.                 prt,
  755.                 "Elec",
  756.                 .05,
  757.                 x,
  758.                 y,
  759.                 z,
  760.                 xval,
  761.                 yval,
  762.                 zval,
  763.                 msh,
  764.                 euld,
  765.                 euld2
  766.             })
  767.         end
  768.     };
  769.  
  770.     Elec2 = {
  771.         Create = function(brickcolor, cff, x, y, z)
  772.             local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  773.             prt.Anchored = true
  774.             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)
  775.             prt.CFrame = CFrame.new(prt.Position)
  776.             game:GetService("Debris"):AddItem(prt, 10)
  777.             xval = math.random() / 7
  778.             yval = math.random() / 7
  779.             zval = math.random() / 7
  780.             msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  781.             eul1 = math.random(-50, 50)
  782.             eul2 = math.random(-50, 50)
  783.             eul3 = math.random(-50, 50)
  784.             euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  785.             euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  786.             table.insert(Effects, {
  787.                 prt,
  788.                 "Elec",
  789.                 .1,
  790.                 x,
  791.                 y,
  792.                 z,
  793.                 xval,
  794.                 yval,
  795.                 zval,
  796.                 msh,
  797.                 euld,
  798.                 euld2
  799.             })
  800.         end
  801.     };
  802.  
  803.     Clone = {
  804.         Create = function()
  805.             for _, v in pairs(Torso.Parent:children()) do
  806.                 if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  807.                     local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  808.                     c.Anchored = true
  809.                     c.CFrame = v.CFrame
  810.                     game:GetService("Debris"):AddItem(c, 5)
  811.                     local cmsh = nil
  812.                     if v.Name == "Head" then
  813.                         cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  814.                     else
  815.                         cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  816.                     end
  817.                     table.insert(Effects, {
  818.                         c,
  819.                         "Cylinder",
  820.                         0.05,
  821.                         0.1,
  822.                         0.1,
  823.                         0.1,
  824.                         cmsh
  825.                     })
  826.                 end
  827.             end
  828.         end
  829.     };
  830.  
  831.     EffectTemplate = {
  832.  
  833.     };
  834. }
  835.  
  836.  
  837.  
  838. function basicatk3()
  839.     Attack = true
  840.     for i = 0, 1, 0.1 do
  841.         swait()
  842.         PlayAnimationFromTable({
  843.          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),
  844.          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),
  845.          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),
  846.          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),
  847.          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),
  848.          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),
  849.         }, .3, false)
  850.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  851.     end
  852.     swordtrail.Enabled = true
  853.     local con = SwordHitbox.Touched:connect(function(hit)
  854.     Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  855.     CFuncs.Sound.Create("12222208", SwordHitbox, 1, 1)
  856.         for i = 0, 1, 0.1 do
  857.         swait()
  858.         PlayAnimationFromTable({
  859.          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),
  860.          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),
  861.          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),
  862.          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),
  863.          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),
  864.          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),
  865.         }, .3, false)
  866.         Torso.Velocity=RootPart.CFrame.lookVector*50
  867.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), .5)
  868.         end
  869.         Torso.Velocity=RootPart.CFrame.lookVector*0
  870.         con:Disconnect()
  871.         swordtrail.Enabled = false
  872.     Attack = false
  873. end
  874.  
  875. function basicatk1()
  876.     Attack = true
  877.     CFuncs.Sound.Create("12222216", SwordHitbox, 1, 1)
  878.         local con = SwordHitbox.Touched:connect(function(hit)
  879.     Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  880.     for i = 0, 1, 0.1 do
  881.         swait()
  882.         PlayAnimationFromTable({
  883.          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),
  884.          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),
  885.          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),
  886.          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),
  887.          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),
  888.          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),
  889.         }, .3, false)
  890.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 1)
  891.     end
  892.     swordtrail.Enabled = true
  893.         for i = 0, .5, 0.1 do
  894.         swait()
  895.         PlayAnimationFromTable({
  896.          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),
  897.          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),
  898.          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),
  899.          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),
  900.          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),
  901.          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),
  902.         }, .3, false)
  903.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), 1)
  904.     end
  905.    
  906.    
  907.     for i = 0, .5, 0.1 do
  908.         swait()
  909.         PlayAnimationFromTable({
  910.          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),
  911.          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),
  912.          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),
  913.          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),
  914.          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),
  915.          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),
  916.         }, .3, false)
  917.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .1)
  918.     end
  919.     swordtrail.Enabled = false
  920.         con:Disconnect()
  921.     Attack = false
  922. end
  923.  
  924.  
  925.  
  926.  
  927.  
  928. function basicatk2()
  929.     Attack = true
  930.     CFuncs.Sound.Create("12222216", SwordHitbox, 1, .8)
  931.         local con = SwordHitbox.Touched:connect(function(hit)
  932.     Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end)
  933.         for i = 0, .5, 0.1 do
  934.             PlayAnimationFromTable({
  935.          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),
  936.          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),
  937.          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),
  938.          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),
  939.          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),
  940.          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),
  941.             }, .3, false)
  942.             FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  943.         end
  944.         swordtrail.Enabled = true
  945.     for i = 0, .5, 0.1 do
  946.         swait()
  947.         PlayAnimationFromTable({
  948.          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),
  949.          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),
  950.          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),
  951.          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),
  952.          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),
  953.          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),
  954.         }, .3, false)
  955.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  956.     end
  957.     for i = 0, .5, 0.1 do
  958.         swait()
  959.         PlayAnimationFromTable({
  960.          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),
  961.          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),
  962.          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),
  963.          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),
  964.          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),
  965.          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),
  966.         }, .3, false)
  967.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  968.     end
  969.     for i = 0, .5, 0.1 do
  970.         swait()
  971.         PlayAnimationFromTable({
  972.          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),
  973.          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),
  974.          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),
  975.          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),
  976.          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),
  977.          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),
  978.         }, .3, false)
  979.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  980.     end
  981.     swordtrail.Enabled = false 
  982.         con:Disconnect()
  983.     Attack = false
  984. end
  985.  
  986.  
  987. function dodgeball()
  988.     Attack = true
  989.     humanoid.AutoRotate = false
  990.         local spawnPos = Torso.Position
  991. orb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(2,2,2)) 
  992. orb1.Anchored=true
  993. orb1.CanCollide=false
  994.  
  995. game:GetService("Debris"):AddItem(orb1, 10)
  996. orb1.Elasticity = 1
  997.         local mbewm2 = Instance.new("SpecialMesh", orb1)
  998.         mbewm2.MeshType = "Sphere"
  999.         mbewm2.Scale = Vector3.new(1,1,1)
  1000.     game:GetService("Debris"):AddItem(orb1, 3)
  1001.     for i = 0, 2, 0.1 do
  1002.         orb1.CFrame = Dodgebox.CFrame
  1003.         swait()
  1004.         PlayAnimationFromTable({
  1005.          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),
  1006.          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),
  1007.          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),
  1008.          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),
  1009.          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),
  1010.          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),
  1011.         }, .3, false)
  1012.         RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1013.     end
  1014.         local con = orb1.Touched:connect(function(hit)
  1015.      CFuncs.Sound.Create("112503990", Torso, 1, .8)end)
  1016.     orb1.Anchored=false
  1017.     orb1.CanCollide=true
  1018.    
  1019.     local roketsped = 500
  1020.         local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -3)).p
  1021.         orb1.CFrame = CFrame.new(spawnPosition, Mouse.hit.p)
  1022.         orb1.Velocity = orb1.CFrame.lookVector * roketsped
  1023. local GRAVITY_ACCELERATION = 196.2
  1024.     local bodyForce = Instance.new('BodyForce', orb1)
  1025.     bodyForce.Name = 'Antigravity'
  1026.     bodyForce.force = Vector3.new(0, orb1:GetMass() * GRAVITY_ACCELERATION, 0)
  1027.    
  1028. game:GetService("Debris"):AddItem(orb1, 8)
  1029.  
  1030.     for i = 0, 1, 0.1 do
  1031.         swait()
  1032.         PlayAnimationFromTable({
  1033.          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),
  1034.          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),
  1035.          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),
  1036.          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),
  1037.          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),
  1038.          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),
  1039.         }, .3, false)
  1040.         RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1041.     end
  1042.     humanoid.AutoRotate = true
  1043.     Attack = false
  1044.     while orb1 do
  1045.     swait()
  1046.     MagnitudeDamage(orb1, 4, 0, 0, 100, "Normal", "112503990", 1)  
  1047.     end
  1048.    
  1049. end
  1050.  
  1051.  
  1052. function roketlunch()
  1053.     Attack = true
  1054.     humanoid.WalkSpeed = 0
  1055.     humanoid.JumpPower = 0
  1056.     RHandle.Transparency = 0
  1057.     Sword.Transparency = 1
  1058.     for i = 0, 1, 0.1 do
  1059.         swait()
  1060.         PlayAnimationFromTable({
  1061.          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),
  1062.          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),
  1063.          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),
  1064.          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),
  1065.          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),
  1066.          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),
  1067.         }, .3, false)
  1068.     end
  1069.    
  1070.    
  1071.         for i = 0, 3, 0.1 do
  1072.         swait()
  1073.         PlayAnimationFromTable({
  1074.          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),
  1075.          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),
  1076.          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),
  1077.          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),
  1078.          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),
  1079.          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),
  1080.         }, .3, false)
  1081.         RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1082.         end
  1083.        
  1084.         local roket=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Smoky grey"), "ref", Vector3.new(1,1,2))   
  1085. roket.Anchored=false
  1086. roket.CanCollide=true
  1087. local roketsped = 100
  1088.         local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -6)).p
  1089.         roket.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) --NOTE: This must be done before assigning Parent
  1090.         roket.Velocity = roket.CFrame.lookVector * roketsped
  1091. CFuncs.Sound.Create("31761785", roket, 3, 1)
  1092. local GRAVITY_ACCELERATION = 196.2
  1093.     local bodyForce = Instance.new('BodyForce', roket)
  1094.     bodyForce.Name = 'Antigravity'
  1095.     bodyForce.force = Vector3.new(0, roket:GetMass() * GRAVITY_ACCELERATION, 0)
  1096.    
  1097. game:GetService("Debris"):AddItem(roket, 8)
  1098.         local con = roket.Touched:connect(function(hit)
  1099.     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
  1100. boo.BlastPressure = 500 roket:Destroy() end)   
  1101.             for i = 0, 2, 0.1 do
  1102.         swait()
  1103.         PlayAnimationFromTable({
  1104.          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),
  1105.          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),
  1106.          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),
  1107.          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),
  1108.          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),
  1109.          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),
  1110.         }, .3, false)
  1111.         Torso.Velocity=RootPart.CFrame.lookVector*-20
  1112.         RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z))
  1113.     end
  1114.     RHandle.Transparency = 1
  1115.     Sword.Transparency = 0
  1116.    
  1117.     humanoid.WalkSpeed = 13
  1118.     humanoid.JumpPower = 60
  1119.     Attack = false
  1120.     end
  1121.  
  1122.  
  1123.  
  1124. function fireinDhole()
  1125.     Attack = true
  1126.         local bomb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(1,1,1))  
  1127.         bomb1.Anchored=true
  1128.         bomb1.CanCollide=true
  1129.         game:GetService("Debris"):AddItem(orb1, 10)
  1130.         bomb1.Elasticity = .3
  1131.         local mbewm2 = Instance.new("SpecialMesh", bomb1)
  1132.         mbewm2.MeshId = "rbxasset://fonts/timebomb.mesh"
  1133.         mbewm2.TextureId = "rbxasset://textures/bombtex.png"
  1134.         mbewm2.Scale = Vector3.new(1,1,1)
  1135.    
  1136.     CFuncs.Sound.Create("11565378", bomb1, 1, 1)
  1137.     for i = 0, 2, 0.1 do
  1138.         swait()
  1139.         PlayAnimationFromTable({
  1140.          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),
  1141.          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),
  1142.          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),
  1143.          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),
  1144.          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),
  1145.          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),
  1146.         }, .3, false)
  1147.         bomb1.CFrame = Dodgebox.CFrame
  1148.     end
  1149.         for i = 0, .5, 0.1 do
  1150.         swait()
  1151.         PlayAnimationFromTable({
  1152.          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),
  1153.          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),
  1154.          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),
  1155.          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),
  1156.          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),
  1157.          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),
  1158.         }, .3, false)
  1159.         bomb1.CFrame = Dodgebox.CFrame
  1160.     end
  1161.     bomb1.CFrame = RootPart.CFrame * CFrame.new(0,0,-3)
  1162.     bomb1.Anchored=false
  1163.     bomb1.Velocity=RootPart.CFrame.lookVector*50
  1164.     for i = 0, .5, 0.1 do
  1165.         swait()
  1166.         PlayAnimationFromTable({
  1167.          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),
  1168.          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),
  1169.          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),
  1170.          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),
  1171.          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),
  1172.          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),
  1173.         }, .3, false)
  1174.     end
  1175.     Attack = false
  1176.     wait(4)
  1177.     MagnitudeDamage(bomb1, 30, 0, 0, 400, "Normal", "112503990", 1)
  1178.     Effects.Sphere.Create(BrickColor.new(Torso.Color), bomb1.CFrame, 3, 3, 3, 3, 3, 3, 0.03)
  1179.     CFuncs.Sound.Create("169628396", bomb1, 3, 1)
  1180.     bomb1.Transparency = 1
  1181.     bomb1.Anchored=true
  1182.     bomb1.CanCollide=false
  1183.     local boo = Instance.new("Explosion", bomb1)   
  1184. boo.Position = bomb1.Position
  1185. boo.BlastRadius = 30
  1186. boo.BlastPressure = 500
  1187. end
  1188.  
  1189.  
  1190.  
  1191.  
  1192. Mouse.KeyDown:connect(function(Key)
  1193.     Key = Key:lower()
  1194.         if Attack == false and Key == 'z' then
  1195.         dodgeball()
  1196.                         elseif Attack == false and Key == 'x' then
  1197.         roketlunch()
  1198.                 elseif Attack == false and Key == 'c' then
  1199.         fireinDhole()
  1200.     end
  1201. end)
  1202.  
  1203.  
  1204.  
  1205. Mouse.Button1Up:connect(function()
  1206.     if Attack == false and Combo== 1 then
  1207.         basicatk1()
  1208.         Combo=2
  1209.         elseif Attack == false and Combo== 2 then
  1210.         basicatk2()
  1211.         Combo=3
  1212.     elseif Attack == false and Combo== 3 then
  1213.         basicatk3()
  1214.         Combo=1
  1215.     end
  1216.     end)
  1217.  
  1218.  
  1219.    
  1220.  
  1221.  
  1222. --{{Linked Sword remake by SezHu. Made for WolfyKi11er.}}--
  1223. while true do
  1224.     swait()
  1225.     for i, v in pairs(Character:GetChildren()) do
  1226.         if v:IsA("Part") then
  1227.             v.Material = "SmoothPlastic"
  1228.         elseif v:IsA("Accessory") then
  1229.             v:WaitForChild("Handle").Material = "SmoothPlastic"
  1230.         end
  1231.     end
  1232.     for i, v in pairs(Character:GetChildren()) do
  1233.         if v:IsA'Model' then
  1234.             for _, c in pairs(v:GetChildren()) do
  1235.                 if c:IsA'Part' then
  1236.                     c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1237.                 end
  1238.             end
  1239.         end
  1240.     end
  1241.     TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1242.     Velocity = RootPart.Velocity.y
  1243.     Sine = Sine + Change
  1244.     local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1245.     if RootPart.Velocity.y > 1 and hit == nil then
  1246.         Anim = "Jump"
  1247.         if Attack == false then
  1248.             Change = 1
  1249.         PlayAnimationFromTable({
  1250.          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),
  1251.          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),
  1252.          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),
  1253.          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),
  1254.          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),
  1255.          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),
  1256.         }, .3, false)
  1257.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1258.         end
  1259.     elseif RootPart.Velocity.y < -1 and hit == nil then
  1260.         Anim = "Fall"
  1261.         if Attack == false then
  1262.             Change = 1
  1263.         PlayAnimationFromTable({
  1264.          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),
  1265.          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),
  1266.          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),
  1267.          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),
  1268.          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),
  1269.          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),
  1270.         }, .3, false)
  1271.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1272.         end    
  1273.     elseif TorsoVelocity < 1 and hit ~= nil then
  1274.         Anim = "Idle"
  1275.         if Attack == false then
  1276.             Change = 1
  1277.         PlayAnimationFromTable({
  1278.          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),
  1279.          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),
  1280.          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)),
  1281.          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))),
  1282.          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)),
  1283.          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),
  1284.         }, .3, false)
  1285.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1286.         end
  1287.     elseif TorsoVelocity > 2 and hit ~= nil then
  1288.         Anim = "Walk"
  1289.             if Attack == false then
  1290.         PlayAnimationFromTable({
  1291.          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),
  1292.          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),
  1293.          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),
  1294.          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),
  1295.          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)),
  1296.                 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)
  1297.         FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1)
  1298. end
  1299.     end
  1300.    
  1301.     if #Effects > 0 then
  1302.         for e = 1, #Effects do
  1303.             if Effects[e] ~= nil then
  1304.                 local Thing = Effects[e]
  1305.                 if Thing ~= nil then
  1306.                     local Part = Thing[1]
  1307.                     local Mode = Thing[2]
  1308.                     local Delay = Thing[3]
  1309.                     local IncX = Thing[4]
  1310.                     local IncY = Thing[5]
  1311.                     if Thing[1].Transparency <= 1 then
  1312.                         if Thing[2] == "Block1" then
  1313.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1314.                             Mesh = Thing[7]
  1315.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1316.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1317.                         elseif Thing[2] == "Ice" then
  1318.                             if Thing[6] <= Thing[5] then
  1319.                                 Thing[6] = Thing[6] + .05
  1320.                                 Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1321.                             else
  1322.                                 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1323.                             end
  1324.                         elseif Thing[2] == "Shatter" then
  1325.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1326.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1327.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1328.                             Thing[6] = Thing[6] + Thing[5]
  1329.                         elseif Thing[2] == "Block2" then
  1330.                             Thing[1].CFrame = Thing[1].CFrame
  1331.                             Mesh = Thing[7]
  1332.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1333.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1334.                         elseif Thing[2] == "Block3" then
  1335.                             Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1336.                             Mesh = Thing[7]
  1337.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1338.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1339.                         elseif Thing[2] == "Block4" then
  1340.                             Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1341.                             Mesh = Thing[7]
  1342.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1343.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1344.                         elseif Thing[2] == "Block2Fire" then
  1345.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1346.                             Mesh = Thing[7]
  1347.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1348.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1349.                             if Thing[1].Transparency >= .3 then
  1350.                                 Thing[1].BrickColor = BrickColor.new("Bright red")
  1351.                             else
  1352.                                 Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1353.                             end
  1354.                         elseif Thing[2] == "Cylinder" then
  1355.                             Mesh = Thing[7]
  1356.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1357.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1358.                         elseif Thing[2] == "Blood" then
  1359.                             Mesh = Thing[7]
  1360.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1361.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1362.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1363.                         elseif Thing[2] == "Elec" then
  1364.                             Mesh = Thing[10]
  1365.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1366.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1367.                             Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1368.                             Thing[1].Rotation = Vector3.new(0, 0, 0)
  1369.                         elseif Thing[2] == "Disappear" then
  1370.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1371.                         end
  1372.                     else
  1373.                         Part.Parent = nil
  1374.                         table.remove(Effects, e)
  1375.                     end
  1376.                 end
  1377.             end
  1378.         end
  1379.     end
  1380. Humanoid.Health = math.huge
  1381. endif game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  1382. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  1383. do
  1384.     print("FE Compatibility code by Mokiros")
  1385.     script.Parent = Player.Character
  1386.  
  1387.     --RemoteEvent for communicating
  1388.     local Event = Instance.new("RemoteEvent")
  1389.     Event.Name = "UserInput_Event"
  1390.  
  1391.     --Fake event to make stuff like Mouse.KeyDown work
  1392.     local function fakeEvent()
  1393.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  1394.         t.connect = t.Connect
  1395.         return t
  1396.     end
  1397.  
  1398.     --Creating fake input objects with fake variables
  1399.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1400.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1401.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  1402.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  1403.     end}
  1404.     --Merged 2 functions into one by checking amount of arguments
  1405.     CAS.UnbindAction = CAS.BindAction
  1406.  
  1407.     --This function will trigger the events that have been :Connect()'ed
  1408.     local function te(self,ev,...)
  1409.         local t = m[ev]
  1410.         if t and t._fakeEvent and t.Function then
  1411.             t.Function(...)
  1412.         end
  1413.     end
  1414.     m.TrigEvent = te
  1415.     UIS.TrigEvent = te
  1416.  
  1417.     Event.OnServerEvent:Connect(function(plr,io)
  1418.         if plr~=Player then return end
  1419.         if io.isMouse then
  1420.             m.Target = io.Target
  1421.             m.Hit = io.Hit
  1422.         else
  1423.             local b = io.UserInputState == Enum.UserInputState.Begin
  1424.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  1425.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  1426.             end
  1427.             for _,t in pairs(CAS.Actions) do
  1428.                 for _,k in pairs(t.Keys) do
  1429.                     if k==io.KeyCode then
  1430.                         t.Function(t.Name,io.UserInputState,io)
  1431.                     end
  1432.                 end
  1433.             end
  1434.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  1435.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  1436.         end
  1437.     end)
  1438.     Event.Parent = NLS([==[
  1439.     local Player = game:GetService("Players").LocalPlayer
  1440.     local Event = script:WaitForChild("UserInput_Event")
  1441.  
  1442.     local UIS = game:GetService("UserInputService")
  1443.     local input = function(io,a)
  1444.         if a then return end
  1445.         --Since InputObject is a client-side instance, we create and pass table instead
  1446.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  1447.     end
  1448.     UIS.InputBegan:Connect(input)
  1449.     UIS.InputEnded:Connect(input)
  1450.  
  1451.     local Mouse = Player:GetMouse()
  1452.     local h,t
  1453.     --Give the server mouse data 30 times every second, but only if the values changed
  1454.     --If player is not moving their mouse, client won't fire events
  1455.     while wait(1/30) do
  1456.         if h~=Mouse.Hit or t~=Mouse.Target then
  1457.             h,t=Mouse.Hit,Mouse.Target
  1458.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  1459.         end
  1460.     end]==],Player.Character)
  1461.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1462. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top