Roblox_Xploits

Meteor Smasher Roblox Lua

Aug 24th, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.05 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52.  
  53. mouse=Player:GetMouse()
  54. --save shoulders
  55. RSH, LSH=nil, nil
  56. --welds
  57. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  58. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  59. LH=Torso["Left Hip"]
  60. RH=Torso["Right Hip"]
  61. TorsoColor=Torso.BrickColor
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. Player=game:GetService('Players').LocalPlayer
  88. Character=Player.Character
  89. Mouse=Player:GetMouse()
  90. m=Instance.new('Model',Character)
  91.  
  92.  
  93. local function weldBetween(a, b)
  94. local weldd = Instance.new("ManualWeld")
  95. weldd.Part0 = a
  96. weldd.Part1 = b
  97. weldd.C0 = CFrame.new()
  98. weldd.C1 = b.CFrame:inverse() * a.CFrame
  99. weldd.Parent = a
  100. return weldd
  101. end
  102.  
  103. it=Instance.new
  104.  
  105. function nooutline(part)
  106. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  107. end
  108.  
  109. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  110. local fp=it("Part")
  111. fp.formFactor=formfactor
  112. fp.Parent=parent
  113. fp.Reflectance=reflectance
  114. fp.Transparency=transparency
  115. fp.CanCollide=false
  116. fp.Locked=true
  117. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  118. fp.Name=name
  119. fp.Size=size
  120. fp.Position=Character.Torso.Position
  121. nooutline(fp)
  122. fp.Material=material
  123. fp:BreakJoints()
  124. return fp
  125. end
  126.  
  127. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  128. local mesh=it(Mesh)
  129. mesh.Parent=part
  130. if Mesh=="SpecialMesh" then
  131. mesh.MeshType=meshtype
  132. mesh.MeshId=meshid
  133. end
  134. mesh.Offset=offset
  135. mesh.Scale=scale
  136. return mesh
  137. end
  138.  
  139. function weld(parent,part0,part1,c0,c1)
  140. local weld=it("Weld")
  141. weld.Parent=parent
  142. weld.Part0=part0
  143. weld.Part1=part1
  144. weld.C0=c0
  145. weld.C1=c1
  146. return weld
  147. end
  148.  
  149.  
  150. Player=game:GetService('Players').LocalPlayer
  151. Character=Player.Character
  152. Mouse=Player:GetMouse()
  153. m=Instance.new('Model',Character)
  154.  
  155.  
  156. local function weldBetween(a, b)
  157. local weldd = Instance.new("ManualWeld")
  158. weldd.Part0 = a
  159. weldd.Part1 = b
  160. weldd.C0 = CFrame.new()
  161. weldd.C1 = b.CFrame:inverse() * a.CFrame
  162. weldd.Parent = a
  163. return weldd
  164. end
  165.  
  166. it=Instance.new
  167.  
  168. function nooutline(part)
  169. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  170. end
  171.  
  172. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  173. local fp=it("Part")
  174. fp.formFactor=formfactor
  175. fp.Parent=parent
  176. fp.Reflectance=reflectance
  177. fp.Transparency=transparency
  178. fp.CanCollide=false
  179. fp.Locked=true
  180. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  181. fp.Name=name
  182. fp.Size=size
  183. fp.Position=Character.Torso.Position
  184. nooutline(fp)
  185. fp.Material=material
  186. fp:BreakJoints()
  187. return fp
  188. end
  189.  
  190. function swait(num)
  191. if num==0 or num==nil then
  192. game:service'RunService'.Heartbeat:wait(0)
  193. else
  194. for i=0,num do
  195. game:service'RunService'.Heartbeat:wait(0)
  196. end
  197. end
  198. end
  199.  
  200. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  201. local mesh=it(Mesh)
  202. mesh.Parent=part
  203. if Mesh=="SpecialMesh" then
  204. mesh.MeshType=meshtype
  205. mesh.MeshId=meshid
  206. end
  207. mesh.Offset=offset
  208. mesh.Scale=scale
  209. return mesh
  210. end
  211.  
  212. function weld(parent,part0,part1,c0,c1)
  213. local weld=it("Weld")
  214. weld.Parent=parent
  215. weld.Part0=part0
  216. weld.Part1=part1
  217. weld.C0=c0
  218. weld.C1=c1
  219. return weld
  220. end
  221.  
  222.  
  223. local function CFrameFromTopBack(at, top, back)
  224. local right = top:Cross(back)
  225. return CFrame.new(at.x, at.y, at.z,
  226. right.x, top.x, back.x,
  227. right.y, top.y, back.y,
  228. right.z, top.z, back.z)
  229. end
  230.  
  231. function Triangle(a, b, c)
  232. local edg1 = (c-a):Dot((b-a).unit)
  233. local edg2 = (a-b):Dot((c-b).unit)
  234. local edg3 = (b-c):Dot((a-c).unit)
  235. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  236. a, b, c = a, b, c
  237. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  238. a, b, c = b, c, a
  239. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  240. a, b, c = c, a, b
  241. else
  242. assert(false, "unreachable")
  243. end
  244.  
  245. local len1 = (c-a):Dot((b-a).unit)
  246. local len2 = (b-a).magnitude - len1
  247. local width = (a + (b-a).unit*len1 - c).magnitude
  248.  
  249. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  250.  
  251. local list = {}
  252.  
  253. local Color = BrickColor.new("Dark grey")
  254.  
  255. if len1 > 0.01 then
  256. local w1 = Instance.new('WedgePart', m)
  257. game:GetService("Debris"):AddItem(w1,5)
  258. w1.Material = "SmoothPlastic"
  259. w1.FormFactor = 'Custom'
  260. w1.BrickColor = BrickColor.new(Color)
  261. w1.Transparency = 0
  262. w1.Reflectance = 0
  263. w1.Material = "SmoothPlastic"
  264. w1.CanCollide = false
  265. NoOutline(w1)
  266. local sz = Vector3.new(0.2, width, len1)
  267. w1.Size = sz
  268. local sp = Instance.new("SpecialMesh",w1)
  269. sp.MeshType = "Wedge"
  270. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  271. w1:BreakJoints()
  272. w1.Anchored = true
  273. w1.Parent = workspace
  274. w1.Transparency = 0.7
  275. table.insert(Effects,{w1,"Disappear",.01})
  276. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  277. table.insert(list,w1)
  278. end
  279.  
  280. if len2 > 0.01 then
  281. local w2 = Instance.new('WedgePart', m)
  282. game:GetService("Debris"):AddItem(w2,5)
  283. w2.Material = "SmoothPlastic"
  284. w2.FormFactor = 'Custom'
  285. w2.BrickColor = BrickColor.new(Color)
  286. w2.Transparency = 0
  287. w2.Reflectance = 0
  288. w2.Material = "SmoothPlastic"
  289. w2.CanCollide = false
  290. NoOutline(w2)
  291. local sz = Vector3.new(0.2, width, len2)
  292. w2.Size = sz
  293. local sp = Instance.new("SpecialMesh",w2)
  294. sp.MeshType = "Wedge"
  295. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  296. w2:BreakJoints()
  297. w2.Anchored = true
  298. w2.Parent = workspace
  299. w2.Transparency = 0.7
  300. table.insert(Effects,{w2,"Disappear",.01})
  301. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  302. table.insert(list,w2)
  303. end
  304. return unpack(list)
  305. end
  306.  
  307.  
  308. so = function(id,par,vol,pit)
  309. coroutine.resume(coroutine.create(function()
  310. local sou = Instance.new("Sound",par or workspace)
  311. sou.Volume=vol
  312. sou.Pitch=pit or 1
  313. sou.SoundId=id
  314. swait()
  315. sou:play()
  316. game:GetService("Debris"):AddItem(sou,6)
  317. end))
  318. end
  319.  
  320. function clerp(a,b,t)
  321. local qa = {QuaternionFromCFrame(a)}
  322. local qb = {QuaternionFromCFrame(b)}
  323. local ax, ay, az = a.x, a.y, a.z
  324. local bx, by, bz = b.x, b.y, b.z
  325. local _t = 1-t
  326. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  327. end
  328.  
  329. function QuaternionFromCFrame(cf)
  330. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  331. local trace = m00 + m11 + m22
  332. if trace > 0 then
  333. local s = math.sqrt(1 + trace)
  334. local recip = 0.5/s
  335. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  336. else
  337. local i = 0
  338. if m11 > m00 then
  339. i = 1
  340. end
  341. if m22 > (i == 0 and m00 or m11) then
  342. i = 2
  343. end
  344. if i == 0 then
  345. local s = math.sqrt(m00-m11-m22+1)
  346. local recip = 0.5/s
  347. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  348. elseif i == 1 then
  349. local s = math.sqrt(m11-m22-m00+1)
  350. local recip = 0.5/s
  351. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  352. elseif i == 2 then
  353. local s = math.sqrt(m22-m00-m11+1)
  354. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  355. end
  356. end
  357. end
  358.  
  359. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  360. local xs, ys, zs = x + x, y + y, z + z
  361. local wx, wy, wz = w*xs, w*ys, w*zs
  362. local xx = x*xs
  363. local xy = x*ys
  364. local xz = x*zs
  365. local yy = y*ys
  366. local yz = y*zs
  367. local zz = z*zs
  368. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  369. end
  370.  
  371. function QuaternionSlerp(a, b, t)
  372. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  373. local startInterp, finishInterp;
  374. if cosTheta >= 0.0001 then
  375. if (1 - cosTheta) > 0.0001 then
  376. local theta = math.acos(cosTheta)
  377. local invSinTheta = 1/math.sin(theta)
  378. startInterp = math.sin((1-t)*theta)*invSinTheta
  379. finishInterp = math.sin(t*theta)*invSinTheta
  380. else
  381. startInterp = 1-t
  382. finishInterp = t
  383. end
  384. else
  385. if (1+cosTheta) > 0.0001 then
  386. local theta = math.acos(-cosTheta)
  387. local invSinTheta = 1/math.sin(theta)
  388. startInterp = math.sin((t-1)*theta)*invSinTheta
  389. finishInterp = math.sin(t*theta)*invSinTheta
  390. else
  391. startInterp = t-1
  392. finishInterp = t
  393. end
  394. end
  395. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  396. end
  397.  
  398. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  399. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  400. end
  401.  
  402. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Handle",Vector3.new(0.27962029, 3.61943054, 0.279620409))
  403. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.963727713, -0.75069809, -0.149722099, 0, 0.999999881, 0, 0, 0, -1, -1, 0, 0))
  404. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  405. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Deep orange","Hitbox",Vector3.new(1.25829172, 1.87962031, 1.39810228))
  406. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -9.53674316e-007, 0, 0, -1, 0, -1, 0, 4.37113883e-008, -4.37113883e-008, 0, -1))
  407. mesh("CylinderMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  408. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.241052076, 0.419430614, 0.241052106))
  409. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.770821095, -2.65612411, -0.489377499, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  410. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  411. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.419430614, 0.241052106))
  412. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419278979, -2.65612411, 0.560666084, 1, 0, -7.10556119e-015, 0, 1, 0, 7.10556119e-015, 0, 1))
  413. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  414. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.241052076, 0.279620409, 0.279620439))
  415. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.770821095, -3.14520645, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  416. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  417. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.279620409, 0.279620409))
  418. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419471979, -3.14520645, -0.000113964081, 1, 0, -7.10556119e-015, 0, 1, 0, 7.10556119e-015, 0, 1))
  419. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.27962029, 0.978671491, 0.279620409))
  420. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -1.67770004, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  421. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  422. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.279620409, 0.279620409))
  423. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419294119, -3.14520645, -0.000113964081, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  424. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.2796202, 0.419430614, 0.241052106))
  425. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -2.65612411, -0.565023899, 1, 0, 7.10556204e-015, 0, 1, 0, -7.10556204e-015, 0, 1))
  426. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  427. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.27962029, 0.97867161, 0.279620409))
  428. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -0.699043274, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  429. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  430. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.838861048, 0.241052076, 0.419430614))
  431. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 1.95742798, -0.00016784668, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  432. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.638000011, 1))
  433. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.699050784, 0.241052076, 0.838861287))
  434. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.775936961, 0, 0, -1, 0, -1, 0, 4.37113883e-008, -4.37113883e-008, 0, -1))
  435. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.638000011, 1))
  436. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.2796202, 0.279620409, 0.279620409))
  437. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -2.02722168, 0, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  438. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.838861048, 0.241052076, 0.419430614))
  439. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000185966492, 2.37683105, -0.00016784668, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  440. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.638000011, 1))
  441. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(1.25829172, 0.241052076, 1.39810228))
  442. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.766957998, -0.000238418579, 0, -1, 0, 1, 0, -8.94070027e-008, 8.94070027e-008, 0, 1))
  443. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  444. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.279620409, 0.279620409))
  445. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419294119, -2.02722168, 0, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  446. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.241052076, 0.419430614, 0.241052106))
  447. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.770821095, -2.65612411, 0.489314079, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  448. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  449. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.279620409, 0.279620409))
  450. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419471979, -2.02722168, 0, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  451. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.419430614, 0.241052106))
  452. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419525146, -2.65612411, 0.560666084, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  453. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  454. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.559240818, 0.419430614, 0.419430643))
  455. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000237941742, -2.65612411, 0.854103208, -1.42111224e-014, 0, -1, 0, 1, 0, 1, 0, -1.42111224e-014))
  456. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.475354671, 0.157985523, 0.157985538))
  457. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.2796202, 0.419430614, 0.241052106))
  458. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -2.65612411, 0.560734987, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  459. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  460. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(1.25829172, 0.241052076, 1.39810228))
  461. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.768936992, 0, 0, -1, 0, -1, 0, 4.37113883e-008, -4.37113883e-008, 0, -1))
  462. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  463. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.241052076, 0.419430614, 0.241052106))
  464. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.768996, -2.65612411, 0.489709377, -1, 0, 5.96046732e-008, 0, 1, 0, -5.96046732e-008, 0, -1))
  465. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  466. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.2796202, 0.279620409, 0.279620409))
  467. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -3.14520645, 0, 1, 0, -3.55278059e-015, 0, 1, 0, 3.55278059e-015, 0, 1))
  468. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.27962029, 1.25829184, 0.279620409))
  469. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 1.25823593, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  470. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  471. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(1.25829172, 0.279620379, 1.39810228))
  472. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -9.53674316e-007, 0, 0, -1, 0, -1, 0, 4.37113883e-008, -4.37113883e-008, 0, -1))
  473. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  474. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.241052076, 0.279620409, 0.279620409))
  475. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.766957998, -2.02722168, 0.000322818756, -1, 0, 5.96046803e-008, 0, 1, 0, -5.96046803e-008, 0, -1))
  476. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  477. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.419430614, 0.241052106))
  478. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419525146, -2.65612411, -0.565055847, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  479. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  480. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.55924058, 0.419430614, 0.241052106))
  481. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419278979, -2.65612411, -0.565199852, 1, 0, -3.55271114e-015, 0, 1, 0, 3.55271114e-015, 0, 1))
  482. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  483. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.241052076, 0.419430614, 0.241052106))
  484. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.768996, -2.65612411, -0.489047766, -1, 0, 5.96046803e-008, 0, 1, 0, -5.96046803e-008, 0, -1))
  485. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  486. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.27962029, 0.419430822, 0.279620409))
  487. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 0.419418335, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  488. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  489. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.27962029, 0.419430703, 0.279620409))
  490. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  491. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  492. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.559240818, 0.419430614, 0.279620439))
  493. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.65612411, -0.000441551208, -0.85076499, 3.17631448e-022, 1, 2.98012068e-008, 7.10556119e-015, -2.98012068e-008, 1, 1, -1.05877149e-022, -7.10556119e-015))
  494. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.475354671, 0.157985523, 0.157985538))
  495. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.838861048, 0.241052076, 0.559240818))
  496. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 1.95742798, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  497. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  498. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.978671193, 0.241052076, 1.11848176))
  499. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.770539999, -0.000442028046, 0, -1, 0, 1, 0, -8.94070027e-008, 8.94070027e-008, 0, 1))
  500. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.608999968, 1))
  501. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.559240818, 0.419430614, 0.279620439))
  502. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000441551208, -2.65612411, -0.85076499, -1.06583418e-014, 0, -1, 0, 1, 0, 1, 0, -1.06583418e-014))
  503. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.475354671, 0.157985523, 0.157985538))
  504. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.559240818, 0.419430614, 0.419430643))
  505. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.65612411, -0.000237941742, 0.854103208, 4.23450739e-022, 1, 2.97955935e-008, 1.06583418e-014, -2.97955935e-008, 1, 1, -1.05879118e-022, -1.06583418e-014))
  506. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.475354671, 0.157985523, 0.157985538))
  507. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.978671193, 0.241052076, 1.11848176))
  508. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.772364974, 0, 0, -1, 0, -1, 0, 4.37113883e-008, -4.37113883e-008, 0, -1))
  509. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.608999968, 1))
  510. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.25829172, 0.559240758, 1.39810228))
  511. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.41947186, 0, 0, -1, 0, -1, 0, 4.37113883e-008, -4.37113883e-008, 0, -1))
  512. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  513. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.559240818, 0.279620409, 0.279620439))
  514. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 2.16713333, 0.000185966492, -1.06583418e-014, 0, -1, 0, 1, 0, 1, 0, -1.06583418e-014))
  515. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.416634381, 0.31457293, 0.415236324))
  516. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.241052076, 0.279620409, 0.279620439))
  517. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.768996, -3.14520645, 0.000441551208, -1, 0, 5.96046803e-008, 0, 1, 0, -5.96046803e-008, 0, -1))
  518. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  519. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.241052076, 0.279620409, 0.279620409))
  520. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.768937111, -2.02722168, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  521. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  522. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.838861048, 0.241052076, 0.559240818))
  523. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000185966492, 2.37683105, 0, 1, 0, -1.06583418e-014, 0, 1, 0, 1.06583418e-014, 0, 1))
  524. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  525. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.559240818, 0.279620409, 0.279620439))
  526. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 2.4467392, 0.000185966492, -1.06583418e-014, 0, -1, 0, 1, 0, 1, 0, -1.06583418e-014))
  527. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.399857134, 1.01222587, 0.2712318))
  528. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.25829172, 0.559240758, 1.39810228))
  529. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, 0.419294119, 0.00016784668, 0, -1, 0, -1, 0, 4.37113812e-008, -4.37113812e-008, 0, -1))
  530. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  531. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.699050784, 0.241052076, 0.838861287))
  532. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.65612411, -0.774136066, -0.000442028046, 0, -1, 0, 1, 0, -8.94070027e-008, 8.94070027e-008, 0, 1))
  533. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.638000011, 1))
  534.  
  535. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  536. if hit.Parent==nil then
  537. return
  538. end
  539. h=hit.Parent:FindFirstChild("Humanoid")
  540. for _,v in pairs(hit.Parent:children()) do
  541. if v:IsA("Humanoid") then
  542. h=v
  543. end
  544. end
  545. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  546. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  547. end
  548. if hit.Parent.className=="Hat" then
  549. hit=hit.Parent.Parent:findFirstChild("Head")
  550. end
  551. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  552. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  553. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  554. return
  555. end]]
  556. -- hs(hit,1.2)
  557. c=Instance.new("ObjectValue")
  558. c.Name="creator"
  559. c.Value=game:service("Players").LocalPlayer
  560. c.Parent=h
  561. game:GetService("Debris"):AddItem(c,.5)
  562. Damage=math.random(minim,maxim)
  563. -- h:TakeDamage(Damage)
  564. blocked=false
  565. block=hit.Parent:findFirstChild("Block")
  566. if block~=nil then
  567. print(block.className)
  568. if block.className=="NumberValue" then
  569. if block.Value>0 then
  570. blocked=true
  571. if decreaseblock==nil then
  572. block.Value=block.Value-1
  573. end
  574. end
  575. end
  576. if block.className=="IntValue" then
  577. if block.Value>0 then
  578. blocked=true
  579. if decreaseblock~=nil then
  580. block.Value=block.Value-1
  581. end
  582. end
  583. end
  584. end
  585. if blocked==false then
  586. -- h:TakeDamage(Damage)
  587. h.Health=h.Health-Damage
  588. showDamage(hit.Parent,Damage,.5,BrickColor.new("Deep orange"))
  589. else
  590. h.Health=h.Health-(Damage/2)
  591. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  592. end
  593. if Type=="Knockdown" then
  594. hum=hit.Parent.Humanoid
  595. hum.PlatformStand=true
  596. coroutine.resume(coroutine.create(function(HHumanoid)
  597. swait(1)
  598. HHumanoid.PlatformStand=false
  599. end),hum)
  600. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  601. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  602. local bodvol=Instance.new("BodyVelocity")
  603. bodvol.velocity=angle*knockback
  604. bodvol.P=5000
  605. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  606. bodvol.Parent=hit
  607. rl=Instance.new("BodyAngularVelocity")
  608. rl.P=3000
  609. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  610. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  611. rl.Parent=hit
  612. game:GetService("Debris"):AddItem(bodvol,.5)
  613. game:GetService("Debris"):AddItem(rl,.5)
  614. elseif Type=="Normal" then
  615. vp=Instance.new("BodyVelocity")
  616. vp.P=500
  617. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  618. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  619. if KnockbackType==1 then
  620. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  621. elseif KnockbackType==2 then
  622. vp.velocity=Property.CFrame.lookVector*knockback
  623. end
  624. if knockback>0 then
  625. vp.Parent=hit.Parent.Torso
  626. end
  627. game:GetService("Debris"):AddItem(vp,.5)
  628. elseif Type=="Up" then
  629. local bodyVelocity=Instance.new("BodyVelocity")
  630. bodyVelocity.velocity=vt(0,60,0)
  631. bodyVelocity.P=5000
  632. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  633. bodyVelocity.Parent=hit
  634. game:GetService("Debris"):AddItem(bodyVelocity,1)
  635. rl=Instance.new("BodyAngularVelocity")
  636. rl.P=3000
  637. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  638. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  639. rl.Parent=hit
  640. game:GetService("Debris"):AddItem(rl,.5)
  641. elseif Type=="Snare" then
  642. bp=Instance.new("BodyPosition")
  643. bp.P=2000
  644. bp.D=100
  645. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  646. bp.position=hit.Parent.Torso.Position
  647. bp.Parent=hit.Parent.Torso
  648. game:GetService("Debris"):AddItem(bp,1)
  649. elseif Type=="Target" then
  650. if Targetting==false then
  651. ZTarget=hit.Parent.Torso
  652. coroutine.resume(coroutine.create(function(Part)
  653. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  654. swait(5)
  655. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  656. end),ZTarget)
  657. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  658. targetgui=Instance.new("BillboardGui")
  659. targetgui.Parent=ZTarget
  660. targetgui.Size=UDim2.new(10,100,10,100)
  661. targ=Instance.new("ImageLabel")
  662. targ.Parent=targetgui
  663. targ.BackgroundTransparency=1
  664. targ.Image="rbxassetid://4834067"
  665. targ.Size=UDim2.new(1,0,1,0)
  666. cam.CameraType="Scriptable"
  667. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  668. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  669. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  670. Targetting=true
  671. RocketTarget=ZTarget
  672. for i=1,Property do
  673. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  674. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  675. swait()
  676. end
  677. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  678. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  679. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  680. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  681. end
  682. Targetting=false
  683. RocketTarget=nil
  684. targetgui.Parent=nil
  685. cam.CameraType="Custom"
  686. end
  687. end
  688. debounce=Instance.new("BoolValue")
  689. debounce.Name="DebounceHit"
  690. debounce.Parent=hit.Parent
  691. debounce.Value=true
  692. game:GetService("Debris"):AddItem(debounce,Delay)
  693. c=Instance.new("ObjectValue")
  694. c.Name="creator"
  695. c.Value=Player
  696. c.Parent=h
  697. game:GetService("Debris"):AddItem(c,.5)
  698. CRIT=false
  699. hitDeb=true
  700. AttackPos=6
  701. end
  702. end
  703.  
  704. showDamage=function(Char,Dealt,du,Color)
  705. m=Instance.new("Model")
  706. m.Name=tostring(Dealt)
  707. h=Instance.new("Humanoid")
  708. h.Health=0
  709. h.MaxHealth=0
  710. h.Parent=m
  711. c=Instance.new("Part")
  712. c.Transparency=0
  713. c.BrickColor=Color
  714. c.Name="Head"
  715. c.TopSurface=0
  716. c.BottomSurface=0
  717. c.formFactor="Plate"
  718. c.Size=Vector3.new(1,.4,1)
  719. ms=Instance.new("CylinderMesh")
  720. ms.Scale=Vector3.new(.8,.8,.8)
  721. if CRIT==true then
  722. ms.Scale=Vector3.new(1,1.25,1)
  723. end
  724. ms.Parent=c
  725. c.Reflectance=0
  726. Instance.new("BodyGyro").Parent=c
  727. c.Parent=m
  728. if Char:findFirstChild("Head")~=nil then
  729. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  730. elseif Char.Parent:findFirstChild("Head")~=nil then
  731. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  732. end
  733. f=Instance.new("BodyPosition")
  734. f.P=2000
  735. f.D=100
  736. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  737. f.position=c.Position+Vector3.new(0,3,0)
  738. f.Parent=c
  739. game:GetService("Debris"):AddItem(m,.5+du)
  740. c.CanCollide=false
  741. m.Parent=workspace
  742. c.CanCollide=false
  743. end
  744.  
  745.  
  746. function attackone()
  747. attack=true
  748. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  749. for i=0,1.5,0.1 do
  750. swait()
  751. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  752. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  753. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(20)),.3)
  754. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  755. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  756. end
  757. so("http://roblox.com/asset/?id=200632136",Hitbox,1,1)
  758. for i=0,1,0.1 do
  759. swait()
  760. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  761. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  762. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  763. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  764. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.3)
  765. end
  766. attack=false
  767. con1:disconnect()
  768. end
  769.  
  770. function attacktwo()
  771. attack=true
  772. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  773. for i=0,1.5,0.1 do
  774. swait()
  775. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  776. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  777. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-130),math.rad(-130)),.3)
  778. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  779. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  780. end
  781. so("http://roblox.com/asset/?id=200632211",Hitbox,1,1)
  782. for i=0,1.5,0.1 do
  783. swait()
  784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  786. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-40),math.rad(-80)),.3)
  787. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  788. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  789. end
  790. attack=false
  791. con1:disconnect()
  792. end
  793.  
  794. function attackthree()
  795. attack=true
  796. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  797. for i=0,1.5,0.1 do
  798. swait()
  799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  801. RW.C0=clerp(RW.C0,cf(1,0.8,-1)*angles(math.rad(130),math.rad(0),math.rad(-50)),.3)
  802. LW.C0=clerp(LW.C0,cf(-1,0.8,-1)*angles(math.rad(130),math.rad(0),math.rad(50)),.3)
  803. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  804. end
  805. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.9)
  806. for i=0,1.5,.1 do
  807. swait()
  808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(5)),.3)
  809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  810. RW.C0=clerp(RW.C0,cf(1,0.2,-.5)*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
  811. LW.C0=clerp(LW.C0,cf(-1,0.2,-.5)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  812. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(20)),.3)
  813. end
  814. attack=false
  815. con1:disconnect()
  816. end
  817.  
  818. function SpinNSmash()
  819. attack=true
  820. for i=0,1.5,0.1 do
  821. swait()
  822. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.9)
  823. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  824. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  825. RW.C0=clerp(RW.C0,cf(1.5,0.9,0)*angles(math.rad(170),math.rad(0),math.rad(30)),.3)
  826. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),.3)
  827. handleweld.C0=cf(0,0,0)*euler(0,0+10*i,0)
  828. end
  829. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  830. for i=0,1.5,0.1 do
  831. swait()
  832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  834. RW.C0=clerp(RW.C0,cf(1.5,0.9,0)*angles(math.rad(190),math.rad(0),math.rad(20)),.3)
  835. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  836. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  837. end
  838. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  839. for i=0,1.5,0.1 do
  840. swait()
  841. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  843. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  844. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-30)),.3)
  845. handleweld.C0=clerp(handleweld.C0,cf(.5,0,0)*angles(math.rad(-50),math.rad(10),math.rad(-20)),.3)
  846. end
  847. attack=false
  848. con1:disconnect()
  849. end
  850.  
  851.  
  852. mouse.Button1Down:connect(function()
  853. if attack==false then
  854. if attacktype==1 then
  855. attack=true
  856. attacktype=2
  857. attackone()
  858. elseif attacktype==2 then
  859. attack=true
  860. attacktype=3
  861. attacktwo()
  862. elseif attacktype==3 then
  863. attack=true
  864. attacktype=1
  865. attackthree()
  866. end
  867. end
  868. end)
  869.  
  870. mouse.KeyDown:connect(function(k)
  871. k=k:lower()
  872. if k=='q' then
  873. if attack==false then
  874. SpinNSmash()
  875. end
  876. end
  877. end)
  878.  
  879.  
  880. local sine = 0
  881. local change = 1
  882. local val = 0
  883.  
  884. while true do
  885. swait()
  886. sine = sine + change
  887. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  888. local velderp=RootPart.Velocity.y
  889. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  890. if equipped==true or equipped==false then
  891. if attack==false then
  892. idle=idle+1
  893. else
  894. idle=0
  895. end
  896. if idle>=500 then
  897. if attack==false then
  898. --Sheath()
  899. end
  900. end
  901. if RootPart.Velocity.y > 1 and hitfloor==nil then
  902. Anim="Jump"
  903. if attack==false then
  904. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  905. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  906. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  907. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-20)),.3)
  908. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  909. end
  910. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  911. Anim="Fall"
  912. if attack==false then
  913. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  914. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  915. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(20)),.3)
  916. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  917. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  918. end
  919. elseif torvel<1 and hitfloor~=nil then
  920. Anim="Idle"
  921. if attack==false then
  922. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  923. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  924. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(20)),.3)
  925. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10)),.3)
  926. handleweld.C0=clerp(handleweld.C0,cf(0,0,0.4)*angles(math.rad(80),math.rad(0),math.rad(20)),.3)
  927. end
  928. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  929. Anim="Walk"
  930. if attack==false then
  931. change=3
  932. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  933. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  935. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-20)),.3)
  936. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  937. end
  938. elseif torvel>=22 and hitfloor~=nil then
  939. Anim="Run"
  940. if attack==false then
  941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  942. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  943. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  944. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-20)),.3)
  945. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  946. end
  947. end
  948. end
  949. end
Add Comment
Please, Sign In to add comment