Advertisement
bubnake

The most Smasher EVER!!!--- Roblox

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