Advertisement
Jerrychan123

Untitled

Jun 27th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.86 KB | None | 0 0
  1. lol = Instance.new("BillboardGui", game.Players.LocalPlayer.Character)
  2. lel = Instance.new("TextLabel", lol)
  3. lel.Size = UDim2.new(0,5 , 0,5)
  4. lel.Text = "Bat User?"
  5. mouse = game.Players.LocalPlayer:GetMouse()
  6. using = false
  7. hit = false
  8. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  9. bat.Size = Vector3.new(1, 1, 5)
  10. bat.CanCollide = false
  11. bat:BreakJoints()
  12. laughing = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  13. laughing.Volume = 6
  14. laughing.SoundId = "rbxassetid://617500399"
  15. ooh = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  16. ooh .Volume = 6
  17. ooh .SoundId = "rbxassetid://183345423"
  18. baseballhit = Instance.new("Sound", bat)
  19. baseballhit.Volume = 10
  20. baseballhit.SoundId = "rbxassetid://175024455"
  21. baseballhit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  22. baseballhit1.Volume = 20
  23. baseballhit1.SoundId = "rbxassetid://130944130"
  24. swinging = Instance.new("Sound", bat)
  25. swinging.Volume = 10
  26. swinging.PlaybackSpeed = 1.2
  27. swinging.SoundId = "rbxassetid://147722227"
  28. weld = Instance.new("Weld", bat)
  29. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  30. weld.Part1 = bat
  31. local batcritical = Instance.new("Sound", bat)
  32. batcritical.SoundId = "rbxassetid://296102734"
  33. batcritical.Volume = 5
  34. weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
  35. print(weld.C0)
  36. mesh = Instance.new("SpecialMesh", bat)
  37. mesh.MeshId = "http://www.roblox.com/asset/?id=54983181"
  38. mesh.TextureId = "http://www.roblox.com/asset/?id=54983107"
  39. mesh.Scale = Vector3.new(2,2,2)
  40. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  41. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  42. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  43. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  44. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  45. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  46. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  47. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  48. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  49. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  50. function hit()
  51. if not using then
  52. using = true
  53. for i = 0,1 , 0.1 do
  54. wait()
  55. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.35),i)
  56. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.35),i)
  57. rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.3),i)
  58. lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(-0.15,0,0),i)
  59. end
  60. for i = 1,2 do
  61. wait()
  62. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
  63. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  64. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  65. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  66. end
  67. wait(0.2)
  68. swinging:Play()
  69. local se = Instance.new("Part", bat)
  70. se.Size = Vector3.new(1, 1, 3)
  71. se:BreakJoints()
  72. se.Transparency = 1
  73. se.CanCollide = false
  74. local dmgweld = Instance.new("Weld", se)
  75. dmgweld.Part0 = bat
  76. dmgweld.Part1 = se
  77. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  78. local function dmg(part)
  79. local hum = part.Parent:findFirstChild("Humanoid")
  80. if hum ~= nil then
  81. se:destroy()
  82. baseballhit:Play()
  83. baseballhit1:Play()
  84. hum.Health = hum.Health - math.random(25,35)
  85. hum.PlatformStand = true
  86. local tor = part.Parent:findFirstChild("Torso")
  87. local dmgmat = math.random(1,4)
  88. if dmgmat == 3 then
  89. batcritical:Play()
  90. hum.Health = hum.Health - math.random(98,135)
  91. end
  92. if tor then
  93. tor.RotVelocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  94. tor.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  95. end
  96. wait(2)
  97. hum.PlatformStand = false
  98. hit = false
  99. end
  100. end
  101. se.Touched:connect(dmg)
  102. for i = 0,1 , 0.2 do
  103. wait()
  104. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.7),i)
  105. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.70),i)
  106. rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.6),i)
  107. lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0.30,0,0),i)
  108. end
  109. for i = 1,2 do
  110. wait()
  111. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
  112. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
  113. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.4)
  114. end
  115. for i = 1,2 do
  116. wait()
  117. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
  118. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  119. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.2)
  120. end
  121. wait(0.2)
  122. for i = 1,2 do
  123. wait()
  124. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.05)
  125. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  126. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
  127. end
  128. for i = 1,2 do
  129. wait()
  130. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.06)
  131. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  132. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
  133. end
  134. se:destroy()
  135. for i = 1,2 do
  136. wait()
  137. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.1)
  138. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  139. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  140. end
  141. for i = 1,2 do
  142. wait()
  143. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
  144. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  145. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  146. end
  147. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  148. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  149. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  150. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  151. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  152. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  153. using = false
  154. end
  155. end
  156. function combo(key)
  157. key = key:lower()
  158. if key == "q" then
  159. if not using then
  160. using = true
  161. swinging:Play()
  162. for i = 1,2 do
  163. wait()
  164. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  165. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  166. end
  167. for i = 1,3 do
  168. wait()
  169. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  170. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  171. end
  172. for i = 1,2 do
  173. wait()
  174. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  175. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  176. end
  177. wait(0.4)
  178. swinging:Play()
  179. for i = 1,2 do
  180. wait()
  181. weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  182. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  183. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  184. end
  185. for i = 1,3 do
  186. wait()
  187. weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  188. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  189. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  190. end
  191. for i = 1,2 do
  192. wait()
  193. weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  194. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  195. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  196. end
  197. wait(0.5)
  198. for i = 1,2 do
  199. wait()
  200. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  201. end
  202. for i = 1,2 do
  203. wait()
  204. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  205. end
  206. for i = 1,2 do
  207. wait()
  208. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
  209. end
  210. for i = 1,2 do
  211. wait()
  212. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
  213. end
  214. swinging:Play()
  215. for i = 1,2 do
  216. wait()
  217. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  218. end
  219. local se = Instance.new("Part", bat)
  220. se.Size = Vector3.new(1, 1, 3)
  221. se:BreakJoints()
  222. se.Transparency = 1
  223. se.CanCollide = false
  224. local dmgweld = Instance.new("Weld", se)
  225. dmgweld.Part0 = bat
  226. dmgweld.Part1 = se
  227. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  228. local function dmg(part)
  229. if not hit then
  230. hit = true
  231. local hum = part.Parent:findFirstChild("Humanoid")
  232. if hum ~= nil then
  233. baseballhit:Play()
  234. baseballhit1:Play()
  235. hum.Health = hum.Health - math.random(5,25)
  236. hum.PlatformStand = true
  237. local tor = part.Parent:findFirstChild("Torso")
  238. if tor then
  239. local vel = Instance.new("BodyVelocity", tor)
  240. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  241. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 35
  242. wait(0.1)
  243. vel:destroy()
  244. hit = false
  245. end
  246. wait(0.2)
  247. hit = false
  248. wait(1.5)
  249. hum.PlatformStand = false
  250. end
  251. end
  252. end
  253. se.Touched:connect(dmg)
  254. for i = 1,20 do
  255. swinging:Play()
  256. for i = 1,10 do
  257. wait()
  258. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
  259. end
  260. end
  261. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  262. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  263. for i = 1,2 do
  264. wait()
  265. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  266. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  267. end
  268. for i = 1,3 do
  269. wait()
  270. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  271. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  272. end
  273. for i = 1,2 do
  274. wait()
  275. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  276. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  277. end
  278. wait(0.4)
  279. swinging:Play()
  280. for i = 1,2 do
  281. wait()
  282. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  283. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  284. end
  285. for i = 1,3 do
  286. wait()
  287. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  288. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  289. end
  290. for i = 1,2 do
  291. wait()
  292. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  293. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  294. end
  295. for i = 1,2 do
  296. wait()
  297. weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  298. end
  299. for i = 1,3 do
  300. wait()
  301. weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  302. end
  303. for i = 1,2 do
  304. wait()
  305. weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  306. end
  307. weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  308. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  309. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  310. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  311. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  312. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  313. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  314. using = false
  315. se:destroy()
  316. end
  317. end
  318. end
  319. function laugh(key)
  320. key = key:lower()
  321. if key == "h" then
  322. local lahmath = math.random(1,2)
  323. if lahmath == 1 then
  324. laughing:Play()
  325. end
  326. if lahmath == 2 then
  327. ooh:Play()
  328. end
  329. end
  330. end
  331. function boom(key)
  332. key = key:lower()
  333. if key == "f" then
  334. if not using then
  335. using = true
  336. swinging:Play()
  337. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 8
  338. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  339. for i = 1,2 do
  340. wait()
  341. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  342. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  343. end
  344. for i = 1,3 do
  345. wait()
  346. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  347. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  348. end
  349. for i = 1,2 do
  350. wait()
  351. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  352. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  353. end
  354. wait(0.4)
  355. swinging:Play()
  356. for i = 1,2 do
  357. wait()
  358. weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  359. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  360. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  361. end
  362. for i = 1,3 do
  363. wait()
  364. weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  365. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  366. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  367. end
  368. for i = 1,2 do
  369. wait()
  370. weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  371. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  372. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  373. end
  374. wait(2)
  375. for i = 1,2 do
  376. wait()
  377. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  378. end
  379. swinging:Play()
  380. for i = 1,2 do
  381. wait()
  382. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  383. end
  384. local se = Instance.new("Part", bat)
  385. se.Size = Vector3.new(1, 1, 3)
  386. se:BreakJoints()
  387. se.Transparency = 1
  388. se.CanCollide = false
  389. local dmgweld = Instance.new("Weld", se)
  390. dmgweld.Part0 = bat
  391. dmgweld.Part1 = se
  392. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  393. local function dmg(part)
  394. if not hit then
  395. hit = true
  396. se:destroy()
  397. local hum = part.Parent:findFirstChild("Humanoid")
  398. if hum ~= nil then
  399. batcritical:Play()
  400. baseballhit1:Play()
  401. hum.Health = hum.Health - math.random(70,86)
  402. hum.PlatformStand = true
  403. local tor = part.Parent:findFirstChild("Torso")
  404. if tor then
  405. hum.Jump = true
  406. local vel1 = Instance.new("BodyVelocity", tor)
  407. vel1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  408. vel1.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 130
  409. wait(0.1)
  410. vel1:destroy()
  411. hit = false
  412. end
  413. wait(0.2)
  414. hit = false
  415. wait(1.5)
  416. hum.PlatformStand = false
  417. end
  418. end
  419. end
  420. se.Touched:connect(dmg)
  421. for i = 1,2 do
  422. wait()
  423. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
  424. end
  425. for i = 1,2 do
  426. wait()
  427. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
  428. end
  429. for i = 1,2 do
  430. wait()
  431. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  432. end
  433. for i = 1,2 do
  434. wait()
  435. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
  436. end
  437. for i = 1,2 do
  438. wait()
  439. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  440. end
  441. for i = 1,2 do
  442. wait()
  443. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  444. end
  445. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  446. for i = 1,2 do
  447. wait()
  448. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  449. end
  450. for i = 1,2 do
  451. wait()
  452. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.6)
  453. end
  454. for i = 1,2 do
  455. wait()
  456. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
  457. end
  458. for i = 1,2 do
  459. wait()
  460. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  461. end
  462. for i = 1,2 do
  463. wait()
  464. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  465. end
  466. wait(0.5)
  467. for i = 1,2 do
  468. wait()
  469. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
  470. end
  471. for i = 1,2 do
  472. wait()
  473. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  474. end
  475. for i = 1,2 do
  476. wait()
  477. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  478. end
  479. for i = 1,2 do
  480. wait()
  481. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  482. end
  483. for i = 1,2 do
  484. wait()
  485. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
  486. end
  487. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  488. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  489. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  490. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  491. for i = 1,2 do
  492. wait()
  493. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  494. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  495. end
  496. for i = 1,3 do
  497. wait()
  498. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  499. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  500. end
  501. for i = 1,2 do
  502. wait()
  503. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  504. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  505. end
  506. wait(0.4)
  507. swinging:Play()
  508. for i = 1,2 do
  509. wait()
  510. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  511. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  512. end
  513. for i = 1,3 do
  514. wait()
  515. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  516. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  517. end
  518. for i = 1,2 do
  519. wait()
  520. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  521. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  522. end
  523. for i = 1,2 do
  524. wait()
  525. weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  526. end
  527. for i = 1,3 do
  528. wait()
  529. weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  530. end
  531. for i = 1,2 do
  532. wait()
  533. weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  534. end
  535. weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  536. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  537. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  538. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  539. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  540. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  541. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  542. se:destroy()
  543. using = false
  544. end
  545. end
  546. end
  547. mouse.KeyDown:connect(boom)
  548. mouse.KeyDown:connect(combo)
  549. mouse.KeyDown:connect(laugh)
  550. mouse.Button1Down:connect(hit)
  551. --[[
  552. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  553. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  554. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  555. --]]
  556. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  557. --die plz
  558. mouse = game.Players.LocalPlayer:GetMouse()
  559. function ragdoll()
  560. game.Players.LocalPlayer.Character.Archivable = true
  561. clone = game.Players.LocalPlayer.Character:Clone()
  562. clone.Parent = workspace
  563. for i,v in pairs(clone:GetChildren()) do
  564. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  565. v:destroy()
  566. end
  567. for i,p in pairs(v:GetChildren()) do
  568. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  569. p:destroy()
  570. end
  571. end
  572. end
  573. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  574. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  575. t:destroy()
  576. end
  577. end
  578. vel = Instance.new("BodyVelocity", clone.Torso)
  579. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  580. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  581. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  582. using = false
  583. hit = Instance.new("Sound", clone.Torso)
  584. hit.SoundId = "rbxassetid://260430060"
  585. hit.Volume = 5
  586. hit1 = Instance.new("Sound", clone.Torso)
  587. hit1.SoundId = "rbxassetid://138087186"
  588. hit1.Volume = 5
  589. hit2 = Instance.new("Sound", clone.Torso)
  590. hit2.SoundId = "rbxassetid://131237241"
  591. hit2.Volume = 5
  592. hit3 = Instance.new("Sound", clone.Torso)
  593. hit3.SoundId = "rbxassetid://278062209"
  594. hit3.Volume = 5
  595. hit3.TimePosition = 0.33
  596. ded = Instance.new("Sound", clone.Torso)
  597. ded.SoundId = "rbxassetid://418892870"
  598. ded.Volume = 5
  599. local leftarm = clone:findFirstChild("Left Arm")
  600. local rightrm = clone:findFirstChild("Right Arm")
  601. local leftleg = clone:findFirstChild("Left Leg")
  602. local rightleg = clone:findFirstChild("Right Leg")
  603. local head = clone:findFirstChild("Head")
  604. local welding = Instance.new("Weld", clone.Torso)
  605. welding.Part0 = clone.Torso
  606. welding.Part1 = head
  607. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  608. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  609. if g.ClassName == "Part" then
  610. g:destroy()
  611. end
  612. end
  613. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  614. if h.ClassName == "Accesory" then
  615. h:destroy()
  616. end
  617. end
  618. game.Workspace.CurrentCamera.CameraSubject = head
  619. if leftleg ~= nil then
  620. local glue = Instance.new("Glue", clone.Torso)
  621. glue.Part0 = clone.Torso
  622. glue.Part1 = leftleg
  623. glue.Name = "Left leg"
  624. local collider = Instance.new("Part", leftleg)
  625. collider.Position = Vector3.new(0,999,0)
  626. collider.Size = Vector3.new(1.7, 1, 1)
  627. collider.Shape = "Cylinder"
  628. local weld = Instance.new("Weld", collider)
  629. weld.Part0 = leftleg
  630. weld.Part1 = collider
  631. weld.C0 = CFrame.Angles(0, 0, 80)
  632. collider.TopSurface = "Smooth"
  633. collider.BottomSurface = "Smooth"
  634. collider.formFactor = "Symmetric"
  635. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  636. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  637. collider.Transparency = 1
  638. end
  639. ------------
  640. if rightleg ~= nil then
  641. local glue1 = Instance.new("Glue", clone.Torso)
  642. glue1.Part0 = clone.Torso
  643. glue1.Part1 = rightleg
  644. glue1.Name = "Right leg"
  645. local collider1 = Instance.new("Part", rightleg)
  646. collider1.Position = Vector3.new(0,999,0)
  647. collider1.Size = Vector3.new(1.7, 1, 1)
  648. collider1.Shape = "Cylinder"
  649. local weld1 = Instance.new("Weld", collider1)
  650. weld1.Part0 = rightleg
  651. weld1.Part1 = collider1
  652. weld1.C0 = CFrame.Angles(0, 0, 80)
  653. collider1.TopSurface = "Smooth"
  654. collider1.BottomSurface = "Smooth"
  655. collider1.formFactor = "Symmetric"
  656. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  657. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  658. collider1.Transparency = 1
  659. end
  660. ------------
  661. if rightrm ~= nil then
  662. local glue11 = Instance.new("Glue", clone.Torso)
  663. glue11.Part0 = clone.Torso
  664. glue11.Part1 = rightrm
  665. glue11.Name = "Right shoulder"
  666. local collider11 = Instance.new("Part", rightrm)
  667. collider11.Position = Vector3.new(0,9999,0)
  668. collider11.Size = Vector3.new(1.8,1,1)
  669. collider11.Shape = "Cylinder"
  670. local weld11 = Instance.new("Weld", collider11)
  671. weld11.Part0 = rightrm
  672. weld11.Part1 = collider11
  673. weld11.C0 = CFrame.Angles(0, 0, 80)
  674. collider11.TopSurface = "Smooth"
  675. collider11.BottomSurface = "Smooth"
  676. collider11.formFactor = "Symmetric"
  677. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  678. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  679. collider11.Transparency = 1
  680. end
  681. ------------
  682. if leftarm ~= nil then
  683. local glue111 = Instance.new("Glue", clone.Torso)
  684. glue111.Part0 = clone.Torso
  685. glue111.Part1 = leftarm
  686. glue111.Name = "Left shoulder"
  687. local collider111 = Instance.new("Part", leftarm)
  688. collider111.Position = Vector3.new(0,9999,0)
  689. collider111.Size = Vector3.new(1.8,1,1)
  690. collider111.Shape = "Cylinder"
  691. local weld111 = Instance.new("Weld", collider111)
  692. weld111.Part0 = leftarm
  693. weld111.Part1 = collider111
  694. weld111.C0 = CFrame.Angles(0, 0, 80)
  695. collider111.TopSurface = "Smooth"
  696. collider111.BottomSurface = "Smooth"
  697. collider111.formFactor = "Symmetric"
  698. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  699. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  700. collider111.Transparency = 1
  701. ----------------
  702. sensoring = Instance.new("Part", clone.Torso)
  703. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  704. sensoring.CanCollide = false
  705. sensoring.Position = clone.Torso.Position
  706. local welder = Instance.new("Weld", sensoring)
  707. welder.Part0 = clone.Torso
  708. welder.Part1 = sensoring
  709. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  710. sensoring.Transparency = 1
  711. -----------------
  712. sensoring1 = Instance.new("Part", clone.Torso)
  713. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  714. sensoring1.CanCollide = false
  715. sensoring1.Position = clone.Torso.Position
  716. local welder1 = Instance.new("Weld", sensoring)
  717. welder1.Part0 = clone.Torso
  718. welder1.Part1 = sensoring1
  719. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  720. sensoring1.Transparency = 1
  721. end
  722. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  723. ded:Play()
  724. vel:destroy()
  725. wait(0.5)
  726. local function touch()
  727. if not using then
  728. using = true
  729. local Math = math.random(1,4)
  730. if Math == 1 then
  731. hit:Play()
  732. end
  733. if Math == 2 then
  734. hit1:Play()
  735. end
  736. if Math == 3 then
  737. hit2:Play()
  738. end
  739. if Math == 4 then
  740. hit3:Play()
  741. end
  742. wait(0.1)
  743. using = false
  744. end
  745. end
  746. sensoring.Touched:connect(touch)
  747. sensoring1.Touched:connect(touch)
  748. wait(4.47)
  749. hit1.Volume = 0
  750. hit2.Volume = 0
  751. hit3.Volume = 0
  752. hit.Volume = 0
  753. end
  754.  
  755. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  756.  
  757. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement