Advertisement
Guest User

321323

a guest
Nov 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.67 KB | None | 0 0
  1. wait(1 / 60)
  2. Effects = { }
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. local Humanoid = Character.Humanoid
  6. local Mouse = Player:GetMouse()
  7. local LeftArm = Character["Left Arm"]
  8. local RightArm = Character["Right Arm"]
  9. local LeftLeg = Character["Left Leg"]
  10. local RightLeg = Character["Right Leg"]
  11. local Head = Character.Head
  12. local Torso = Character.Torso
  13. local Camera = game.Workspace.CurrentCamera
  14. local RootPart = Character.HumanoidRootPart
  15. local RootJoint = RootPart.RootJoint
  16. local attack = false
  17. local Anim = 'Idle'
  18. local attacktype = 1
  19. local delays = false
  20. local play = true
  21. local targetted = nil
  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. local doe = 0
  27. local Create = LoadLibrary("RbxUtility").Create
  28. Humanoid.WalkSpeed = 8
  29. local m = Create("Model"){
  30. Parent = Character,
  31. Name = "WeaponModel",
  32. }
  33. local Orin = "rbxassetid://459924806"
  34. Head.face.Texture = Orin
  35. spawn(function()
  36. while wait() do
  37. Head.BrickColor = BrickColor.new("Instutional white")
  38. RightArm.BrickColor = BrickColor.new("Instutional white")
  39. LeftArm.BrickColor = BrickColor.new("Instutional white")
  40. Torso.BrickColor = BrickColor.new("Instutional white")
  41. RightLeg.BrickColor = BrickColor.new("Instutional white")
  42. LeftLeg.BrickColor = BrickColor.new("Instutional white")
  43. end
  44. end)
  45. for i,v in pairs(Character:children()) do
  46. if v:IsA("Hat") then
  47. v:Destroy()
  48. end
  49. end
  50. for i,v in pairs(Character:children()) do
  51. if v:IsA("Accessory") then
  52. v:Destroy()
  53. end
  54. end
  55. for i,v in pairs(Character:children()) do
  56. if v:IsA("Hair") then
  57. v:Destroy()
  58. end
  59. end
  60. for i,v in pairs(Character:children()) do
  61. if v:IsA("Pants") then
  62. v:Destroy()
  63. end
  64. end
  65. for i,v in pairs(Character:children()) do
  66. if v:IsA("Graphic Shirt") then
  67. v:Destroy()
  68. end
  69. end
  70. Humanoid.Animator.Parent = nil
  71. Character.Animate.Parent = nil
  72.  
  73. local newMotor = function(part0, part1, c0, c1)
  74. local w = Create('Motor'){
  75. Parent = part0,
  76. Part0 = part0,
  77. Part1 = part1,
  78. C0 = c0,
  79. C1 = c1,
  80. }
  81. return w
  82. end
  83.  
  84. function clerp(a, b, t)
  85. return a:lerp(b, t)
  86. end
  87.  
  88. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  89. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  90.  
  91. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  92. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  93. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  94. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  95. RootJoint.C1 = CFrame.new(0, 0, 0)
  96. RootJoint.C0 = CFrame.new(0, 0, 0)
  97. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  98. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  99.  
  100. local rarmc1 = RW.C1
  101. local larmc1 = LW.C1
  102. local rlegc1 = RH.C1
  103. local llegc1 = LH.C1
  104.  
  105. local resetc1 = false
  106.  
  107. function PlayAnimationFromTable(table, speed, bool)
  108. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  109. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  110. RW.C0 = clerp(RW.C0, table[3], speed)
  111. LW.C0 = clerp(LW.C0, table[4], speed)
  112. RH.C0 = clerp(RH.C0, table[5], speed)
  113. LH.C0 = clerp(LH.C0, table[6], speed)
  114. if bool == true then
  115. if resetc1 == false then
  116. resetc1 = true
  117. RootJoint.C1 = RootJoint.C1
  118. Torso.Neck.C1 = Torso.Neck.C1
  119. RW.C1 = rarmc1
  120. LW.C1 = larmc1
  121. RH.C1 = rlegc1
  122. LH.C1 = llegc1
  123. end
  124. end
  125. end
  126.  
  127. ArtificialHB = Create("BindableEvent", script){
  128. Parent = script,
  129. Name = "Heartbeat",
  130. }
  131.  
  132. script:WaitForChild("Heartbeat")
  133.  
  134. frame = 1 / 30
  135. tf = 0
  136. allowframeloss = false
  137. tossremainder = false
  138. lastframe = tick()
  139. script.Heartbeat:Fire()
  140.  
  141. game:GetService("RunService").Heartbeat:connect(function(s, p)
  142. tf = tf + s
  143. if tf >= frame then
  144. if allowframeloss then
  145. script.Heartbeat:Fire()
  146. lastframe = tick()
  147. else
  148. for i = 1, math.floor(tf / frame) do
  149. script.Heartbeat:Fire()
  150. end
  151. lastframe = tick()
  152. end
  153. if tossremainder then
  154. tf = 0
  155. else
  156. tf = tf - frame * math.floor(tf / frame)
  157. end
  158. end
  159. end)
  160.  
  161. function swait(num)
  162. if num == 0 or num == nil then
  163. ArtificialHB.Event:wait()
  164. else
  165. for i = 0, num do
  166. ArtificialHB.Event:wait()
  167. end
  168. end
  169. end
  170.  
  171. function RemoveOutlines(part)
  172. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  173. end
  174.  
  175. CFuncs = {
  176. ["Part"] = {
  177. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  178. local Part = Create("Part"){
  179. Parent = Parent,
  180. Reflectance = Reflectance,
  181. Transparency = Transparency,
  182. CanCollide = false,
  183. Locked = true,
  184. BrickColor = BrickColor.new(tostring(BColor)),
  185. Name = Name,
  186. Size = Size,
  187. Material = Material,
  188. }
  189. RemoveOutlines(Part)
  190. return Part
  191. end;
  192. };
  193.  
  194. ["Mesh"] = {
  195. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  196. local Msh = Create(Mesh){
  197. Parent = Part,
  198. Offset = OffSet,
  199. Scale = Scale,
  200. }
  201. if Mesh == "SpecialMesh" then
  202. Msh.MeshType = MeshType
  203. Msh.MeshId = MeshId
  204. end
  205. return Msh
  206. end;
  207. };
  208.  
  209. ["Mesh"] = {
  210. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  211. local Msh = Create(Mesh){
  212. Parent = Part,
  213. Offset = OffSet,
  214. Scale = Scale,
  215. }
  216. if Mesh == "SpecialMesh" then
  217. Msh.MeshType = MeshType
  218. Msh.MeshId = MeshId
  219. end
  220. return Msh
  221. end;
  222. };
  223.  
  224. ["Weld"] = {
  225. Create = function(Parent, Part0, Part1, C0, C1)
  226. local Weld = Create("Weld"){
  227. Parent = Parent,
  228. Part0 = Part0,
  229. Part1 = Part1,
  230. C0 = C0,
  231. C1 = C1,
  232. }
  233. return Weld
  234. end;
  235. };
  236.  
  237. ["Sound"] = {
  238. Create = function(id, par, vol, pit)
  239. coroutine.resume(coroutine.create(function()
  240. local S = Create("Sound"){
  241. Volume = vol,
  242. Pitch = pit or 1,
  243. SoundId = id,
  244. Parent = par or workspace,
  245. }
  246. wait()
  247. S:play()
  248. game:GetService("Debris"):AddItem(S, 6)
  249. end))
  250. end;
  251. };
  252.  
  253. ["ParticleEmitter"] = {
  254. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  255. local fp = Create("ParticleEmitter"){
  256. Parent = Parent,
  257. Color = ColorSequence.new(Color1, Color2),
  258. LightEmission = LightEmission,
  259. Size = Size,
  260. Texture = Texture,
  261. Transparency = Transparency,
  262. ZOffset = ZOffset,
  263. Acceleration = Accel,
  264. Drag = Drag,
  265. LockedToPart = LockedToPart,
  266. VelocityInheritance = VelocityInheritance,
  267. EmissionDirection = EmissionDirection,
  268. Enabled = Enabled,
  269. Lifetime = LifeTime,
  270. Rate = Rate,
  271. Rotation = Rotation,
  272. RotSpeed = RotSpeed,
  273. Speed = Speed,
  274. VelocitySpread = VelocitySpread,
  275. }
  276. return fp
  277. end;
  278. };
  279.  
  280. CreateTemplate = {
  281.  
  282. };
  283. }
  284.  
  285.  
  286.  
  287. New = function(Object, Parent, Name, Data)
  288. local Object = Instance.new(Object)
  289. for Index, Value in pairs(Data or {}) do
  290. Object[Index] = Value
  291. end
  292. Object.Parent = Parent
  293. Object.Name = Name
  294. return Object
  295. end
  296.  
  297. Handle = New("Part",m,"Handle",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.78105354, 1.21267569, 0.446083069),CFrame = CFrame.new(3.48884702, 1.89424598, -23.6011944, 0.0172098875, -7.30156898e-07, 0.999851942, 0.999853492, 1.19907781e-08, -0.0172098596, -1.80598714e-09, 1.00000083, 1.4975667e-06),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,})
  298. moter = New("Weld",Handle,"mot",{Part0 = RightArm,Part1 = Handle,})
  299. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.46324158, 2.55061626, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),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,})
  300. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.24608025, 0.123040132),})
  301. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655831456, 0.501588821, -0.0368974209, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  302. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.270688266, 0.270688266),CFrame = CFrame.new(3.47537327, 1.11045444, -23.2953625, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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,})
  303. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,})
  304. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.783906102, 0.305831909, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  305. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.221472263, 0.344512314),CFrame = CFrame.new(3.48828244, 1.86040294, -23.3093491, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  306. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.00999999, 1),})
  307. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(-0.0338476896, 0.291845322, 1.8119812e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  308. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.98432076, 0.200000003, 0.24608022),CFrame = CFrame.new(3.48404813, 1.61474013, -23.4433804, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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,})
  309. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.246080264, 1),})
  310. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279546618, 0.157814026, 1.21593475e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  311. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.36101127, 1.61687815, -23.4187717, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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,})
  312. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,})
  313. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279526353, 0.182422638, -0.123043299, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  314. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.53706741, 2.54934502, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),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,})
  315. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.246080235, 0.123040132),})
  316. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655830979, 0.501588821, 0.0369393826, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  317. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.48828554, 1.86097884, -23.1606178, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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,})
  318. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.7382406),})
  319. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.0332717896, 0.440576553, 1.14440918e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  320. Partss = New("Part",m,"Part",{BrickColor = BrickColor.new("Yellow"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.221472204, 0.221472189),CFrame = CFrame.new(3.47526526, 1.10428262, -23.2953568, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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(0.105882, 0.164706, 0.207843),})
  321. Mesh = New("SpecialMesh",Partss,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,})
  322. mot = New("Weld",Partss,"mot",{Part0 = Partss,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.790078878, 0.305837631, 1.57356262e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  323. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.49040294, 1.9837563, -23.5174713, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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,})
  324. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.615200579, 0.36912033, 0.24608025),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  325. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(0.0895236731, 0.0837230682, 1.52587891e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  326. Part = New("Part",m,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.295296252, 0.738240778, 0.369120389),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),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(0.105882, 0.164706, 0.207843),})
  327. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  328. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512314, 0.78745681, 0.344512314),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  329. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  330. Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.60706425, 1.61264217, -23.4187698, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),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,})
  331. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,})
  332. mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279527187, 0.182424545, 0.12304616, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  333. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.47672749, 1.18911982, -23.1232109, 0.999851942, 0.00638213893, 0.0159827713, -0.0172098316, 0.37065956, 0.928613782, 4.44045327e-06, -0.928749561, 0.370713741),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,})
  334. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.246080264, 0.615200639),MeshType = Enum.MeshType.Wedge,})
  335. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098316, 3.67313623e-06, 0.00638283044, 0.370658338, -0.928748012, 0.0159824342, 0.928610861, 0.370713145),C1 = CFrame.new(-0.705229163, 0.477983475, 1.76429749e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  336. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.50247502, 2.68478155, -23.8132839, 0.999851942, 1.0713723e-05, -0.0172099732, -0.0172098912, 0.000738376984, -0.999856234, 4.21693585e-06, 1.00000226, 0.000738456321),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,})
  337. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,})
  338. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098912, 3.44961882e-06, 9.9465251e-06, 0.000738390256, 1.0000006, -0.0172099192, -0.999853015, 0.000738452654),C1 = CFrame.new(0.790651679, -0.212089539, 2.07424164e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  339. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.4904809, 1.98827124, -23.5162678, -0.999852061, -0.0148990965, 0.00861407723, 0.0172099397, -0.865535975, 0.500560343, -4.36594746e-06, 0.500633478, 0.865662456),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,})
  340. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.369120389, 0.861280918),MeshType = Enum.MeshType.Wedge,})
  341. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.999851942, 0.0172099397, -3.59863043e-06, -0.0148994327, -0.865533173, 0.500632644, 0.00861338526, 0.500558794, 0.865661025),C1 = CFrame.new(0.0940393209, 0.0849266052, 1.54972076e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  342. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.442944348, 0.200000003, 0.200000003),CFrame = CFrame.new(3.37415838, 2.37982368, -23.1609974, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),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,})
  343. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,})
  344. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(0.483531356, 0.440196991, -0.12302804, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  345. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.61520052, 0.200000003, 0.200000003),CFrame = CFrame.new(3.35783243, 1.43252242, -23.1602993, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),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,})
  346. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,})
  347. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(-0.463909149, 0.440895081, -0.123048544, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  348. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.61130548, 1.85886192, -23.160614, -0.0172098689, 1.04156998e-05, -0.99985218, -0.999856234, 0.000738191127, 0.0172097925, 0.000738266157, 1.00000238, -4.55221243e-06),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,})
  349. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,})
  350. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.0172098149, -0.999853075, 0.00073826249, 9.64850187e-06, 0.00073820434, 1.00000072, -0.999852121, 0.0172097944, -3.78489494e-06),C1 = CFrame.new(-0.0332713127, 0.440580368, 0.123049498, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  351. Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240778, 0.200000003),CFrame = CFrame.new(3.50183868, 2.64789343, -23.8132629, 0.999851942, 1.0818032e-05, -0.017209895, -0.0172098186, 0.000737608876, -0.999856234, 4.13497901e-06, 1.00000238, 0.000737691764),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(0.105882, 0.164706, 0.207843),})
  352. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,})
  353. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098186, 3.36766243e-06, 1.00508332e-05, 0.000737622147, 1.00000072, -0.0172098409, -0.999853015, 0.000737688097),C1 = CFrame.new(0.753758311, -0.212068558, 1.93119049e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  354. Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.49357963, 2.16808391, -23.8129005, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),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,})
  355. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,})
  356. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.273878455, -0.211706161, 1.90734863e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  357. Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240659, 0.200000003),CFrame = CFrame.new(3.49420977, 2.20497489, -23.8129292, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),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(0.105882, 0.164706, 0.207843),})
  358. Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,})
  359. mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.310774684, -0.211734772, 1.43051147e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
  360.  
  361. for _,v in pairs(m:children()) do
  362. if v:IsA("Part") then
  363. v.CanCollide = false
  364. end
  365. end
  366. for _,v in pairs(m:children()) do
  367. if v:IsA("Part") then
  368. v.Material = "Neon"
  369. end
  370. end
  371. spawn(function()
  372. while wait() do
  373. for _,v in pairs(m:children()) do
  374. if v:IsA("Part") then
  375. v.BrickColor=BrickColor.random()
  376. end
  377. end
  378. end
  379. end)
  380.  
  381.  
  382. function rayCast(Position, Direction, Range, Ignore)
  383. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  384. end
  385.  
  386. --[[FindNearestTorso = function(pos)
  387. local list = (game.Workspace:children())
  388. local torso = nil
  389. local dist = 1000
  390. local temp, human, temp2 = nil, nil, nil
  391. for x = 1, #list do
  392. temp2 = list[x]
  393. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  394. temp = temp2:findFirstChild("Torso")
  395. human = temp2:findFirstChild("Humanoid")
  396. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  397. local dohit = true
  398. if dohit == true then
  399. torso = temp
  400. dist = (temp.Position - pos).magnitude
  401. end
  402. end
  403. end
  404. end
  405. return torso, dist
  406. end]]
  407. function FindNearestTorso(Position, Distance, SinglePlayer)
  408. if SinglePlayer then
  409. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  410. end
  411. local List = {}
  412. for i, v in pairs(workspace:GetChildren()) do
  413. if v:IsA("Model") then
  414. if v:findFirstChild("Torso") then
  415. if v ~= Character then
  416. if (v.Torso.Position - Position).magnitude <= Distance then
  417. table.insert(List, v)
  418. end
  419. end
  420. end
  421. end
  422. end
  423. return List
  424. end
  425. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  426. if hit.Parent == nil then
  427. return
  428. end
  429. local h = hit.Parent:FindFirstChild("Humanoid")
  430. for _, v in pairs(hit.Parent:children()) do
  431. if v:IsA("Humanoid") then
  432. h = v
  433. end
  434. end
  435. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  436. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  437. if hit.Parent.DebounceHit.Value == true then
  438. return
  439. end
  440. end
  441. local c = Create("ObjectValue"){
  442. Name = "creator",
  443. Value = game:service("Players").LocalPlayer,
  444. Parent = h,
  445. }
  446. game:GetService("Debris"):AddItem(c, .5)
  447. if HitSound ~= nil and HitPitch ~= nil then
  448. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  449. end
  450. local Damage = math.random(minim, maxim)
  451. local blocked = false
  452. local block = hit.Parent:findFirstChild("Block")
  453. if block ~= nil then
  454. if block.className == "IntValue" then
  455. if block.Value > 0 then
  456. blocked = true
  457. block.Value = block.Value - 1
  458. print(block.Value)
  459. end
  460. end
  461. end
  462. if blocked == false then
  463. h.Health = h.Health - Damage
  464. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  465. else
  466. h.Health = h.Health - (Damage / 2)
  467. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  468. end
  469. if Type == "Knockdown" then
  470. local hum = hit.Parent.Humanoid
  471. hum.PlatformStand = true
  472. coroutine.resume(coroutine.create(function(HHumanoid)
  473. swait(1)
  474. HHumanoid.PlatformStand = false
  475. end), hum)
  476. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  477. local bodvol = Create("BodyVelocity"){
  478. velocity = angle * knockback,
  479. P = 5000,
  480. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  481. Parent = hit,
  482. }
  483. local rl = Create("BodyAngularVelocity"){
  484. P = 3000,
  485. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  486. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  487. Parent = hit,
  488. }
  489. game:GetService("Debris"):AddItem(bodvol, .5)
  490. game:GetService("Debris"):AddItem(rl, .5)
  491. elseif Type == "Normal" then
  492. local vp = Create("BodyVelocity"){
  493. P = 500,
  494. maxForce = Vector3.new(math.huge, 0, math.huge),
  495. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  496. }
  497. if knockback > 0 then
  498. vp.Parent = hit.Parent.Torso
  499. end
  500. game:GetService("Debris"):AddItem(vp, .5)
  501. elseif Type == "Up" then
  502. local bodyVelocity = Create("BodyVelocity"){
  503. velocity = Vector3.new(0, 20, 0),
  504. P = 5000,
  505. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  506. Parent = hit,
  507. }
  508. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  509. elseif Type == "DarkUp" then
  510. coroutine.resume(coroutine.create(function()
  511. for i = 0, 1, 0.1 do
  512. swait()
  513. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  514. end
  515. end))
  516. local bodyVelocity = Create("BodyVelocity"){
  517. velocity = Vector3.new(0, 20, 0),
  518. P = 5000,
  519. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  520. Parent = hit,
  521. }
  522. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  523. elseif Type == "Snare" then
  524. local bp = Create("BodyPosition"){
  525. P = 2000,
  526. D = 100,
  527. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  528. position = hit.Parent.Torso.Position,
  529. Parent = hit.Parent.Torso,
  530. }
  531. game:GetService("Debris"):AddItem(bp, 1)
  532. elseif Type == "Freeze" then
  533. local BodPos = Create("BodyPosition"){
  534. P = 50000,
  535. D = 1000,
  536. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  537. position = hit.Parent.Torso.Position,
  538. Parent = hit.Parent.Torso,
  539. }
  540. local BodGy = Create("BodyGyro") {
  541. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  542. P = 20e+003,
  543. Parent = hit.Parent.Torso,
  544. cframe = hit.Parent.Torso.CFrame,
  545. }
  546. hit.Parent.Torso.Anchored = true
  547. coroutine.resume(coroutine.create(function(Part)
  548. swait(1.5)
  549. Part.Anchored = false
  550. end), hit.Parent.Torso)
  551. game:GetService("Debris"):AddItem(BodPos, 3)
  552. game:GetService("Debris"):AddItem(BodGy, 3)
  553. end
  554. local debounce = Create("BoolValue"){
  555. Name = "DebounceHit",
  556. Parent = hit.Parent,
  557. Value = true,
  558. }
  559. game:GetService("Debris"):AddItem(debounce, Delay)
  560. c = Create("ObjectValue"){
  561. Name = "creator",
  562. Value = Player,
  563. Parent = h,
  564. }
  565. game:GetService("Debris"):AddItem(c, .5)
  566. end
  567. end
  568.  
  569. function ShowDamage(Pos, Text, Time, Color)
  570. local Rate = (1 / 30)
  571. local Pos = (Pos or Vector3.new(0, 0, 0))
  572. local Text = (Text or "")
  573. local Time = (Time or 2)
  574. local Color = (Color or Color3.new(1, 0, 1))
  575. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  576. EffectPart.Anchored = true
  577. local BillboardGui = Create("BillboardGui"){
  578. Size = UDim2.new(3, 0, 3, 0),
  579. Adornee = EffectPart,
  580. Parent = EffectPart,
  581. }
  582. local TextLabel = Create("TextLabel"){
  583. BackgroundTransparency = 1,
  584. Size = UDim2.new(1, 0, 1, 0),
  585. Text = Text,
  586. Font = "SciFi",
  587. TextColor3 = Color,
  588. TextScaled = true,
  589. Parent = BillboardGui,
  590. }
  591. game.Debris:AddItem(EffectPart, (Time))
  592. EffectPart.Parent = game:GetService("Workspace")
  593. delay(0, function()
  594. local Frames = (Time / Rate)
  595. for Frame = 1, Frames do
  596. wait(Rate)
  597. local Percent = (Frame / Frames)
  598. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  599. TextLabel.TextTransparency = Percent
  600. end
  601. if EffectPart and EffectPart.Parent then
  602. EffectPart:Destroy()
  603. end
  604. end)
  605. end
  606.  
  607. function dmg(dude)
  608. if dude.Name ~= Character then
  609. dude.Humanoid.PlatformStand = true
  610. local bgf = Instance.new("BodyGyro",dude.Head)
  611. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  612. local val = Instance.new("BoolValue",dude)
  613. val.Name = "IsHit"
  614. for i = 1, 6 do
  615. local blo = Instance.new("Part",game.Workspace)
  616. blo.Size = Vector3.new(.6,.2,.6)
  617. blo.Material = "Neon"
  618. blo.BrickColor = BrickColor.new("Crimson")
  619. --blo.Position = dude.Head.Position
  620. blo.CFrame = dude.Head.CFrame
  621. game:GetService("Debris"):AddItem(blo,30)
  622. end
  623. local ds = coroutine.wrap(function()
  624. wait(.2)
  625. dude.Torso:BreakJoints()
  626. end)
  627. ds()
  628. end
  629. end
  630.  
  631. function mdmg(Part, Magnitude)--, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  632. --local buddy
  633. for _, c in pairs(workspace:children()) do
  634. local hum = c:findFirstChild("Humanoid")
  635. if hum ~= nil then
  636. local head = c:findFirstChild("Torso")
  637. if head ~= nil then
  638. local targ = head.Position - Part.Position
  639. local mag = targ.magnitude
  640. if mag <= Magnitude and c.Name ~= Player.Name then
  641. if c.Name ~= Character then
  642. if c.Name ~= "CKbackup" then
  643. local asd = Instance.new("ParticleEmitter",c.Torso)
  644. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  645. asd.LightEmission = .1
  646. asd.Size = NumberSequence.new(0.2)
  647. asd.Texture = "http://www.roblox.com/asset/?ID=459924806"
  648. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  649. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  650. asd.Transparency = bbb
  651. asd.Size = aaa
  652. asd.ZOffset = .9
  653. asd.Acceleration = Vector3.new(0, -5, 0)
  654. asd.LockedToPart = false
  655. asd.EmissionDirection = "Back"
  656. asd.Lifetime = NumberRange.new(1, 2)
  657. asd.Rate = 1000
  658. asd.Rotation = NumberRange.new(-100, 100)
  659. asd.RotSpeed = NumberRange.new(-100, 100)
  660. asd.Speed = NumberRange.new(6)
  661. asd.VelocitySpread = 10000
  662. asd.Enabled=true
  663. --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  664. dmg(c)
  665. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=836454385", c.Torso, 1.2, 1)
  666. coroutine.wrap(function()
  667. wait(.2)
  668. asd.Enabled = false
  669. wait(2)
  670. asd:Remove()
  671. end)()
  672. else
  673. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=836454385", c.Torso, 1.5, 1)
  674. Effects.Sphere.Create(BrickColor.random(), c.Torso.CFrame, 30, 30, 30, .5, .5, .5, 0.04)
  675.  
  676. end
  677. end
  678. end
  679. end
  680. end
  681. end
  682. end
  683. EffectModel = Create("Model"){
  684. Parent = Character,
  685. Name = "Effects",
  686. }
  687.  
  688. Effects = {
  689. Block = {
  690. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  691. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  692. prt.Anchored = true
  693. prt.CFrame = cframe
  694. prt.Material = "Neon"
  695. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  696. game:GetService("Debris"):AddItem(prt, 10)
  697. if Type == 1 or Type == nil then
  698. table.insert(Effects, {
  699. prt,
  700. "Block1",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. elseif Type == 2 then
  708. table.insert(Effects, {
  709. prt,
  710. "Block2",
  711. delay,
  712. x3,
  713. y3,
  714. z3,
  715. msh
  716. })
  717. end
  718. end;
  719. };
  720.  
  721. Cylinder = {
  722. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  723. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  724. prt.Anchored = true
  725. prt.Material = "Neon"
  726. prt.CFrame = cframe
  727. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  728. game:GetService("Debris"):AddItem(prt, 10)
  729. table.insert(Effects, {
  730. prt,
  731. "Cylinder",
  732. delay,
  733. x3,
  734. y3,
  735. z3,
  736. msh
  737. })
  738. end;
  739. };
  740. Head = {
  741. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  742. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  743. prt.Anchored = true
  744. prt.Material = "Neon"
  745. prt.CFrame = cframe
  746. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  747. game:GetService("Debris"):AddItem(prt, 10)
  748. table.insert(Effects, {
  749. prt,
  750. "Cylinder",
  751. delay,
  752. x3,
  753. y3,
  754. z3,
  755. msh
  756. })
  757. end;
  758. };
  759.  
  760. Sphere = {
  761. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  762. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  763. prt.Anchored = true
  764. prt.Material = "Neon"
  765. prt.CFrame = cframe
  766. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  767. game:GetService("Debris"):AddItem(prt, 10)
  768. table.insert(Effects, {
  769. prt,
  770. "Cylinder",
  771. delay,
  772. x3,
  773. y3,
  774. z3,
  775. msh
  776. })
  777. end;
  778. };
  779.  
  780. Elect = {
  781. Create = function(cff, x, y, z)
  782. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  783. prt.Anchored = true
  784. prt.Material = "Neon"
  785. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  786. prt.CFrame = CFrame.new(prt.Position)
  787. game:GetService("Debris"):AddItem(prt, 2)
  788. local xval = math.random() / 2
  789. local yval = math.random() / 2
  790. local zval = math.random() / 2
  791. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  792. table.insert(Effects, {
  793. prt,
  794. "Elec",
  795. 0.1,
  796. x,
  797. y,
  798. z,
  799. xval,
  800. yval,
  801. zval
  802. })
  803. end;
  804.  
  805. };
  806.  
  807. Ring = {
  808. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  809. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  810. prt.Anchored = true
  811. prt.CFrame = cframe
  812. prt.Material = "Neon"
  813. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  814. game:GetService("Debris"):AddItem(prt, 10)
  815. table.insert(Effects, {
  816. prt,
  817. "Cylinder",
  818. delay,
  819. x3,
  820. y3,
  821. z3,
  822. msh
  823. })
  824. end;
  825. };
  826.  
  827.  
  828. Wave = {
  829. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  830. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  831. prt.Anchored = true
  832. prt.CFrame = cframe
  833. prt.Material = "Neon"
  834. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  835. game:GetService("Debris"):AddItem(prt, 10)
  836. table.insert(Effects, {
  837. prt,
  838. "Cylinder",
  839. delay,
  840. x3,
  841. y3,
  842. z3,
  843. msh
  844. })
  845. end;
  846. };
  847.  
  848. Break = {
  849. Create = function(brickcolor, cframe, x1, y1, z1)
  850. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  851. prt.Anchored = true
  852. prt.Material = "Neon"
  853. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  854. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  855. local num = math.random(10, 50) / 1000
  856. game:GetService("Debris"):AddItem(prt, 10)
  857. table.insert(Effects, {
  858. prt,
  859. "Shatter",
  860. num,
  861. prt.CFrame,
  862. math.random() - math.random(),
  863. 0,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement