Advertisement
Guest User

hlmiambat

a guest
Jul 21st, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.85 KB | None | 0 0
  1. --Made by Auma
  2.  
  3. local s = Instance.new("Sound")
  4.  
  5. s.Name = "Sound"
  6. s.SoundId = "http://www.roblox.com/asset/?id=214174307"
  7. s.Volume = 2
  8. s.Looped = true
  9. s.archivable = false
  10.  
  11. s.Parent = game.Workspace
  12.  
  13. wait(3)
  14.  
  15. s:play()
  16.  
  17. --MADE BY RUFUS14
  18. mouse = game.Players.LocalPlayer:GetMouse()
  19. using = false
  20. hit = false
  21. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  22. bat.Size = Vector3.new(1, 1, 5)
  23. bat.CanCollide = false
  24. bat:BreakJoints()
  25. baseballhit = Instance.new("Sound", bat)
  26. baseballhit.Volume = 10
  27. baseballhit.SoundId = "rbxassetid://228585014"
  28. baseballhit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  29. baseballhit1.Volume = 20
  30. baseballhit1.SoundId = "rbxassetid://130944130"
  31. swinging = Instance.new("Sound", bat)
  32. swinging.Volume = 10
  33. swinging.PlaybackSpeed = 1.2
  34. swinging.SoundId = "rbxassetid://147722227"
  35. weld = Instance.new("Weld", bat)
  36. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  37. weld.Part1 = bat
  38. local batcritical = Instance.new("Sound", bat)
  39. batcritical.SoundId = "rbxassetid://228585014"
  40. batcritical.Volume = 5
  41. weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
  42. print(weld.C0)
  43. mesh = Instance.new("SpecialMesh", bat)
  44. mesh.MeshId = "http://www.roblox.com/asset/?id=54983181"
  45. mesh.TextureId = "http://www.roblox.com/asset/?id=54983107"
  46. mesh.Scale = Vector3.new(2,2,2)
  47. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  48. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  49. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  50. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  51. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  52. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  53. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  54. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  55. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  56. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  57. function hit()
  58. if not using then
  59. using = true
  60. for i = 0,1 , 0.1 do
  61. wait()
  62. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.35),i)
  63. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.35),i)
  64. rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.3),i)
  65. lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(-0.15,0,0),i)
  66. end
  67. for i = 1,2 do
  68. wait()
  69. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
  70. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  71. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  72. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  73. end
  74. wait(0.2)
  75. swinging:Play()
  76. local se = Instance.new("Part", bat)
  77. se.Size = Vector3.new(1, 1, 3)
  78. se:BreakJoints()
  79. se.Transparency = 1
  80. se.CanCollide = false
  81. local dmgweld = Instance.new("Weld", se)
  82. dmgweld.Part0 = bat
  83. dmgweld.Part1 = se
  84. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  85. local function dmg(part)
  86. local hum = part.Parent:findFirstChild("Humanoid")
  87. if hum ~= nil then
  88. se:destroy()
  89. baseballhit:Play()
  90. baseballhit1:Play()
  91. hum.Health = hum.Health - math.random(25,35)
  92. hum.PlatformStand = true
  93. local tor = part.Parent:findFirstChild("Torso")
  94. local dmgmat = math.random(1,4)
  95. if dmgmat == 3 then
  96. batcritical:Play()
  97. hum.Health = hum.Health - math.random(98,135)
  98. end
  99. if tor then
  100. tor.RotVelocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  101. tor.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  102. end
  103. wait(2)
  104. hum.PlatformStand = false
  105. hit = false
  106. end
  107. end
  108. se.Touched:connect(dmg)
  109. for i = 0,1 , 0.2 do
  110. wait()
  111. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.7),i)
  112. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.70),i)
  113. rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.6),i)
  114. lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0.30,0,0),i)
  115. end
  116. for i = 1,2 do
  117. wait()
  118. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
  119. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
  120. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.4)
  121. end
  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. wait(0.2)
  129. for i = 1,2 do
  130. wait()
  131. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.05)
  132. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  133. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
  134. end
  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.06)
  138. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  139. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
  140. end
  141. se:destroy()
  142. for i = 1,2 do
  143. wait()
  144. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.1)
  145. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  146. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  147. end
  148. for i = 1,2 do
  149. wait()
  150. game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
  151. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  152. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  153. end
  154. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  155. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  156. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  157. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  158. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  159. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  160. using = false
  161. end
  162. end
  163. function combo(key)
  164. key = key:lower()
  165. if key == "q" then
  166. if not using then
  167. using = true
  168. swinging:Play()
  169. for i = 1,2 do
  170. wait()
  171. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  172. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  173. end
  174. for i = 1,3 do
  175. wait()
  176. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  177. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  178. end
  179. for i = 1,2 do
  180. wait()
  181. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  182. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  183. end
  184. wait(0.4)
  185. swinging:Play()
  186. for i = 1,2 do
  187. wait()
  188. weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  189. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  190. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  191. end
  192. for i = 1,3 do
  193. wait()
  194. weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  195. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  196. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  197. end
  198. for i = 1,2 do
  199. wait()
  200. weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  201. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  202. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  203. end
  204. wait(0.5)
  205. for i = 1,2 do
  206. wait()
  207. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  208. end
  209. for i = 1,2 do
  210. wait()
  211. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  212. end
  213. for i = 1,2 do
  214. wait()
  215. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
  216. end
  217. for i = 1,2 do
  218. wait()
  219. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
  220. end
  221. swinging:Play()
  222. for i = 1,2 do
  223. wait()
  224. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  225. end
  226. local se = Instance.new("Part", bat)
  227. se.Size = Vector3.new(1, 1, 3)
  228. se:BreakJoints()
  229. se.Transparency = 1
  230. se.CanCollide = false
  231. local dmgweld = Instance.new("Weld", se)
  232. dmgweld.Part0 = bat
  233. dmgweld.Part1 = se
  234. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  235. local function dmg(part)
  236. if not hit then
  237. hit = true
  238. local hum = part.Parent:findFirstChild("Humanoid")
  239. if hum ~= nil then
  240. baseballhit:Play()
  241. baseballhit1:Play()
  242. hum.Health = hum.Health - math.random(5,25)
  243. hum.PlatformStand = true
  244. local tor = part.Parent:findFirstChild("Torso")
  245. if tor then
  246. local vel = Instance.new("BodyVelocity", tor)
  247. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  248. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 35
  249. wait(0.1)
  250. vel:destroy()
  251. hit = false
  252. end
  253. wait(0.2)
  254. hit = false
  255. wait(1.5)
  256. hum.PlatformStand = false
  257. end
  258. end
  259. end
  260. se.Touched:connect(dmg)
  261. for i = 1,20 do
  262. swinging:Play()
  263. for i = 1,10 do
  264. wait()
  265. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
  266. end
  267. end
  268. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  269. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  270. for i = 1,2 do
  271. wait()
  272. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  273. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  274. end
  275. for i = 1,3 do
  276. wait()
  277. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  278. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  279. end
  280. for i = 1,2 do
  281. wait()
  282. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  283. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  284. end
  285. wait(0.4)
  286. swinging:Play()
  287. for i = 1,2 do
  288. wait()
  289. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  290. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  291. end
  292. for i = 1,3 do
  293. wait()
  294. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  295. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  296. end
  297. for i = 1,2 do
  298. wait()
  299. lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  300. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  301. end
  302. for i = 1,2 do
  303. wait()
  304. weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  305. end
  306. for i = 1,3 do
  307. wait()
  308. weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  309. end
  310. for i = 1,2 do
  311. wait()
  312. weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  313. end
  314. weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  315. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  316. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  317. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  318. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  319. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  320. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  321. using = false
  322. se:destroy()
  323. end
  324. end
  325. end
  326. mouse.KeyDown:connect(combo)
  327. mouse.Button1Down:connect(hit)
  328. --[[
  329. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  330. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  331. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  332. --]]
  333. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  334. --die plz
  335. mouse = game.Players.LocalPlayer:GetMouse()
  336. function ragdoll()
  337. game.Players.LocalPlayer.Character.Archivable = true
  338. clone = game.Players.LocalPlayer.Character:Clone()
  339. clone.Parent = workspace
  340. for i,v in pairs(clone:GetChildren()) do
  341. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  342. v:destroy()
  343. end
  344. for i,p in pairs(v:GetChildren()) do
  345. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  346. p:destroy()
  347. end
  348. end
  349. end
  350. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  351. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  352. t:destroy()
  353. end
  354. end
  355. vel = Instance.new("BodyVelocity", clone.Torso)
  356. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  357. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  358. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  359. using = false
  360. hit = Instance.new("Sound", clone.Torso)
  361. hit.SoundId = "rbxassetid://260430060"
  362. hit.Volume = 5
  363. hit1 = Instance.new("Sound", clone.Torso)
  364. hit1.SoundId = "rbxassetid://138087186"
  365. hit1.Volume = 5
  366. hit2 = Instance.new("Sound", clone.Torso)
  367. hit2.SoundId = "rbxassetid://131237241"
  368. hit2.Volume = 5
  369. hit3 = Instance.new("Sound", clone.Torso)
  370. hit3.SoundId = "rbxassetid://278062209"
  371. hit3.Volume = 5
  372. hit3.TimePosition = 0.33
  373. ded = Instance.new("Sound", clone.Torso)
  374. ded.SoundId = "rbxassetid://316115931"
  375. ded.Volume = 5
  376. local leftarm = clone:findFirstChild("Left Arm")
  377. local rightrm = clone:findFirstChild("Right Arm")
  378. local leftleg = clone:findFirstChild("Left Leg")
  379. local rightleg = clone:findFirstChild("Right Leg")
  380. local head = clone:findFirstChild("Head")
  381. local welding = Instance.new("Weld", clone.Torso)
  382. welding.Part0 = clone.Torso
  383. welding.Part1 = head
  384. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  385. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  386. if g.ClassName == "Part" then
  387. g:destroy()
  388. end
  389. end
  390. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  391. if h.ClassName == "Accesory" then
  392. h:destroy()
  393. end
  394. end
  395. game.Workspace.CurrentCamera.CameraSubject = head
  396. if leftleg ~= nil then
  397. local glue = Instance.new("Glue", clone.Torso)
  398. glue.Part0 = clone.Torso
  399. glue.Part1 = leftleg
  400. glue.Name = "Left leg"
  401. local collider = Instance.new("Part", leftleg)
  402. collider.Position = Vector3.new(0,999,0)
  403. collider.Size = Vector3.new(1.7, 1, 1)
  404. collider.Shape = "Cylinder"
  405. local weld = Instance.new("Weld", collider)
  406. weld.Part0 = leftleg
  407. weld.Part1 = collider
  408. weld.C0 = CFrame.Angles(0, 0, 80)
  409. collider.TopSurface = "Smooth"
  410. collider.BottomSurface = "Smooth"
  411. collider.formFactor = "Symmetric"
  412. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  413. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  414. collider.Transparency = 1
  415. end
  416. ------------
  417. if rightleg ~= nil then
  418. local glue1 = Instance.new("Glue", clone.Torso)
  419. glue1.Part0 = clone.Torso
  420. glue1.Part1 = rightleg
  421. glue1.Name = "Right leg"
  422. local collider1 = Instance.new("Part", rightleg)
  423. collider1.Position = Vector3.new(0,999,0)
  424. collider1.Size = Vector3.new(1.7, 1, 1)
  425. collider1.Shape = "Cylinder"
  426. local weld1 = Instance.new("Weld", collider1)
  427. weld1.Part0 = rightleg
  428. weld1.Part1 = collider1
  429. weld1.C0 = CFrame.Angles(0, 0, 80)
  430. collider1.TopSurface = "Smooth"
  431. collider1.BottomSurface = "Smooth"
  432. collider1.formFactor = "Symmetric"
  433. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  434. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  435. collider1.Transparency = 1
  436. end
  437. ------------
  438. if rightrm ~= nil then
  439. local glue11 = Instance.new("Glue", clone.Torso)
  440. glue11.Part0 = clone.Torso
  441. glue11.Part1 = rightrm
  442. glue11.Name = "Right shoulder"
  443. local collider11 = Instance.new("Part", rightrm)
  444. collider11.Position = Vector3.new(0,9999,0)
  445. collider11.Size = Vector3.new(1.8,1,1)
  446. collider11.Shape = "Cylinder"
  447. local weld11 = Instance.new("Weld", collider11)
  448. weld11.Part0 = rightrm
  449. weld11.Part1 = collider11
  450. weld11.C0 = CFrame.Angles(0, 0, 80)
  451. collider11.TopSurface = "Smooth"
  452. collider11.BottomSurface = "Smooth"
  453. collider11.formFactor = "Symmetric"
  454. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  455. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  456. collider11.Transparency = 1
  457. end
  458. ------------
  459. if leftarm ~= nil then
  460. local glue111 = Instance.new("Glue", clone.Torso)
  461. glue111.Part0 = clone.Torso
  462. glue111.Part1 = leftarm
  463. glue111.Name = "Left shoulder"
  464. local collider111 = Instance.new("Part", leftarm)
  465. collider111.Position = Vector3.new(0,9999,0)
  466. collider111.Size = Vector3.new(1.8,1,1)
  467. collider111.Shape = "Cylinder"
  468. local weld111 = Instance.new("Weld", collider111)
  469. weld111.Part0 = leftarm
  470. weld111.Part1 = collider111
  471. weld111.C0 = CFrame.Angles(0, 0, 80)
  472. collider111.TopSurface = "Smooth"
  473. collider111.BottomSurface = "Smooth"
  474. collider111.formFactor = "Symmetric"
  475. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  476. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  477. collider111.Transparency = 1
  478. ----------------
  479. sensoring = Instance.new("Part", clone.Torso)
  480. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  481. sensoring.CanCollide = false
  482. sensoring.Position = clone.Torso.Position
  483. local welder = Instance.new("Weld", sensoring)
  484. welder.Part0 = clone.Torso
  485. welder.Part1 = sensoring
  486. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  487. sensoring.Transparency = 1
  488. -----------------
  489. sensoring1 = Instance.new("Part", clone.Torso)
  490. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  491. sensoring1.CanCollide = false
  492. sensoring1.Position = clone.Torso.Position
  493. local welder1 = Instance.new("Weld", sensoring)
  494. welder1.Part0 = clone.Torso
  495. welder1.Part1 = sensoring1
  496. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  497. sensoring1.Transparency = 1
  498. end
  499. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  500. ded:Play()
  501. vel:destroy()
  502. wait(0.5)
  503. local function touch()
  504. if not using then
  505. using = true
  506. local Math = math.random(1,4)
  507. if Math == 1 then
  508. hit:Play()
  509. end
  510. if Math == 2 then
  511. hit1:Play()
  512. end
  513. if Math == 3 then
  514. hit2:Play()
  515. end
  516. if Math == 4 then
  517. hit3:Play()
  518. end
  519. wait(0.1)
  520. using = false
  521. end
  522. end
  523. sensoring.Touched:connect(touch)
  524. sensoring1.Touched:connect(touch)
  525. wait(4.47)
  526. hit1.Volume = 0
  527. hit2.Volume = 0
  528. hit3.Volume = 0
  529. hit.Volume = 0
  530. end
  531.  
  532. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  533.  
  534. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement