Advertisement
BINO2002

Matrix Poxtrix!!

Mar 9th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.41 KB | None | 0 0
  1. --//==============================\\--
  2. --|| BY BINO2002
  3. --\\===============================//--
  4.  
  5. player = game.Players.LocalPlayer
  6. mouse = player:GetMouse()
  7. chara = player.Character
  8. equipped = false
  9. del = false
  10. attacking = false
  11. atkd = false
  12. hum = chara:FindFirstChildOfClass("Humanoid")
  13. hum.WalkSpeed = 20
  14. debby = game.Debris
  15.  
  16. ArtificialHB = Instance.new("BindableEvent", script)
  17. ArtificialHB.Name = "Heartbeat"
  18. script:WaitForChild("Heartbeat")
  19. frame = 0.03333333333333
  20. tf = 0
  21. allowframeloss = false
  22. tossremainder = false
  23. lastframe = tick()
  24. script.Heartbeat:Fire()
  25. game:GetService("RunService").Heartbeat:connect(function(s, p)
  26. tf = tf + s
  27. if tf >= frame then
  28. if allowframeloss then
  29. script.Heartbeat:Fire()
  30. lastframe = tick()
  31. else
  32. for i = 1, math.floor(tf / frame) do
  33. script.Heartbeat:Fire()
  34. end
  35. lastframe = tick()
  36. end
  37. if tossremainder then
  38. tf = 0
  39. else
  40. tf = tf - frame * math.floor(tf / frame)
  41. end
  42. end
  43. end)
  44. function swait(num)
  45. if num == 0 or num == nil then
  46. ArtificialHB.Event:wait()
  47. else
  48. for i = 0, num*30 do
  49. ArtificialHB.Event:wait()
  50. end
  51. end
  52. end
  53.  
  54. New = function(Object, Parent, Name, Data)
  55. local Object = Instance.new(Object)
  56. for Index, Value in pairs(Data or {}) do
  57. Object[Index] = Value
  58. end
  59. Object.Parent = Parent
  60. Object.Name = Name
  61. return Object
  62. end
  63.  
  64. Blaster = nil
  65. meshpresent = false
  66. ShootPart = nil
  67. for i, v in pairs(chara:GetChildren()) do
  68. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  69. meshpresent = true
  70. end
  71. end
  72.  
  73. if meshpresent == false then
  74. Blaster = New("Model",chara,"Blaster",{})
  75. MainPart = New("Part",Blaster,"MainPart",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 1.60000014, 1),CFrame = CFrame.new(-9.5, 0.99999994, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  76. Mesh = New("BlockMesh",MainPart,"Mesh",{Scale = Vector3.new(1.04999995, 1, 1.04999995),})
  77. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -0.600000083, 2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  78. Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-8.99999905, 1.29999924, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  79. Mesh = New("CylinderMesh",Part,"Mesh",{})
  80. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, 0.299999297, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  81. Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-9.5, 0.0999997854, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  82. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.04999995, 0.800000012),})
  83. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0, -0.900000155, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  84. ShootPart = New("Part",Blaster,"ShootPart",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-9.5, 0.0999997854, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  85. Mesh = New("CylinderMesh",ShootPart,"Mesh",{})
  86. Weld = New("ManualWeld",ShootPart,"Weld",{Part0 = ShootPart,Part1 = MainPart,C1 = CFrame.new(0, -0.900000155, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  87. Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-8.99999905, 0.50000006, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  88. Mesh = New("CylinderMesh",Part,"Mesh",{})
  89. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -0.499999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  90. Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.399999917, 0.600000024, 0.200000003),CFrame = CFrame.new(-8.99999905, 0.899999559, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0, 0),})
  91. Mesh = New("CylinderMesh",Part,"Mesh",{})
  92. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -0.100000381, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  93. elseif meshpresent == true then
  94. Blaster = New("Model",chara,"Blaster",{})
  95. MainPart = New("Part",Blaster,"MainPart",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 1.40000021, 1),CFrame = CFrame.new(-10.6999989, 0.900003612, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  96. Mesh = New("CylinderMesh",MainPart,"Mesh",{})
  97. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(-0.199998856, -0.699999869, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  98. Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-10.1999979, 1.30000281, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  99. Mesh = New("CylinderMesh",Part,"Mesh",{})
  100. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, 0.399999201, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  101. Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-10.6999989, 0.100003421, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  102. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1.04999995, 0.600000024),})
  103. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0, -0.800000191, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  104. ShootPart = New("Part",Blaster,"ShootPart",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-10.6999989, 0.100003421, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  105. Mesh = New("CylinderMesh",ShootPart,"Mesh",{Scale = Vector3.new(0.699999988, 1, 0.699999988),})
  106. Weld = New("ManualWeld",ShootPart,"Weld",{Part0 = ShootPart,Part1 = MainPart,C1 = CFrame.new(0, -0.800000191, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  107. Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-10.1999979, 0.500003695, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  108. Mesh = New("CylinderMesh",Part,"Mesh",{})
  109. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -0.399999917, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  110. Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.399999917, 0.600000024, 0.200000003),CFrame = CFrame.new(-10.1999979, 0.900003195, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0, 0),})
  111. Mesh = New("CylinderMesh",Part,"Mesh",{})
  112. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -4.17232513e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  113. Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-10.6999989, 1.50000334, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  114. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 5, 1),MeshType = Enum.MeshType.Sphere,})
  115. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0, 0.599999726, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  116. end
  117.  
  118. Sword = New("Model",chara,"Sword",{})
  119. HandlePart = New("Part",Sword,"HandlePart",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 0.99999994, 0.200000003),CFrame = CFrame.new(-3.69999695, 0.700078905, -9.30000019, 0.999991417, 0, 0, 0, 1.00001717, 0, 0, 0, 1.00001717),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  120. Mesh = New("CylinderMesh",HandlePart,"Mesh",{})
  121. GWeld = New("Weld",HandlePart,"GWeld",{Part0 = HandlePart,Part1 = chara["Left Arm"],})
  122. Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 0.199999943, 0.200000003),CFrame = CFrame.new(-3.69999695, 0.100065172, -9.30000019, 0.999994278, 0, 0, 0, 1.00001144, 0, 0, 0, 1.00001144),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  123. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),MeshType = Enum.MeshType.Sphere,})
  124. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),C1 = CFrame.new(0, -0.600003421, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),})
  125. Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 0.199999943, 0.600000024),CFrame = CFrame.new(-3.69999695, 1.15866339, -9.75859165, 0.999991417, 0, 0, 0, 0.707118869, 0.707118988, 0, -0.707118988, 0.707118869),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  126. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
  127. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, 0.999998391, 0, 0, 0, 0.707108915, -0.707109034, 0, 0.707109034, 0.707108915),C1 = CFrame.new(0, 0.45857662, -0.458583832, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
  128. Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 0.199999943, 0.600000024),CFrame = CFrame.new(-3.69999695, 1.30010247, -9.30000019, 0.999987125, 0, 0, 0, 1.00002575, 0, 0, 0, 1.00002575),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  129. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),})
  130. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C1 = CFrame.new(0, 0.600013196, 0, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
  131. Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 0.599999964, 0.600000024),CFrame = CFrame.new(-3.69999647, 5.10027504, -9.29999924, 0.999987125, 0, 0, 0, 1.00002575, 0, 0, 0, 1.00002575),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  132. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),MeshType = Enum.MeshType.Wedge,})
  133. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C1 = CFrame.new(4.76837158e-07, 4.40012074, 9.53674316e-07, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
  134. Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 0.199999943, 0.600000024),CFrame = CFrame.new(-3.69999695, 1.15866399, -8.84140778, -0.999991417, 2.51216356e-15, 2.51218325e-15, 3.55284073e-15, 0.707116961, 0.707121074, -3.60000312e-21, 0.707121015, -0.707116902),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  135. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
  136. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, -0.999998569, 3.55272893e-15, -3.59989003e-21, 2.51215149e-15, 0.707109749, 0.707113802, 2.5121589e-15, 0.70710963, -0.707112253),C1 = CFrame.new(0, 0.458577216, 0.458584785, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
  137. Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(0.200000003, 3.40000033, 0.600000024),CFrame = CFrame.new(-3.69999695, 3.1002686, -9.30000019, 0.999987125, 0, 0, 0, 1.00002575, 0, 0, 0, 1.00002575),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  138. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),})
  139. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C1 = CFrame.new(0, 2.40014839, 0, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
  140. Hitbox = New("Part",Sword,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 4.00000048, 0.600000024),CFrame = CFrame.new(-3.69999695, 3.40013981, -9.30000019, 0.999988556, 0, 0, 0, 1.00002289, 0, 0, 0, 1.00002289),CanCollide = false,})
  141. Mesh = New("BlockMesh",Hitbox,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),})
  142. Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),C1 = CFrame.new(0, 2.70001459, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),})
  143.  
  144. SHead = New("Part",chara,"SHead",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  145. Mesh = New("SpecialMesh",SHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  146. Weld = New("ManualWeld",SHead,"Weld",{Part0 = SHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  147.  
  148. Wings = New("Part",chara,"Wings",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.30000001192093,FormFactor = Enum.FormFactor.Custom,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-11, 2.5, -19.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  149. Mesh = New("SpecialMesh",Wings,"Mesh",{Scale = Vector3.new(2, 2, 1),MeshId = "http://www.roblox.com/asset/?id=93715902",MeshType = Enum.MeshType.FileMesh,})
  150. Weld = New("ManualWeld",Wings,"Weld",{Part0 = Wings,Part1 = chara.Torso,C1 = CFrame.new(0, 1.5, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  151.  
  152. RightArm = New("Model",chara,"RightArm",{})
  153. MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  154. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  155. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  156. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  157. Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  158. LeftArm = New("Model",chara,"LeftArm",{})
  159. MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  160. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  161. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  162. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  163. Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  164.  
  165. lach = LeftArm:GetChildren()
  166. rach = RightArm:GetChildren()
  167.  
  168. Shirt = chara:FindFirstChildOfClass("Shirt")
  169. Pants = chara:FindFirstChildOfClass("Pants")
  170. if Shirt == nil then
  171. Shirt = Instance.new("Shirt",chara)
  172. end
  173. if Pants == nil then
  174. Pants = Instance.new("Pants",chara)
  175. end
  176. Shirt.ShirtTemplate = "rbxassetid://554828175"
  177. Pants.PantsTemplate = "rbxassetid://1031921793"
  178.  
  179. --Sounds--
  180. function LoadSnd(id,loop,vol,pit)
  181. local snd = New("Sound",HandlePart,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  182. return snd
  183. end
  184. Music = LoadSnd(161783960,true,1,1)
  185. Music.Parent = chara
  186. if player.Name == "CKbackup" then
  187. Music.SoundId = "rbxassetid://548913803"
  188. end
  189. Music:Play()
  190. StartUpSnd = LoadSnd(153092315,false,1,.8)
  191. SwingSnd = LoadSnd(200633108,false,1,1)
  192. Swing2Snd = LoadSnd(536642316,false,1,1)
  193. HitSnd = LoadSnd(153092274,false,1,1)
  194. HitPunchSnd = LoadSnd(153092227,false,1,1)
  195. SV2Snd = LoadSnd(2697431,false,1,.3)
  196. SVHitSnd = LoadSnd(62339698,false,1,.3)
  197. LaserSnd = LoadSnd(178452221,false,1,.6)
  198. LaserSnd = LoadSnd(2974000,false,1,.8)
  199. PewSnd = LoadSnd(410543238,false,1,.5)
  200.  
  201. --Play Sound in Part--
  202. function PlaySnd(snd,part)
  203. local sound = snd:Clone()
  204. sound.PlayOnRemove = true
  205. sound.Parent = part
  206. sound:Destroy()
  207. end
  208.  
  209. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  210. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  211. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  212. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  213. return TEff
  214. end
  215.  
  216. SlashT = CreateTrailObj(Hitbox,"Camo","Camo",0,.3)
  217. --PunchT = CreateTrailObj(chara["Left Arm"],"Camo","Camo",0,0)
  218. --KickT = CreateTrailObj(chara["Right Leg"],"Camo","Camo",0,0)
  219.  
  220. --Punch Hit Effect--
  221. function PunchEff(pos)
  222. local p = Instance.new("Part",game.Workspace)
  223. p.Size = Vector3.new(1,1,1)
  224. p.BrickColor = BrickColor.new("Camo")
  225. p.Material = "DiamondPlate"
  226. p.Anchored = true
  227. p.CanCollide = false
  228. p.CFrame = pos
  229. local pm = Instance.new("SpecialMesh",p)
  230. pm.MeshType = "Sphere"
  231. local disp = coroutine.wrap(function()
  232. for i = 0,1,.2 do
  233. swait()
  234. p.Transparency = i
  235. pm.Scale = Vector3.new(2*i,2*i,2*i)
  236. end
  237. swait()
  238. p:Destroy()
  239. end)
  240. disp()
  241. end
  242.  
  243. function SlashEff(pos)
  244. local p = Instance.new("Part",game.Workspace)
  245. p.Size = Vector3.new(1,1,1)
  246. p.BrickColor = BrickColor.new("Camo")
  247. p.Material = "DiamondPlate"
  248. p.Anchored = true
  249. p.CanCollide = false
  250. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  251. local pm = Instance.new("SpecialMesh",p)
  252. pm.MeshType = "Sphere"
  253. local disp = coroutine.wrap(function()
  254. for i = 0,1,.2 do
  255. swait()
  256. p.Transparency = i
  257. pm.Scale = Vector3.new(.3,10*i,.3)
  258. end
  259. swait()
  260. p:Destroy()
  261. end)
  262. disp()
  263. end
  264.  
  265. --Handle Wielding--
  266. idlec0 = CFrame.new(-.2,-.2,1) * CFrame.fromEulerAnglesXYZ(math.rad(120),0,0)
  267. pointc0 = CFrame.new(0,-.7,0) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0)
  268. GWeld.C0 = idlec0
  269.  
  270. --Damage Function--
  271. function dealdmg(dude,damage,env,toim,kby,kbx)
  272. coroutine.resume(coroutine.create(function()
  273. if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
  274. finaldmg = damage + math.random(-env,env)
  275. dudehum = dude:FindFirstChildOfClass("Humanoid")
  276. dudehum.MaxHealth = 100
  277. dudehum.Health = dudehum.Health - finaldmg
  278. local vall = Instance.new("ObjectValue",dude)
  279. vall.Name = "IsHit"
  280. game.Debris:AddItem(vall,toim)
  281. local bfos = Instance.new("BodyVelocity",dude.Head)
  282. bfos.P = 20000
  283. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  284. bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
  285. game.Debris:AddItem(bfos,.1)
  286. local naeeym2 = Instance.new("BillboardGui",dude)
  287. naeeym2.Size = UDim2.new(0,100,0,40)
  288. naeeym2.StudsOffset = Vector3.new(0,3,0)
  289. naeeym2.Adornee = dude.Head
  290. naeeym2.Name = "TalkingBillBoard"
  291. local tecks2 = Instance.new("TextLabel",naeeym2)
  292. tecks2.BackgroundTransparency = 1
  293. tecks2.BorderSizePixel = 0
  294. tecks2.Text = "-"..finaldmg
  295. tecks2.Font = "Fantasy"
  296. tecks2.FontSize = "Size24"
  297. tecks2.TextStrokeTransparency = 0
  298. tecks2.TextColor3 = Color3.new(0,255,0)
  299. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  300. tecks2.Size = UDim2.new(1,0,0.5,0)
  301. for i = 1, 5 do
  302. wait(.1)
  303. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  304. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  305. tecks2.TextTransparency = tecks2.TextTransparency + .2
  306. end
  307. naeeym2:Destroy()
  308. end
  309. end))
  310. end
  311.  
  312. --Explode Hitbox--
  313. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  314. local E = Instance.new("Explosion")
  315. E.Position = pos
  316. E.Parent = game.Workspace
  317. E.BlastRadius = rad
  318. E.BlastPressure = 0
  319. E.Visible = false
  320. E.Hit:connect(function(hit)
  321. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  322. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  323. end
  324. end)
  325. end
  326.  
  327. --Punch Touch--
  328. dela = .5
  329. punchactive = false
  330. function punchhit(hit)
  331. if punchactive == true then
  332. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  333. dealdmg(hit.Parent,10,2,dela,0,5)
  334. PlaySnd(HitPunchSnd,hit.Parent.Head)
  335. PunchEff(hit.CFrame)
  336. end
  337. end
  338. end
  339. --Emit2Part.Touched:connect(punchhit)
  340. EmitPart.Touched:connect(punchhit)
  341.  
  342. --Kick Touch--
  343. kickactive = false
  344. function kickhit(hit)
  345. if kickactive == true then
  346. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  347. PlaySnd(HitPunchSnd,hit.Parent.Head)
  348. PunchEff(hit.CFrame)
  349. dealdmg(hit.Parent,15,2,dela,0,10)
  350. end
  351. end
  352. end
  353. chara["Right Leg"].Touched:connect(kickhit)
  354.  
  355. --Blade Touch--
  356. bladeactive = false
  357. function bladehit(hit)
  358. if bladeactive == true then
  359. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  360. dealdmg(hit.Parent,15,2,.05,0,0)
  361. PlaySnd(HitSnd,hit.Parent.Head)
  362. SlashEff(hit.CFrame)
  363. end
  364. end
  365. end
  366. Hitbox.Touched:connect(bladehit)
  367.  
  368. --Chat Function--
  369. function chatfunc(text)
  370. local chat = coroutine.wrap(function()
  371. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  372. chara:FindFirstChild("TalkingBillBoard"):destroy()
  373. end
  374. local naeeym2 = Instance.new("BillboardGui",chara)
  375. naeeym2.Size = UDim2.new(0,100,0,40)
  376. naeeym2.StudsOffset = Vector3.new(0,3,0)
  377. naeeym2.Adornee = chara.Head
  378. naeeym2.Name = "TalkingBillBoard"
  379. local tecks2 = Instance.new("TextLabel",naeeym2)
  380. tecks2.BackgroundTransparency = 1
  381. tecks2.BorderSizePixel = 0
  382. tecks2.Text = ""
  383. tecks2.Font = "Fantasy"
  384. tecks2.FontSize = "Size24"
  385. tecks2.TextStrokeTransparency = 0
  386. tecks2.TextColor3 = Color3.new(0,255,0)
  387. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  388. tecks2.Size = UDim2.new(1,0,0.5,0)
  389. coroutine.resume(coroutine.create(function()
  390. while tecks2 ~= nil do
  391. swait(.05)
  392. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  393. end
  394. end))
  395. for i = 1,string.len(text),1 do
  396. tecks2.Text = string.sub(text,1,i)
  397. swait(0.01)
  398. end
  399. swait(1)
  400. for i = 1, 5 do
  401. swait(.01)
  402. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  403. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  404. tecks2.TextTransparency = tecks2.TextTransparency + .2
  405. end
  406. naeeym2:Destroy()
  407. end)
  408. chat()
  409. end
  410.  
  411. function onChatted(msg)
  412. chatfunc(msg)
  413. end
  414. player.Chatted:connect(onChatted)
  415.  
  416. --Clerp Animations--
  417. TC = chara.HumanoidRootPart.RootJoint
  418. HC = chara.Torso.Neck
  419. RAC = chara.Torso["Right Shoulder"]
  420. LAC = chara.Torso["Left Shoulder"]
  421. RLC = chara.Torso["Right Hip"]
  422. LLC = chara.Torso["Left Hip"]
  423. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  424. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  425. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  426. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  427. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  428. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  429. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  430. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  431. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  432. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  433. RW = Instance.new("Weld",HC.Parent)
  434. RW.Part1 = HC.Parent
  435. RW.Part0 = chara["Right Arm"]
  436. RW.C0 = RWF
  437. LW = Instance.new("Weld",HC.Parent)
  438. LW.Part1 = HC.Parent
  439. LW.Part0 = chara["Left Arm"]
  440. LW.C0 = LWF
  441. RLW = nil
  442. LLW = nil
  443. grp = Instance.new("Model",chara)
  444.  
  445. function AddLegWelds()
  446. RLW = Instance.new("Weld",chara["Right Leg"])
  447. RLW.Part1 = HC.Parent
  448. RLW.Part0 = chara["Right Leg"]
  449. RLW.C0 = RLWF
  450. LLW = Instance.new("Weld",chara["Left Leg"])
  451. LLW.Part1 = HC.Parent
  452. LLW.Part0 = chara["Left Leg"]
  453. LLW.C0 = LLWF
  454. end
  455.  
  456. function DestroyLegWelds()
  457. RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  458. LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  459. RLW:Destroy()
  460. LLW:Destroy()
  461. end
  462.  
  463. function clerp(a,b,c)
  464. return a:lerp(b,c)
  465. end
  466.  
  467. ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
  468. IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
  469. IRWF = (RWF - Vector3.new(-.5,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-60),math.rad(-50),0)
  470. ILWF = (LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(50),0)
  471.  
  472. function res()
  473. TC.C0 = ITCF
  474. HC.C0 = IHCF
  475. RW.C0 = IRWF
  476. LW.C0 = ILWF
  477. end
  478. res()
  479.  
  480. hum.Name = "hoomanood"
  481. Instance.new("ForceField",chara).Visible = false
  482.  
  483. --Cannon--
  484. function Cannon()
  485. del = true
  486. hum.WalkSpeed = 0
  487. SlashT.Enabled = true
  488. for i = 0,.6,.1 do
  489. swait()
  490. TC.C0 = clerp(ITCF,TCF,.4+i)
  491. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.4+i)
  492. LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
  493. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),.4+i)
  494. end
  495. swait(.5)
  496. SVHitSnd:Play()
  497. for i = 0,.6,.2 do
  498. swait()
  499. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),HCF,.4+i)
  500. LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),(LWF - Vector3.new(2.5,-2.5,-.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(120)),.4+i)
  501. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-10)),.4+i)
  502. GWeld.C0 = clerp(idlec0,pointc0,.4+i)
  503. end
  504. swait(.1)
  505. SVHitSnd:Play()
  506. for i = 0,.6,.2 do
  507. swait()
  508. LW.C0 = clerp((LWF - Vector3.new(2.5,-2.5,-.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(120)),(LWF + Vector3.new(0,-.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-70),math.rad(70),0),.4+i)
  509. end
  510. swait(.1)
  511. SVHitSnd:Play()
  512. for i = 0,.6,.2 do
  513. swait()
  514. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.4+i)
  515. LW.C0 = clerp((LWF + Vector3.new(0,-.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-70),math.rad(70),0),(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),.4+i)
  516. end
  517. swait(.1)
  518. SVHitSnd:Play()
  519. for i = 0,.6,.2 do
  520. swait()
  521. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),IHCF,.4+i)
  522. TC.C0 = clerp(TCF,ITCF,.4+i)
  523. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),(LWF + Vector3.new(-1,1,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0),.4+i)
  524. end
  525. LW.C0 = (LWF + Vector3.new(-1,1,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0)
  526. GWeld.C0 = pointc0
  527. local EffectPart = Instance.new("Part",chara)
  528. EffectPart.Size = Vector3.new(1,1,1)
  529. EffectPart.Anchored = true
  530. EffectPart.BrickColor = BrickColor.new("Camo")
  531. EffectPart.Position = mouse.Hit.p
  532. EffectPart.CFrame = mouse.Hit
  533. EffectPart.Material = "DiamondPlate"
  534. local EffectPart2 = Instance.new("Part",chara)
  535. EffectPart2.Size = Vector3.new(1,1,1)
  536. EffectPart2.Anchored = true
  537. EffectPart2.BrickColor = BrickColor.new("Camo")
  538. EffectPart2.Position = mouse.Hit.p
  539. EffectPart2.CFrame = CFrame.new(mouse.Hit.p.X,mouse.Hit.p.Y,mouse.Hit.p.Z)
  540. EffectPart2.Material = "DiamondPlate"
  541. local mehs1 = Instance.new("SpecialMesh",EffectPart)
  542. mehs1.MeshType = "Sphere"
  543. mehs1.Scale = Vector3.new(10,10,10)
  544. local mehs2 = Instance.new("CylinderMesh",EffectPart2)
  545. mehs2.Scale = Vector3.new(1,9999,1)
  546. local Place0 = EmitPart.CFrame
  547. local Place1 = EffectPart.CFrame
  548. local leng = (Place0.p - Place1.p).magnitude
  549. local P = Instance.new("Part")
  550. local meshla = Instance.new("BlockMesh", P)
  551. meshla.Scale = Vector3.new(1,1,1)
  552. P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
  553. P.Name = "Laser"
  554. P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
  555. P.Parent = chara
  556. P.BrickColor = BrickColor.new("Camo")
  557. P.Material = "DiamondPlate"
  558. P.Anchored = true
  559. P.CanCollide = false
  560. P.Locked = true
  561. P.BottomSurface = "Smooth"
  562. P.TopSurface = "Smooth"
  563. PlaySnd(LaserSnd,chara)
  564. ExHitbox(15,Place1.p,40,1,.05,50,50)
  565. for i = 1, 5 do
  566. coroutine.resume(coroutine.create(function()
  567. local hitp = Instance.new("Part",chara)
  568. hitp.Size = Vector3.new(1,1,1)
  569. hitp.Anchored = true
  570. hitp.CanCollide = false
  571. hitp.BrickColor = BrickColor.new("Camo")
  572. hitp.Transparency = 1
  573. hitp.CFrame = EffectPart.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  574. local hitm = Instance.new("SpecialMesh",hitp)
  575. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  576. hitm.Scale = Vector3.new(4,4,1)
  577. for i = 0,1,.1 do
  578. swait(.001)
  579. hitp.Transparency = i
  580. hitm.Scale = Vector3.new(i*80,i*80,i)
  581. end
  582. hitp:Destroy()
  583. end))
  584. end
  585. coroutine.resume(coroutine.create(function()
  586. for i = 0,1,.05 do
  587. swait()
  588. mehs1.Scale = Vector3.new(5*i,5*i,5*i)
  589. mehs2.Scale = Vector3.new(2*i,9999,2*i)
  590. meshla.Scale = Vector3.new(2.5*i,2.5*i,1)
  591. EffectPart.Transparency = i
  592. EffectPart2.Transparency = i
  593. P.Transparency = i
  594. end
  595. ----
  596. P:Destroy()
  597. EffectPart:Destroy()
  598. EffectPart2:Destroy()
  599. end))
  600. swait(.5)
  601. for i = 0,.6,.1 do
  602. swait()
  603. LW.C0 = clerp((LWF + Vector3.new(-1,-.5,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0),ILWF,.4+i)
  604. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-10)),IRWF,.4+i)
  605. GWeld.C0 = clerp(idlec0,pointc0,.6-i)
  606. end
  607. GWeld.C0 = idlec0
  608. SlashT.Enabled = false
  609. hum.WalkSpeed = 20
  610. walking = false
  611. del = false
  612. end
  613.  
  614. --Blast--
  615. function Blast()
  616. del = true
  617. for i = 0,.6,.2 do
  618. swait()
  619. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  620. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  621. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  622. LW.C0 = clerp(ILWF,LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-10),math.rad(10)),.4+i)
  623. end
  624. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  625. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  626. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  627. local p1 = Instance.new("Part",chara)
  628. p1.CFrame = ShootPart.CFrame
  629. p1.Position = ShootPart.Position
  630. p1.Size = Vector3.new(.5,.5,.5)
  631. p1.BrickColor = BrickColor.new("Camo")
  632. p1.Material = "DiamondPlate"
  633. p1.CanCollide = false
  634. p1.Transparency = 1
  635. local pm1 = Instance.new("SpecialMesh",p1)
  636. pm1.MeshType = "Sphere"
  637. local wd1 = Instance.new("Weld",p1)
  638. wd1.Part0 = p1
  639. wd1.Part1 = ShootPart
  640. local p2 = Instance.new("Part",chara)
  641. p2.CFrame = ShootPart.CFrame
  642. p2.Position = ShootPart.Position
  643. p2.Size = Vector3.new(.5,.5,.5)
  644. p2.BrickColor = BrickColor.new("Camo")
  645. p2.Material = "DiamondPlate"
  646. p2.CanCollide = false
  647. p2.Transparency = 1
  648. local pm2 = Instance.new("SpecialMesh",p2)
  649. pm2.MeshType = "Sphere"
  650. local wd2 = Instance.new("Weld",p2)
  651. wd2.Part0 = p2
  652. wd2.Part1 = ShootPart
  653. PewSnd:Play()
  654. for i = 0,1,.2 do
  655. swait()
  656. p1.Transparency = i/2
  657. p2.Transparency = i/2
  658. pm1.Scale = Vector3.new(5*i,1,1)
  659. pm2.Scale = Vector3.new(1,1,5*i)
  660. end
  661. local missile = Instance.new("Part",game.Workspace)
  662. missile.Size = Vector3.new(.6,1,.6)
  663. missile.Name = "Blast"
  664. missile.BrickColor = BrickColor.new("Camo")
  665. missile.Material = "DiamondPlate"
  666. missile.CanCollide = false
  667. missile.TopSurface = 0
  668. missile.BottomSurface = 0
  669. missile.Position = ShootPart.Position
  670. missile.CFrame = (ShootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector*2)
  671. missile.Velocity = chara.HumanoidRootPart.CFrame.lookVector*150
  672. local pmit = Instance.new("ParticleEmitter",missile)
  673. pmit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  674. pmit.Color = ColorSequence.new(BrickColor.new("Camo").Color)
  675. pmit.LightEmission = 1
  676. pmit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  677. pmit.Lifetime = NumberRange.new(1)
  678. pmit.Rate = 10000
  679. pmit.Rotation = NumberRange.new(0,359)
  680. pmit.RotSpeed = NumberRange.new(100)
  681. pmit.Speed = NumberRange.new(0)
  682. local mesh1 = Instance.new("SpecialMesh",missile)
  683. mesh1.MeshType = "Sphere"
  684. local force = Instance.new("BodyForce")
  685. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  686. force.Parent = missile
  687. missile.Touched:connect(function(hit)
  688. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then
  689. missile.Anchored = true
  690. ExHitbox(3,missile.Position,30,1,.1,0,0)
  691. for i = 0,1,.1 do
  692. swait()
  693. mesh1.Scale = Vector3.new(3*i,3*i,3*i)
  694. end
  695. missile:Destroy()
  696. end
  697. end)
  698. debby:AddItem(missile,10)
  699. for i = 0,1,.2 do
  700. swait()
  701. p1.Transparency = .5+(i/2)
  702. p2.Transparency = .5+(i/2)
  703. pm1.Scale = Vector3.new(5-5*i,1,1)
  704. pm2.Scale = Vector3.new(1,1,5-5*i)
  705. end
  706. p1:Destroy()
  707. p2:Destroy()
  708. for i = 0,.6,.2 do
  709. swait()
  710. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  711. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  712. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  713. LW.C0 = clerp(ILWF,LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-10),math.rad(10)),.6-i)
  714. end
  715. walking = false
  716. del = false
  717. res()
  718. end
  719.  
  720. --Flip--
  721. function Flip()
  722. del = true
  723. res()
  724. hum.WalkSpeed = 0
  725. AddLegWelds()
  726. Swing2Snd:Play()
  727. for i = 0,.6,.2 do
  728. swait()
  729. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
  730. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
  731. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
  732. LW.C0 = clerp(ILWF,LWF,.4+i)
  733. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
  734. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
  735. Wings.Transparency = .6-i
  736. end
  737. Wings.Transparency = 0
  738. local bf = Instance.new("BodyVelocity",chara.Torso)
  739. bf.P = 100000
  740. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  741. bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*30
  742. debby:AddItem(bf,.5)
  743. for i = 0,1,.25 do
  744. swait()
  745. TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  746. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
  747. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  748. LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  749. LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
  750. end
  751. bf.MaxForce = Vector3.new(bf.P,0,bf.P)
  752. for i = 0,1,.25 do
  753. swait()
  754. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i)
  755. end
  756. swait(.5)
  757. bf:Destroy()
  758. for i = 0,1,.25 do
  759. swait()
  760. TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
  761. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
  762. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
  763. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
  764. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
  765. end
  766. for i = 0,.6,.2 do
  767. swait()
  768. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
  769. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
  770. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
  771. LW.C0 = clerp(ILWF,LWF,.6-i)
  772. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
  773. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
  774. Wings.Transparency = .4+i
  775. end
  776. Wings.Transparency = 1
  777. DestroyLegWelds()
  778. res()
  779. hum.WalkSpeed = 20
  780. walking = false
  781. del = false
  782. end
  783. function BackFlip()
  784. del = true
  785. res()
  786. hum.WalkSpeed = 0
  787. AddLegWelds()
  788. Swing2Snd:Play()
  789. for i = 0,.6,.2 do
  790. swait()
  791. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
  792. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
  793. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
  794. LW.C0 = clerp(ILWF,LWF,.4+i)
  795. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
  796. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
  797. Wings.Transparency = .6-i
  798. end
  799. Wings.Transparency = 0
  800. local bf = Instance.new("BodyVelocity",chara.Torso)
  801. bf.P = 100000
  802. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  803. bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*-30
  804. for i = 0,1,.25 do
  805. swait()
  806. TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i)
  807. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
  808. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  809. LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  810. LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
  811. end
  812. bf.MaxForce = Vector3.new(bf.P,0,bf.P)
  813. for i = 0,1,.25 do
  814. swait()
  815. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i)
  816. end
  817. swait(.5)
  818. bf:Destroy()
  819. for i = 0,1,.25 do
  820. swait()
  821. TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
  822. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
  823. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
  824. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
  825. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
  826. end
  827. for i = 0,.6,.2 do
  828. swait()
  829. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
  830. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
  831. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
  832. LW.C0 = clerp(ILWF,LWF,.6-i)
  833. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
  834. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
  835. Wings.Transparency = .4+i
  836. end
  837. Wings.Transparency = 1
  838. DestroyLegWelds()
  839. res()
  840. hum.WalkSpeed = 20
  841. walking = false
  842. del = false
  843. end
  844.  
  845. --Keys--
  846. combo = 0
  847. function onKeyDown(key)
  848. if del == false then
  849. if key == "z" then
  850. Cannon()
  851. elseif key == "x" then
  852. Blast()
  853. elseif key == "r" then
  854. BackFlip()
  855. elseif key == "t" then
  856. Flip()
  857. elseif key == "k" then
  858. Music:Stop()
  859. Music.SoundId = "rbxassetid://548913803"
  860. Music:Play()
  861. elseif key == "l" then
  862. Music:Stop()
  863. Music.SoundId = "rbxassetid://305355374"
  864. Music:Play()
  865. elseif key == "m" then
  866. if Music.IsPlaying == true then
  867. Music:Stop()
  868. elseif Music.IsPlaying == false then
  869. Music:Play()
  870. end
  871. end
  872. end
  873. end
  874. function onButton1Down()
  875. if del == false then
  876. del = true
  877. res()
  878. Swing2Snd:Play()
  879. bladeactive = true
  880. SlashT.Enabled = true
  881. for i = 0,.6,.1 do
  882. swait()
  883. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  884. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  885. LW.C0 = clerp(LWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  886. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  887. end
  888. for i = 0,.6,.2 do
  889. swait()
  890. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  891. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  892. end
  893. bladeactive = false
  894. swait(.1)
  895. for i = 0,.6,.1 do
  896. swait()
  897. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  898. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  899. LW.C0 = clerp(LWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  900. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  901. end
  902. SlashT.Enabled = false
  903. res()
  904. walking = false
  905. del = false
  906. end
  907. end
  908. if mouse then
  909. mouse.Button1Down:connect(onButton1Down)
  910. mouse.KeyDown:connect(onKeyDown)
  911. end
  912.  
  913. --Loop Function--
  914. walking = false
  915. toim = 0
  916. while true do
  917. swait()
  918. toim = toim + .1
  919. if del == false then attacking = false elseif del == true then attacking = true end
  920. if atkd == true then
  921. TC.C0 = TCF
  922. HC.C0 = HCF
  923. RW.C0 = RWF
  924. LW.C0 = LWF
  925. atkd = false
  926. end
  927. if atkdd == true then
  928. TC.C0 = ITCF
  929. HC.C0 = IHCF
  930. RW.C0 = IRWF
  931. LW.C0 = ILWF
  932. atkdd = false
  933. end
  934. hum.Name = "hoomanood"
  935. hum.MaxHealth = math.huge
  936. hum.Health = math.huge
  937. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  938. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  939. for i = 0,1,.5 do
  940. swait(.001)
  941. if del == false and attacking == false then
  942. TC.C0 = clerp(TCF,ITCF,i)
  943. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  944. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),IRWF,i)
  945. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-5),math.rad(5)),ILWF,i)
  946. end
  947. end
  948. walking = false
  949. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  950. for i = 0,1,.5 do
  951. swait(.001)
  952. if del == false and attacking == false then
  953. TC.C0 = clerp(TCF,ITCF,1-i)
  954. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  955. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),IRWF,1-i)
  956. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-5),math.rad(5)),ILWF,1-i)
  957. end
  958. end
  959. walking = true
  960. else
  961. end
  962. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement