Advertisement
memberhero

Rufus14 M1911

Apr 11th, 2021
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.17 KB | None | 0 0
  1. --M1911 By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Sound8 = Instance.new("Sound")
  28. Sound9 = Instance.new("Sound")
  29. Weld10 = Instance.new("Weld")
  30. Weld11 = Instance.new("Weld")
  31. Weld12 = Instance.new("Weld")
  32. Weld13 = Instance.new("Weld")
  33. Weld14 = Instance.new("Weld")
  34. Weld15 = Instance.new("Weld")
  35. Weld16 = Instance.new("Weld")
  36. Weld17 = Instance.new("Weld")
  37. Weld18 = Instance.new("Weld")
  38. Weld19 = Instance.new("Weld")
  39. Weld20 = Instance.new("Weld")
  40. Weld21 = Instance.new("Weld")
  41. Weld22 = Instance.new("Weld")
  42. Weld23 = Instance.new("Weld")
  43. Weld24 = Instance.new("Weld")
  44. Weld25 = Instance.new("Weld")
  45. Weld26 = Instance.new("Weld")
  46. Weld27 = Instance.new("Weld")
  47. Sound28 = Instance.new("Sound")
  48. Part29 = Instance.new("Part")
  49. Part30 = Instance.new("Part")
  50. Part31 = Instance.new("Part")
  51. Part32 = Instance.new("Part")
  52. Part33 = Instance.new("Part")
  53. Part34 = Instance.new("Part")
  54. Part35 = Instance.new("Part")
  55. Part36 = Instance.new("Part")
  56. Part37 = Instance.new("Part")
  57. Part38 = Instance.new("Part")
  58. Part39 = Instance.new("Part")
  59. Part40 = Instance.new("Part")
  60. Part41 = Instance.new("Part")
  61. NumberValue42 = Instance.new("NumberValue")
  62. RemoteEvent43 = Instance.new("RemoteEvent")
  63. Part44 = Instance.new("Part")
  64. Part45 = Instance.new("Part")
  65. Part46 = Instance.new("Part")
  66. Part47 = Instance.new("Part")
  67. NumberValue48 = Instance.new("NumberValue")
  68. Part49 = Instance.new("Part")
  69. Tool0.Name = "M1911"
  70. Tool0.Parent = mas
  71. Tool0.CanBeDropped = false
  72. Part1.Name = "Handle"
  73. Part1.Parent = Tool0
  74. Part1.CFrame = CFrame.new(-10, 0.899688065, -10.3526802, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736)
  75. Part1.Orientation = Vector3.new(-20, 0, 0)
  76. Part1.Position = Vector3.new(-10, 0.899688065, -10.3526802)
  77. Part1.Rotation = Vector3.new(-20, 0, 0)
  78. Part1.Color = Color3.new(0.356863, 0.364706, 0.411765)
  79. Part1.Size = Vector3.new(0.299999475, 1.02499986, 0.599999845)
  80. Part1.BottomSurface = Enum.SurfaceType.Smooth
  81. Part1.BrickColor = BrickColor.new("Smoky grey")
  82. Part1.Material = Enum.Material.Metal
  83. Part1.TopSurface = Enum.SurfaceType.Smooth
  84. Part1.brickColor = BrickColor.new("Smoky grey")
  85. Sound2.Name = "empty"
  86. Sound2.Parent = Part1
  87. Sound2.SoundId = "rbxassetid://1347142405"
  88. Sound3.Name = "bullethit"
  89. Sound3.Parent = Part1
  90. Sound3.SoundId = "rbxassetid://1489924400"
  91. Sound4.Name = "bullethitflesh"
  92. Sound4.Parent = Part1
  93. Sound4.SoundId = "rbxassetid://3092866899"
  94. Sound5.Name = "reload"
  95. Sound5.Parent = Part1
  96. Sound5.SoundId = "rbxassetid://317130715"
  97. Sound6.Name = "shatter"
  98. Sound6.Parent = Part1
  99. Sound6.Pitch = 2
  100. Sound6.PlaybackSpeed = 2
  101. Sound6.SoundId = "rbxassetid://2978605361"
  102. Sound7.Name = "supersonic bullet crack"
  103. Sound7.Parent = Part1
  104. Sound7.EmitterSize = 1
  105. Sound7.MinDistance = 1
  106. Sound7.Pitch = 1.5
  107. Sound7.PlaybackSpeed = 1.5
  108. Sound7.SoundId = "rbxassetid://259586543"
  109. Sound7.Volume = 1
  110. Sound8.Name = "unequip"
  111. Sound8.Parent = Part1
  112. Sound8.SoundId = "rbxassetid://769464514"
  113. Sound9.Name = "equip"
  114. Sound9.Parent = Part1
  115. Sound9.SoundId = "rbxassetid://291256829"
  116. Weld10.Parent = Part1
  117. Weld10.C0 = CFrame.new(0, 0.730558395, -0.543087959, 1, 0, 0, 0, 0.342019975, 0.939692736, 0, -0.939692736, 0.342019826)
  118. Weld10.Part0 = Part1
  119. Weld10.Part1 = Part29
  120. Weld10.part1 = Part29
  121. Weld11.Parent = Part1
  122. Weld11.C0 = CFrame.new(0, -0.512499571, 0.0999956131, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
  123. Weld11.Part0 = Part1
  124. Weld11.Part1 = Part32
  125. Weld11.part1 = Part32
  126. Weld12.Parent = Part1
  127. Weld12.C0 = CFrame.new(5.7220459e-06, 0.542803764, -0.32055378, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
  128. Weld12.Part0 = Part1
  129. Weld12.Part1 = Part44
  130. Weld12.part1 = Part44
  131. Weld13.Name = "sightweld"
  132. Weld13.Parent = Part1
  133. Weld13.C0 = CFrame.new(5.7220459e-06, 1.15795279, -1.27877331, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
  134. Weld13.Part0 = Part1
  135. Weld13.Part1 = Part41
  136. Weld13.part1 = Part41
  137. Weld14.Parent = Part1
  138. Weld14.C0 = CFrame.new(5.7220459e-06, 0.559608459, 0.353029251, 0, 1, 0, 0.642788708, 0, 0.766043663, 0.766043544, 0, -0.642788827)
  139. Weld14.Part0 = Part1
  140. Weld14.Part1 = Part39
  141. Weld14.part1 = Part39
  142. Weld15.Parent = Part1
  143. Weld15.C0 = CFrame.new(0, -0.512500286, -0.100002289, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
  144. Weld15.Part0 = Part1
  145. Weld15.Part1 = Part33
  146. Weld15.part1 = Part33
  147. Weld16.Parent = Part1
  148. Weld16.C0 = CFrame.new(5.7220459e-06, 0.44359827, -0.370306015, 0, 1, 0, -0.642787337, 0, 0.766044796, 0.766044915, 0, 0.642787218)
  149. Weld16.Part0 = Part1
  150. Weld16.Part1 = Part45
  151. Weld16.part1 = Part45
  152. Weld17.Parent = Part1
  153. Weld17.C0 = CFrame.new(5.7220459e-06, 0.338733196, -0.405702591, 0, 1, 0, 0.866026282, 0, 0.499998868, 0.499998719, 0, -0.866026342)
  154. Weld17.Part0 = Part1
  155. Weld17.Part1 = Part46
  156. Weld17.part1 = Part46
  157. Weld18.Parent = Part1
  158. Weld18.C0 = CFrame.new(9.53674316e-07, -0.0624990463, -9.53674316e-07, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
  159. Weld18.Part0 = Part1
  160. Weld18.Part1 = Part31
  161. Weld18.part1 = Part31
  162. Weld19.Parent = Part1
  163. Weld19.C0 = CFrame.new(5.7220459e-06, 0.400207043, 0.214749336, 0, 1, 0, -0.866025805, 0, 0.499999821, 0.499999911, 0, 0.866025567)
  164. Weld19.Part0 = Part1
  165. Weld19.Part1 = Part37
  166. Weld19.part1 = Part37
  167. Weld20.Parent = Part1
  168. Weld20.C0 = CFrame.new(0, -0.612498999, -9.53674316e-07, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
  169. Weld20.Part0 = Part1
  170. Weld20.Part1 = Part30
  171. Weld20.part1 = Part30
  172. Weld21.Parent = Part1
  173. Weld21.C0 = CFrame.new(5.7220459e-06, 0.468093395, -0.480766296, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
  174. Weld21.Part0 = Part1
  175. Weld21.Part1 = Part47
  176. Weld21.part1 = Part47
  177. Weld22.Parent = Part1
  178. Weld22.C0 = CFrame.new(5.7220459e-06, 0.812779903, -0.513159752, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
  179. Weld22.Part0 = Part1
  180. Weld22.Part1 = Part49
  181. Weld22.part1 = Part49
  182. Weld23.Parent = Part1
  183. Weld23.C0 = CFrame.new(4.76837158e-06, 1.09835386, -1.22467232, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
  184. Weld23.Part0 = Part1
  185. Weld23.Part1 = Part35
  186. Weld23.part1 = Part35
  187. Weld24.Parent = Part1
  188. Weld24.C0 = CFrame.new(5.7220459e-06, 0.538232803, 0.411758423, 0, 1, 0, 0.939692736, 0, 0.342019975, 0.342019826, 0, -0.939692736)
  189. Weld24.Part0 = Part1
  190. Weld24.Part1 = Part40
  191. Weld24.part1 = Part40
  192. Weld25.Parent = Part1
  193. Weld25.C0 = CFrame.new(5.7220459e-06, 0.4821558, 0.352754593, 0, 1, 0, 0.866026282, 0, 0.499998868, 0.499998719, 0, -0.866026342)
  194. Weld25.Part0 = Part1
  195. Weld25.Part1 = Part38
  196. Weld25.part1 = Part38
  197. Weld26.Parent = Part1
  198. Weld26.C0 = CFrame.new(5.7220459e-06, 0.387227058, 0.373927116, 0, 1, 0, -0.173648238, 0, 0.984807909, 0.984807789, 0, 0.173648104)
  199. Weld26.Part0 = Part1
  200. Weld26.Part1 = Part36
  201. Weld26.part1 = Part36
  202. Weld27.Name = "moveweld"
  203. Weld27.Parent = Part1
  204. Weld27.C0 = CFrame.new(5.7220459e-06, 0.859765053, -0.496061325, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
  205. Weld27.Part0 = Part1
  206. Weld27.Part1 = Part34
  207. Weld27.part1 = Part34
  208. Sound28.Name = "gunshot"
  209. Sound28.Parent = Part1
  210. Sound28.Pitch = 1.2000000476837
  211. Sound28.PlaybackSpeed = 1.2000000476837
  212. Sound28.SoundId = "rbxassetid://2400424487"
  213. Part29.Parent = Tool0
  214. Part29.CFrame = CFrame.new(-10, 1.40044165, -11.1128817, 1, 0, 0, 0, 8.94069672e-08, 1, 0, -1.00000012, -8.94069672e-08)
  215. Part29.Orientation = Vector3.new(-90, 0, 0)
  216. Part29.Position = Vector3.new(-10, 1.40044165, -11.1128817)
  217. Part29.Rotation = Vector3.new(-90, 0, 0)
  218. Part29.Color = Color3.new(0.356863, 0.364706, 0.411765)
  219. Part29.Size = Vector3.new(0.299999475, 1.74999952, 0.274999887)
  220. Part29.BottomSurface = Enum.SurfaceType.Smooth
  221. Part29.BrickColor = BrickColor.new("Smoky grey")
  222. Part29.CanCollide = false
  223. Part29.Material = Enum.Material.Metal
  224. Part29.TopSurface = Enum.SurfaceType.Smooth
  225. Part29.brickColor = BrickColor.new("Smoky grey")
  226. Part30.Parent = Tool0
  227. Part30.CFrame = CFrame.new(-10, 0.324126899, -10.1431942, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
  228. Part30.Orientation = Vector3.new(-20, 0, 0)
  229. Part30.Position = Vector3.new(-10, 0.324126899, -10.1431942)
  230. Part30.Rotation = Vector3.new(-20, 0, 0)
  231. Part30.Color = Color3.new(0.356863, 0.364706, 0.411765)
  232. Part30.Size = Vector3.new(0.299999475, 0.200000003, 0.199999854)
  233. Part30.BottomSurface = Enum.SurfaceType.Smooth
  234. Part30.BrickColor = BrickColor.new("Smoky grey")
  235. Part30.CanCollide = false
  236. Part30.Material = Enum.Material.Metal
  237. Part30.TopSurface = Enum.SurfaceType.Smooth
  238. Part30.brickColor = BrickColor.new("Smoky grey")
  239. Part31.Parent = Tool0
  240. Part31.CFrame = CFrame.new(-9.99999905, 0.84095782, -10.3313055, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
  241. Part31.Orientation = Vector3.new(-20, 0, 0)
  242. Part31.Position = Vector3.new(-9.99999905, 0.84095782, -10.3313055)
  243. Part31.Rotation = Vector3.new(-20, 0, 0)
  244. Part31.Color = Color3.new(0.627451, 0.372549, 0.207843)
  245. Part31.Size = Vector3.new(0.349999458, 0.899999976, 0.399999857)
  246. Part31.BottomSurface = Enum.SurfaceType.Smooth
  247. Part31.BrickColor = BrickColor.new("Dark orange")
  248. Part31.CanCollide = false
  249. Part31.Material = Enum.Material.WoodPlanks
  250. Part31.TopSurface = Enum.SurfaceType.Smooth
  251. Part31.brickColor = BrickColor.new("Dark orange")
  252. Part32.Parent = Tool0
  253. Part32.CFrame = CFrame.new(-10, 0.452296436, -10.0834303, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
  254. Part32.Orientation = Vector3.new(-20, 0, 0)
  255. Part32.Position = Vector3.new(-10, 0.452296436, -10.0834303)
  256. Part32.Rotation = Vector3.new(-20, 0, 0)
  257. Part32.Color = Color3.new(0.356863, 0.364706, 0.411765)
  258. Part32.Size = Vector3.new(0.299999475, 0.400000036, 0.399999857)
  259. Part32.BottomSurface = Enum.SurfaceType.Smooth
  260. Part32.BrickColor = BrickColor.new("Smoky grey")
  261. Part32.CanCollide = false
  262. Part32.Material = Enum.Material.Metal
  263. Part32.TopSurface = Enum.SurfaceType.Smooth
  264. Part32.brickColor = BrickColor.new("Smoky grey")
  265. Part32.Shape = Enum.PartType.Cylinder
  266. Part33.Parent = Tool0
  267. Part33.CFrame = CFrame.new(-10, 0.383892477, -10.2713661, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
  268. Part33.Orientation = Vector3.new(-20, 0, 0)
  269. Part33.Position = Vector3.new(-10, 0.383892477, -10.2713661)
  270. Part33.Rotation = Vector3.new(-20, 0, 0)
  271. Part33.Color = Color3.new(0.356863, 0.364706, 0.411765)
  272. Part33.Size = Vector3.new(0.299999475, 0.400000036, 0.399999857)
  273. Part33.BottomSurface = Enum.SurfaceType.Smooth
  274. Part33.BrickColor = BrickColor.new("Smoky grey")
  275. Part33.CanCollide = false
  276. Part33.Material = Enum.Material.Metal
  277. Part33.TopSurface = Enum.SurfaceType.Smooth
  278. Part33.brickColor = BrickColor.new("Smoky grey")
  279. Part33.Shape = Enum.PartType.Cylinder
  280. Part34.Name = "movingpart"
  281. Part34.Parent = Tool0
  282. Part34.CFrame = CFrame.new(-9.99999428, 1.53794026, -11.1128826, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
  283. Part34.Orientation = Vector3.new(-90, -90, 0)
  284. Part34.Position = Vector3.new(-9.99999428, 1.53794026, -11.1128826)
  285. Part34.Rotation = Vector3.new(-90, 0, -90)
  286. Part34.Color = Color3.new(0.356863, 0.364706, 0.411765)
  287. Part34.Size = Vector3.new(1.74999917, 0.300000399, 0.299999893)
  288. Part34.BottomSurface = Enum.SurfaceType.Smooth
  289. Part34.BrickColor = BrickColor.new("Smoky grey")
  290. Part34.CanCollide = false
  291. Part34.Material = Enum.Material.Metal
  292. Part34.TopSurface = Enum.SurfaceType.Smooth
  293. Part34.brickColor = BrickColor.new("Smoky grey")
  294. Part34.Shape = Enum.PartType.Cylinder
  295. Part35.Parent = Tool0
  296. Part35.CFrame = CFrame.new(-9.99999523, 1.51294088, -11.8791552, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
  297. Part35.Orientation = Vector3.new(-90, -90, 0)
  298. Part35.Position = Vector3.new(-9.99999523, 1.51294088, -11.8791552)
  299. Part35.Rotation = Vector3.new(-90, 0, -90)
  300. Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  301. Part35.Size = Vector3.new(0.249999985, 0.200000003, 0.199999899)
  302. Part35.BottomSurface = Enum.SurfaceType.Smooth
  303. Part35.BrickColor = BrickColor.new("Really black")
  304. Part35.CanCollide = false
  305. Part35.Material = Enum.Material.Metal
  306. Part35.TopSurface = Enum.SurfaceType.Smooth
  307. Part35.brickColor = BrickColor.new("Really black")
  308. Part35.Shape = Enum.PartType.Cylinder
  309. Part36.Parent = Tool0
  310. Part36.CFrame = CFrame.new(-9.99999428, 1.39145303, -10.1337433, 0, 1, 0, 0.173647866, 0, 0.984807909, 0.984807849, 0, -0.173648044)
  311. Part36.Orientation = Vector3.new(-80, 180, 90)
  312. Part36.Position = Vector3.new(-9.99999428, 1.39145303, -10.1337433)
  313. Part36.Rotation = Vector3.new(-100, 0, -90)
  314. Part36.Color = Color3.new(0.356863, 0.364706, 0.411765)
  315. Part36.Size = Vector3.new(0.224999025, 0.300000399, 0.0500000007)
  316. Part36.BottomSurface = Enum.SurfaceType.Smooth
  317. Part36.BrickColor = BrickColor.new("Smoky grey")
  318. Part36.CanCollide = false
  319. Part36.Material = Enum.Material.Metal
  320. Part36.TopSurface = Enum.SurfaceType.Smooth
  321. Part36.brickColor = BrickColor.new("Smoky grey")
  322. Part37.Parent = Tool0
  323. Part37.CFrame = CFrame.new(-9.99999428, 1.34920824, -10.2877607, 0, 1, 0, -0.642788231, 0, 0.76604414, 0.766044378, 0, 0.642788053)
  324. Part37.Orientation = Vector3.new(-50, 0, -90)
  325. Part37.Position = Vector3.new(-9.99999428, 1.34920824, -10.2877607)
  326. Part37.Rotation = Vector3.new(-50, 0, -90)
  327. Part37.Color = Color3.new(0.356863, 0.364706, 0.411765)
  328. Part37.Size = Vector3.new(0.224998981, 0.300000399, 0.249999985)
  329. Part37.BottomSurface = Enum.SurfaceType.Smooth
  330. Part37.BrickColor = BrickColor.new("Smoky grey")
  331. Part37.CanCollide = false
  332. Part37.Material = Enum.Material.Metal
  333. Part37.TopSurface = Enum.SurfaceType.Smooth
  334. Part37.brickColor = BrickColor.new("Smoky grey")
  335. Part38.Parent = Tool0
  336. Part38.CFrame = CFrame.new(-9.99999428, 1.47341537, -10.1861057, 0, 1, 0, 0.984808087, 0, 0.173647076, 0.173646927, 0, -0.984808207)
  337. Part38.Orientation = Vector3.new(-10, 180, 90)
  338. Part38.Position = Vector3.new(-9.99999428, 1.47341537, -10.1861057)
  339. Part38.Rotation = Vector3.new(-170, 0, -90)
  340. Part38.Color = Color3.new(0.356863, 0.364706, 0.411765)
  341. Part38.Size = Vector3.new(0.175000012, 0.100000389, 0.0500000007)
  342. Part38.BottomSurface = Enum.SurfaceType.Smooth
  343. Part38.BrickColor = BrickColor.new("Smoky grey")
  344. Part38.CanCollide = false
  345. Part38.Material = Enum.Material.Metal
  346. Part38.TopSurface = Enum.SurfaceType.Smooth
  347. Part38.brickColor = BrickColor.new("Smoky grey")
  348. Part39.Parent = Tool0
  349. Part39.CFrame = CFrame.new(-9.99999428, 1.54629111, -10.2123384, 0, 1, 0, 0.866025984, 0, 0.499999106, 0.499998987, 0, -0.866026163)
  350. Part39.Orientation = Vector3.new(-30, 180, 90)
  351. Part39.Position = Vector3.new(-9.99999428, 1.54629111, -10.2123384)
  352. Part39.Rotation = Vector3.new(-150, 0, -90)
  353. Part39.Color = Color3.new(0.356863, 0.364706, 0.411765)
  354. Part39.Size = Vector3.new(0.0500000007, 0.100000389, 0.124999993)
  355. Part39.BottomSurface = Enum.SurfaceType.Smooth
  356. Part39.BrickColor = BrickColor.new("Smoky grey")
  357. Part39.CanCollide = false
  358. Part39.Material = Enum.Material.Metal
  359. Part39.TopSurface = Enum.SurfaceType.Smooth
  360. Part39.brickColor = BrickColor.new("Smoky grey")
  361. Part40.Parent = Tool0
  362. Part40.CFrame = CFrame.new(-9.99999428, 1.54629111, -10.1498404, 0, 1, 0, 1, 0, 8.94069672e-08, -8.94069672e-08, 0, -1.00000012)
  363. Part40.Orientation = Vector3.new(0, 180, 90)
  364. Part40.Position = Vector3.new(-9.99999428, 1.54629111, -10.1498404)
  365. Part40.Rotation = Vector3.new(-180, 0, -90)
  366. Part40.Color = Color3.new(0.356863, 0.364706, 0.411765)
  367. Part40.Size = Vector3.new(0.0500000007, 0.100000389, 0.100000016)
  368. Part40.BottomSurface = Enum.SurfaceType.Smooth
  369. Part40.BrickColor = BrickColor.new("Smoky grey")
  370. Part40.CanCollide = false
  371. Part40.Material = Enum.Material.Metal
  372. Part40.TopSurface = Enum.SurfaceType.Smooth
  373. Part40.brickColor = BrickColor.new("Smoky grey")
  374. Part41.Name = "sight"
  375. Part41.Parent = Tool0
  376. Part41.CFrame = CFrame.new(-9.99999428, 1.55044198, -11.9503775, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
  377. Part41.Orientation = Vector3.new(-90, -90, 0)
  378. Part41.Position = Vector3.new(-9.99999428, 1.55044198, -11.9503775)
  379. Part41.Rotation = Vector3.new(-90, 0, -90)
  380. Part41.Color = Color3.new(0.356863, 0.364706, 0.411765)
  381. Part41.Size = Vector3.new(0.0749999955, 0.0500003882, 0.324999899)
  382. Part41.BottomSurface = Enum.SurfaceType.Smooth
  383. Part41.BrickColor = BrickColor.new("Smoky grey")
  384. Part41.CanCollide = false
  385. Part41.Material = Enum.Material.Metal
  386. Part41.TopSurface = Enum.SurfaceType.Smooth
  387. Part41.brickColor = BrickColor.new("Smoky grey")
  388. NumberValue42.Name = "MaxMagAmmo"
  389. NumberValue42.Parent = Tool0
  390. NumberValue42.Value = 7
  391. RemoteEvent43.Name = "GunEvent"
  392. RemoteEvent43.Parent = Tool0
  393. Part44.Parent = Tool0
  394. Part44.CFrame = CFrame.new(-9.99999428, 1.30012107, -10.8395519, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
  395. Part44.Orientation = Vector3.new(-90, -90, 0)
  396. Part44.Position = Vector3.new(-9.99999428, 1.30012107, -10.8395519)
  397. Part44.Rotation = Vector3.new(-90, 0, -90)
  398. Part44.Color = Color3.new(0.356863, 0.364706, 0.411765)
  399. Part44.Size = Vector3.new(0.0500000007, 0.100000389, 0.175000012)
  400. Part44.BottomSurface = Enum.SurfaceType.Smooth
  401. Part44.BrickColor = BrickColor.new("Smoky grey")
  402. Part44.CanCollide = false
  403. Part44.Material = Enum.Material.Metal
  404. Part44.TopSurface = Enum.SurfaceType.Smooth
  405. Part44.brickColor = BrickColor.new("Smoky grey")
  406. Part45.Parent = Tool0
  407. Part45.CFrame = CFrame.new(-9.99999428, 1.18988204, -10.8523731, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692914, 0, 0.342019916)
  408. Part45.Orientation = Vector3.new(-70, 0, -90)
  409. Part45.Position = Vector3.new(-9.99999428, 1.18988204, -10.8523731)
  410. Part45.Rotation = Vector3.new(-70, 0, -90)
  411. Part45.Color = Color3.new(0.356863, 0.364706, 0.411765)
  412. Part45.Size = Vector3.new(0.0500000007, 0.100000389, 0.100000001)
  413. Part45.BottomSurface = Enum.SurfaceType.Smooth
  414. Part45.BrickColor = BrickColor.new("Smoky grey")
  415. Part45.CanCollide = false
  416. Part45.Material = Enum.Material.Metal
  417. Part45.TopSurface = Enum.SurfaceType.Smooth
  418. Part45.brickColor = BrickColor.new("Smoky grey")
  419. Part46.Parent = Tool0
  420. Part46.CFrame = CFrame.new(-9.99999428, 1.07923484, -10.8497696, 0, 1, 0, 0.984808087, 0, 0.173647076, 0.173646927, 0, -0.984808207)
  421. Part46.Orientation = Vector3.new(-10, 180, 90)
  422. Part46.Position = Vector3.new(-9.99999428, 1.07923484, -10.8497696)
  423. Part46.Rotation = Vector3.new(-170, 0, -90)
  424. Part46.Color = Color3.new(0.356863, 0.364706, 0.411765)
  425. Part46.Size = Vector3.new(0.0500000007, 0.100000389, 0.275000006)
  426. Part46.BottomSurface = Enum.SurfaceType.Smooth
  427. Part46.BrickColor = BrickColor.new("Smoky grey")
  428. Part46.CanCollide = false
  429. Part46.Material = Enum.Material.Metal
  430. Part46.TopSurface = Enum.SurfaceType.Smooth
  431. Part46.brickColor = BrickColor.new("Smoky grey")
  432. Part47.Parent = Tool0
  433. Part47.CFrame = CFrame.new(-9.99999428, 1.17512035, -10.96455, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
  434. Part47.Orientation = Vector3.new(-90, -90, 0)
  435. Part47.Position = Vector3.new(-9.99999428, 1.17512035, -10.96455)
  436. Part47.Rotation = Vector3.new(-90, 0, -90)
  437. Part47.Color = Color3.new(0.356863, 0.364706, 0.411765)
  438. Part47.Size = Vector3.new(0.0500000007, 0.100000389, 0.175000012)
  439. Part47.BottomSurface = Enum.SurfaceType.Smooth
  440. Part47.BrickColor = BrickColor.new("Smoky grey")
  441. Part47.CanCollide = false
  442. Part47.Material = Enum.Material.Metal
  443. Part47.TopSurface = Enum.SurfaceType.Smooth
  444. Part47.brickColor = BrickColor.new("Smoky grey")
  445. NumberValue48.Name = "Ammo"
  446. NumberValue48.Parent = Tool0
  447. NumberValue48.Value = 7
  448. Part49.Name = "stayingpart"
  449. Part49.Parent = Tool0
  450. Part49.CFrame = CFrame.new(-9.99999428, 1.48794055, -11.1128798, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
  451. Part49.Orientation = Vector3.new(-90, -90, 0)
  452. Part49.Position = Vector3.new(-9.99999428, 1.48794055, -11.1128798)
  453. Part49.Rotation = Vector3.new(-90, 0, -90)
  454. Part49.Size = Vector3.new(1.69999921, 0.300000399, 0.299999893)
  455. Part49.BottomSurface = Enum.SurfaceType.Smooth
  456. Part49.CanCollide = false
  457. Part49.Material = Enum.Material.Metal
  458. Part49.TopSurface = Enum.SurfaceType.Smooth
  459. Part49.Shape = Enum.PartType.Cylinder
  460. for i,v in pairs(mas:GetChildren()) do
  461. v.Parent = owner.Backpack
  462. pcall(function() v:MakeJoints() end)
  463. end
  464. mas:Destroy()
  465. for i,v in pairs(cors) do
  466. spawn(function()
  467. pcall(v)
  468. end)
  469. end
  470. NS ([=[
  471. --By Rufus14, no this isnt a turbo fusion remake
  472. canuse = true
  473. step = game:GetService("RunService").Stepped
  474. tool = script.Parent
  475. gunevent = tool.GunEvent
  476. handle = tool.Handle
  477. shoot = handle.gunshot
  478. sightweld = handle.sightweld
  479. moveweld = handle.moveweld
  480. shattersound = handle.shatter
  481. reloadsound = handle.reload
  482. empty = handle.empty
  483. shootevent = tool.GunEvent
  484. equip = handle.equip
  485. unequip = handle.unequip
  486. bullethitflesh = handle.bullethitflesh
  487. bullethit = handle.bullethit
  488. bulletcrack = handle["supersonic bullet crack"]
  489. ammo = tool.Ammo
  490. maxammo = tool.MaxMagAmmo
  491. owner = nil
  492. shooting = false
  493. function positiongun()
  494. equip:Play()
  495. tool = script.Parent
  496. owner = tool.Parent
  497. local gunweld = owner["Right Arm"]:WaitForChild("RightGrip")
  498. gunweld.C0 = gunweld.C0 * CFrame.fromEulerAnglesXYZ(-0.4,-0.2,0) * CFrame.new(-0.4,0,0)
  499. if not owner.Torso:findFirstChild("HeadWeldd") then
  500. local head = Instance.new("Weld", owner.Torso)
  501. head.Part0 = owner.Torso
  502. head.Part1 = owner.Head
  503. head.C0 = CFrame.new(0,1,0)
  504. head.C1 = CFrame.new(0,-0.5,0)
  505. head.Name = "HeadWeldd"
  506. end
  507. if not owner.Torso:findFirstChild("RightArmWeldd") then
  508. local rightarm = Instance.new("Weld", owner.Torso)
  509. rightarm.Part0 = owner.Torso
  510. rightarm.Part1 = owner["Right Arm"]
  511. rightarm.C0 = CFrame.new(1.5,0.5,0)
  512. rightarm.C1 = CFrame.new(0,0.5,0)
  513. rightarm.Name = "RightArmWeldd"
  514. end
  515. if not owner.Torso:findFirstChild("LeftArmWeldd") then
  516. local leftarm = Instance.new("Weld", owner.Torso)
  517. leftarm.Part0 = owner.Torso
  518. leftarm.Part1 = owner["Left Arm"]
  519. leftarm.C0 = CFrame.new(-1.5,0,0)
  520. leftarm.C1 = CFrame.new(0,0.5,0)
  521. leftarm.Name = "LeftArmWeldd"
  522. end
  523. --Converted with ttyyuu12345's model to script plugin v4
  524. local function sandbox(var,func)
  525. local env = getfenv(func)
  526. local newenv = setmetatable({},{
  527. __index = function(self,k)
  528. if k=="script" then
  529. return var
  530. else
  531. return env[k]
  532. end
  533. end,
  534. })
  535. setfenv(func,newenv)
  536. return func
  537. end
  538. local cors = {}
  539. local mas = Instance.new("Model",game:GetService("Lighting"))
  540. local ScreenGui0 = Instance.new("ScreenGui")
  541. local Frame1 = Instance.new("Frame")
  542. local TextLabel2 = Instance.new("TextLabel")
  543. ScreenGui0.Name = "GunM1911 Gui"
  544. ScreenGui0.Parent = mas
  545. ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  546. Frame1.Name = "border"
  547. Frame1.Parent = ScreenGui0
  548. Frame1.Position = UDim2.new(0.743219674, 0, 0.866925299, 0)
  549. Frame1.Size = UDim2.new(0, 300, 0, 68)
  550. Frame1.BackgroundColor = BrickColor.new("Institutional white")
  551. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  552. Frame1.Style = Enum.FrameStyle.RobloxRound
  553. TextLabel2.Name = "ammo text"
  554. TextLabel2.Parent = Frame1
  555. TextLabel2.Position = UDim2.new(0.082382001, 0, 0.101317458, 0)
  556. TextLabel2.Size = UDim2.new(0, 237, 0, 42)
  557. TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
  558. TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
  559. TextLabel2.BackgroundTransparency = 1
  560. TextLabel2.Font = Enum.Font.Code
  561. TextLabel2.FontSize = Enum.FontSize.Size14
  562. TextLabel2.Text = "Ammo: "..ammo.Value.."/"..maxammo.Value
  563. TextLabel2.TextColor = BrickColor.new("New Yeller")
  564. TextLabel2.TextColor3 = Color3.new(1, 1, 0)
  565. TextLabel2.TextScaled = true
  566. TextLabel2.TextSize = 14
  567. TextLabel2.TextWrap = true
  568. TextLabel2.TextWrapped = true
  569. for i,v in pairs(mas:GetChildren()) do
  570. v.Parent = game:GetService("Players"):findFirstChild(owner.Name):findFirstChildOfClass("PlayerGui")
  571. pcall(function() v:MakeJoints() end)
  572. end
  573. mas:Destroy()
  574. for i,v in pairs(cors) do
  575. spawn(function()
  576. pcall(v)
  577. end)
  578. end
  579. local candothefunc = true
  580. local function action(plr, what, message1, message2)
  581. if candothefunc then
  582. if plr.Character then
  583. if plr.Character == owner then
  584. if tool.Parent == plr.Character then
  585. if candothefunc then
  586. if what == "shoot" and not shooting then
  587. if ammo.Value == 0 then
  588. empty:Play()
  589. return
  590. end
  591. ammo.Value = ammo.Value - 1
  592. TextLabel2.Text = "Ammo: "..ammo.Value.."/"..maxammo.Value
  593. shooting = true
  594. if plr.Character:findFirstChild("AnimationState") then
  595. plr.Character:findFirstChild("AnimationState").Value = "Shoot"
  596. end
  597. local function changestate()
  598. wait(0.02)
  599. if plr.Character:findFirstChild("AnimationState") then
  600. plr.Character:findFirstChild("AnimationState").Value = "Idle"
  601. end
  602. end
  603. spawn(changestate)
  604. local rightarmweld = plr.Character.Torso:findFirstChild("RightArmWeldd")
  605. local leftarmweld = plr.Character.Torso:findFirstChild("LeftArmWeldd")
  606. local headweld = plr.Character.Torso:findFirstChild("HeadWeldd")
  607. for i = 1,10 do
  608. moveweld.C0 = moveweld.C0 * CFrame.new(0.07,0,0)
  609. sightweld.C0 = sightweld.C0 * CFrame.new(0.07,0,0)
  610. headweld.C1 = headweld.C1 * CFrame.fromEulerAnglesXYZ(0.015,0,0)
  611. leftarmweld.C1 = leftarmweld.C1 * CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
  612. rightarmweld.C1 = rightarmweld.C1 * CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
  613. gunweld.C0 = gunweld.C0 * CFrame.fromEulerAnglesXYZ(0.03,0,0)
  614. end
  615. local light = Instance.new("PointLight", handle)
  616. light.Brightness = 10
  617. local ray = Ray.new(handle.Position, (message1 - handle.Position).unit * 400)
  618. local hit, position, surface = workspace:FindPartOnRayWithIgnoreList(ray, {handle, tool.Parent["Right Arm"]})
  619. local part = Instance.new("Part", handle)
  620. part.Anchored = true
  621. part.CanCollide = false
  622. part.Material = "Neon"
  623. part.Size = Vector3.new(0,0,(handle.Position - position).magnitude/4)
  624. part.CFrame = CFrame.new(handle.Position, position) * CFrame.new(0,0,-(handle.Position - position).magnitude/2)
  625. shoot:Play()
  626. local function makewound(hitt)
  627. local where = position
  628. local hole = Instance.new("Part", hitt.Parent)
  629. hole.Name = "ouchwound"
  630. hole.Transparency = hitt.Transparency
  631. hole.CanCollide = false
  632. hole.Size = Vector3.new(0.3,0.3,0)
  633. hole.Transparency = 1
  634. hole.CFrame = CFrame.new(position.x,position.y,position.z) * CFrame.new(hole.Position, hole.Position+surface)
  635. local surface = Instance.new("Decal", hole)
  636. surface.Name = "decal"
  637. surface.Texture = "http://www.roblox.com/asset/?id=359667702"
  638. surface.Face = "Front"
  639. local hitweld = Instance.new("Weld", hitt)
  640. hitweld.C0 = hitt.CFrame:toObjectSpace(hole.CFrame)
  641. hitweld.Part0 = hitt
  642. hitweld.Part1 = hole
  643. hitweld.Name = "ouch_weld"
  644. if bullethit.Parent ~= nil then
  645. bullethit.Parent = hole
  646. end
  647. if hitt.Parent:findFirstChildOfClass("Humanoid") then
  648. surface.Color3 = Color3.fromRGB(255,0,0)
  649. -- bullethitflesh.Parent = hole
  650. -- bullethitflesh:Play()
  651. -- bullethitflesh.MaxDistance = 10
  652. local randomdamage = math.random(18,24)
  653. if hitt.Parent:findFirstChildOfClass("Humanoid").Health > 500 then
  654. hitt.Parent:findFirstChildOfClass("Humanoid").MaxHealth = 500
  655. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 500
  656. end
  657. if hitt.Parent:findFirstChildOfClass("Humanoid").Health <= randomdamage then
  658. local velocity = Instance.new("BodyVelocity", hit)
  659. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  660. velocity.Velocity = handle.CFrame.lookVector * math.random(15,25)
  661. game.Debris:AddItem(velocity, 0.1)
  662. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
  663. local function searchforweld(wot)
  664. for i,v in pairs(wot:GetChildren()) do
  665. searchforweld(v)
  666. if v.ClassName == "Weld" or v.ClassName == "Motor6D" then
  667. if v.Name ~= "ouch_weld" then
  668. v:destroy()
  669. end
  670. end
  671. end
  672. end
  673. searchforweld(hitt.Parent)
  674. ragdollkill(hitt.Parent)
  675. else
  676. if hitt.Name ~= "Head" then
  677. hitt.Parent:findFirstChildOfClass("Humanoid").Health = hitt.Parent:findFirstChildOfClass("Humanoid").Health - randomdamage
  678. local velocity = Instance.new("BodyVelocity", hit)
  679. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  680. velocity.Velocity = handle.CFrame.lookVector * math.random(15,25)
  681. game.Debris:AddItem(velocity, 0.1)
  682. else
  683. hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
  684. local function searchforweld(wot)
  685. for i,v in pairs(wot:GetChildren()) do
  686. searchforweld(v)
  687. if v.ClassName == "Weld" or v.ClassName == "Motor6D" then
  688. if v.Name ~= "ouch_weld" then
  689. v:destroy()
  690. end
  691. end
  692. end
  693. end
  694. searchforweld(hitt.Parent)
  695. ragdollkill(hitt.Parent)
  696. end
  697. end
  698. -- local function bbb()
  699. -- wait(bullethitflesh.TimeLength)
  700. -- bullethitflesh.Parent = handle
  701. -- end
  702. -- spawn(bbb)
  703. else
  704. if not hitt.Parent:findFirstChildOfClass("Humanoid") and hitt.Parent.ClassName == "Model" then
  705. hitt:BreakJoints()
  706. local velocity = Instance.new("BodyVelocity", hitt)
  707. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  708. velocity.Velocity = handle.CFrame.lookVector * math.random(10,30)
  709. local function cancollide()
  710. wait(0.1)
  711. hitt.CanCollide = true
  712. velocity:destroy()
  713. end
  714. spawn(cancollide)
  715. end
  716. game.Debris:AddItem(hole, 10)
  717. end
  718. if hitt.Name == "ouchwound" then
  719. bullethit.Parent = handle
  720. hole:destroy()
  721. else
  722. bullethit:Play()
  723. end
  724. end
  725. if hit ~= nil then
  726. if hit.Parent ~= nil then
  727. if not hit.Parent:findFirstChildOfClass("Humanoid") and not hit:findFirstChild("shattered") and hit.Name ~= "HumanoidRootPart" and hit.Transparency > 0.1 and hit.Name ~= "ouchwound" or hit.Material == "Glass" then
  728. if hit.Size.z < hit.Size.x then
  729. if hit.Size.z < 1.5 then
  730. local sha = Instance.new("BoolValue", hit)
  731. sha.Name = "shattered"
  732. local shatter = Instance.new("Part", workspace)
  733. shatter.Transparency = hit.Transparency
  734. shatter.Material = hit.Material
  735. shatter.BrickColor = hit.BrickColor
  736. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  737. shatter.CanCollide = hit.CanCollide
  738. shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,shatter.Size.y/2,0)
  739. shatter:BreakJoints()
  740. shatter.Velocity = handle.CFrame.lookVector * 20
  741. game.Debris:AddItem(shatter, 15)
  742. --
  743. local shatter = Instance.new("Part", workspace)
  744. shatter.Transparency = hit.Transparency
  745. shatter.Material = hit.Material
  746. shatter.BrickColor = hit.BrickColor
  747. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  748. shatter.CanCollide = hit.CanCollide
  749. shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,shatter.Size.y/2,0)
  750. shatter:BreakJoints()
  751. shatter.Velocity = handle.CFrame.lookVector * 20
  752. game.Debris:AddItem(shatter, 15)
  753. --
  754. local shatter = Instance.new("Part", workspace)
  755. shatter.Transparency = hit.Transparency
  756. shatter.Material = hit.Material
  757. shatter.BrickColor = hit.BrickColor
  758. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  759. shatter.CanCollide = hit.CanCollide
  760. shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,-shatter.Size.y/2,0)
  761. shatter:BreakJoints()
  762. shatter.Velocity = handle.CFrame.lookVector * 20
  763. game.Debris:AddItem(shatter, 15)
  764. --
  765. local shatter = Instance.new("Part", workspace)
  766. shatter.Transparency = hit.Transparency
  767. shatter.Material = hit.Material
  768. shatter.BrickColor = hit.BrickColor
  769. shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
  770. shatter.CanCollide = hit.CanCollide
  771. shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,-shatter.Size.y/2,0)
  772. shatter:BreakJoints()
  773. shatter.Velocity = handle.CFrame.lookVector * 20
  774. game.Debris:AddItem(shatter, 15)
  775. --
  776. hit.Anchored = true
  777. hit.Transparency = 1
  778. hit.CanCollide = false
  779. local function stopshattering()
  780. shattersound.Parent = hit
  781. shattersound:Play()
  782. shattersound.MaxDistance = 30
  783. wait(shattersound.TimeLength/2)
  784. shattersound.Parent = handle
  785. hit:destroy()
  786. end
  787. spawn(stopshattering)
  788. end
  789. elseif hit.Size.x < hit.Size.z then
  790. if hit.Size.x < 1.5 then
  791. local sha = Instance.new("BoolValue", hit)
  792. sha.Name = "shattered"
  793. local shatter = Instance.new("Part", workspace)
  794. shatter.Transparency = hit.Transparency
  795. shatter.Material = hit.Material
  796. shatter.BrickColor = hit.BrickColor
  797. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  798. shatter.CanCollide = hit.CanCollide
  799. shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,shatter.Size.z/2)
  800. shatter:BreakJoints()
  801. shatter.Velocity = handle.CFrame.lookVector * 20
  802. game.Debris:AddItem(shatter, 15)
  803. --
  804. local shatter = Instance.new("Part", workspace)
  805. shatter.Transparency = hit.Transparency
  806. shatter.Material = hit.Material
  807. shatter.BrickColor = hit.BrickColor
  808. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  809. shatter:BreakJoints()
  810. shatter.CanCollide = hit.CanCollide
  811. shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,shatter.Size.z/2)
  812. shatter.Velocity = handle.CFrame.lookVector * 20
  813. game.Debris:AddItem(shatter, 15)
  814. --
  815. local shatter = Instance.new("Part", workspace)
  816. shatter.Transparency = hit.Transparency
  817. shatter.Material = hit.Material
  818. shatter.BrickColor = hit.BrickColor
  819. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  820. shatter.CanCollide = hit.CanCollide
  821. shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,-shatter.Size.z/2)
  822. shatter:BreakJoints()
  823. shatter.Velocity = handle.CFrame.lookVector * 20
  824. game.Debris:AddItem(shatter, 15)
  825. --
  826. local shatter = Instance.new("Part", workspace)
  827. shatter.Transparency = hit.Transparency
  828. shatter.Material = hit.Material
  829. shatter.BrickColor = hit.BrickColor
  830. shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
  831. shatter.CanCollide = hit.CanCollide
  832. shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,-shatter.Size.z/2)
  833. shatter:BreakJoints()
  834. shatter.Velocity = handle.CFrame.lookVector * 20
  835. game.Debris:AddItem(shatter, 15)
  836. --
  837. hit.Anchored = true
  838. hit.Transparency = 1
  839. hit.CanCollide = false
  840. local function stopshattering()
  841. shattersound.Parent = hit
  842. shattersound:Play()
  843. shattersound.MaxDistance = 30
  844. wait(shattersound.TimeLength/2)
  845. shattersound.Parent = handle
  846. hit:destroy()
  847. end
  848. spawn(stopshattering)
  849. end
  850. end
  851. end
  852. end
  853. if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
  854. for i,v in pairs(hit:GetChildren()) do
  855. if v.ClassName == "Attachment" or v.ClassName == "Weld" or v.ClassName == "Motor6D" then
  856. v:destroy()
  857. end
  858. end
  859. hit.Parent.Parent = workspace
  860. hit.CanCollide = false
  861. local velocity = Instance.new("BodyVelocity", hit)
  862. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  863. velocity.Velocity = handle.CFrame.lookVector * math.random(10,30)
  864. local function cancollide()
  865. wait(0.1)
  866. hit.CanCollide = true
  867. velocity:destroy()
  868. end
  869. spawn(cancollide)
  870. else
  871. makewound(hit)
  872. end
  873. end
  874. local function hide()
  875. bulletcrack.Parent = part
  876. bulletcrack:Play()
  877. bulletcrack.MaxDistance = part.Size.z
  878. wait(0.005)
  879. part.Transparency = 1
  880. wait(bulletcrack.TimeLength - 0.01)
  881. bulletcrack.Parent = handle
  882. part:destroy()
  883. end
  884. spawn(hide)
  885. game.Debris:AddItem(light, 0.04)
  886. for i = 1,10 do
  887. moveweld.C0 = moveweld.C0 * CFrame.new(-0.07,0,0)
  888. sightweld.C0 = sightweld.C0 * CFrame.new(-0.07,0,0)
  889. headweld.C1 = headweld.C1 * CFrame.fromEulerAnglesXYZ(-0.015,0,0)
  890. leftarmweld.C1 = leftarmweld.C1 * CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(0.03,0,0)
  891. rightarmweld.C1 = rightarmweld.C1 * CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(0.03,0,0)
  892. gunweld.C0 = gunweld.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
  893. step:wait()
  894. end
  895. rightarmweld.C1 = CFrame.new(0,0.5,0)
  896. leftarmweld.C1 = CFrame.new(0,0.5,0)
  897. shooting = false
  898. elseif what == "track" then
  899. if not plr.Character:findFirstChild("AnimationState") then
  900. Instance.new("StringValue", plr.Character).Name = "AnimationState"
  901. plr.Character.AnimationState.Value = "Idle"
  902. end
  903. if plr.Character:findFirstChild("Torso") then
  904. if not plr.Character.Torso:findFirstChild("HeadWeldd") then
  905. local head = Instance.new("Weld", plr.Character.Torso)
  906. head.Part0 = plr.Character.Torso
  907. head.Part1 = plr.Character.Head
  908. head.C0 = CFrame.new(0,1.5,0)
  909. head.C1 = CFrame.new(0,-0.5,0)
  910. head.Name = "HeadWeldd"
  911. end
  912. if not plr.Character.Torso:findFirstChild("RightArmWeldd") then
  913. local rightarm = Instance.new("Weld", plr.Character.Torso)
  914. rightarm.Part0 = plr.Character.Torso
  915. rightarm.Part1 = plr.Character["Right Arm"]
  916. rightarm.C0 = CFrame.new(1.5,0,0)
  917. rightarm.C1 = CFrame.new(0,0.5,0)
  918. rightarm.Name = "RightArmWeldd"
  919. end
  920. if not plr.Character.Torso:findFirstChild("LeftArmWeldd") then
  921. local leftarm = Instance.new("Weld", plr.Character.Torso)
  922. leftarm.Part0 = plr.Character.Torso
  923. leftarm.Part1 = plr.Character["Left Arm"]
  924. leftarm.C0 = CFrame.new(-1.5,0,0)
  925. leftarm.C1 = CFrame.new(0,0.5,0)
  926. leftarm.Name = "LeftArmWeldd"
  927. end
  928. if plr.Character.Torso:findFirstChild("RightArmWeldd") then
  929. plr.Character.Torso:findFirstChild("RightArmWeldd").C0 = plr.Character.Torso:findFirstChild("RightArmWeldd").C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2 + math.asin((message1-message2).unit.y),0,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.2) * CFrame.new(-0.3,-0.5,0),0.3)
  930. end
  931. if plr.Character.Torso:findFirstChild("HeadWeldd") then
  932. plr.Character.Torso:findFirstChild("HeadWeldd").C0 = plr.Character.Torso:findFirstChild("HeadWeldd").C0:lerp(CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((message1-message2).unit.y),0,0),0.3)
  933. end
  934. if plr.Character.Torso:findFirstChild("LeftArmWeldd") then
  935. plr.Character.Torso:findFirstChild("LeftArmWeldd").C0 = plr.Character.Torso:findFirstChild("LeftArmWeldd").C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2 + math.asin((message1-message2).unit.y),0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0.3,-1,0),0.3)
  936. end
  937. end
  938. elseif what == "reload" then
  939. wait(0.1)
  940. reloadsound:Play()
  941. wait(0.5)
  942. ammo.Value = maxammo.Value
  943. TextLabel2.Text = "Ammo: "..ammo.Value.."/"..maxammo.Value
  944. end
  945. end
  946. end
  947. end
  948. end
  949. end
  950. end
  951. local function no()
  952. candothefunc = false
  953. end
  954. tool.Unequipped:connect(no)
  955. gunevent.OnServerEvent:connect(action)
  956. end
  957. function resetgun()
  958. unequip:Play()
  959. local this = game:GetService("Players"):findFirstChild(owner.Name):findFirstChildOfClass("PlayerGui"):findFirstChild("GunM1911 Gui")
  960. if this then
  961. this:destroy()
  962. end
  963. end
  964. tool.Unequipped:connect(resetgun)
  965. tool.Equipped:connect(positiongun)
  966. function ragdollkill(character)
  967. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  968. local checkragd = character:findFirstChild("ragded")
  969. if not checkragd then
  970. local boolvalue = Instance.new("BoolValue", character)
  971. boolvalue.Name = "ragded"
  972. if not character:findFirstChild("UpperTorso") then
  973. character.Archivable = true
  974. for i,v in pairs(character:GetChildren()) do
  975. if v.ClassName == "Sound" then
  976. v:remove()
  977. end
  978. for q,w in pairs(v:GetChildren()) do
  979. if w.ClassName == "Sound" then
  980. w:remove()
  981. end
  982. end
  983. end
  984. local ragdoll = character:Clone()
  985. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  986. if ragdoll:findFirstChild("Health") then
  987. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  988. ragdoll:findFirstChild("Health").Disabled = true
  989. end
  990. end
  991. for i,v in pairs(character:GetChildren()) do
  992. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  993. v:destroy()
  994. end
  995. end
  996. for i,v in pairs(character:GetChildren()) do
  997. if v.ClassName == "Accessory" then
  998. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  999. if attachment1 then
  1000. for q,w in pairs(character:GetChildren()) do
  1001. if w.ClassName == "Part" then
  1002. local attachment2 = w:findFirstChild(attachment1.Name)
  1003. if attachment2 then
  1004. local hinge = Instance.new("HingeConstraint", v.Handle)
  1005. hinge.Attachment0 = attachment1
  1006. hinge.Attachment1 = attachment2
  1007. hinge.LimitsEnabled = true
  1008. hinge.LowerAngle = 0
  1009. hinge.UpperAngle = 0
  1010. end
  1011. end
  1012. end
  1013. end
  1014. end
  1015. end
  1016. ragdoll.Parent = workspace
  1017. if ragdoll:findFirstChild("Right Arm") then
  1018. local glue = Instance.new("Glue", ragdoll.Torso)
  1019. glue.Part0 = ragdoll.Torso
  1020. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  1021. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1022. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1023. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  1024. limbcollider.Size = Vector3.new(1.4,1,1)
  1025. limbcollider.Shape = "Cylinder"
  1026. limbcollider.Transparency = 1
  1027. limbcollider.Name = "LimbCollider"
  1028. local limbcolliderweld = Instance.new("Weld", limbcollider)
  1029. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  1030. limbcolliderweld.Part1 = limbcollider
  1031. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1032. end
  1033. if ragdoll:findFirstChild("Left Arm") then
  1034. local glue = Instance.new("Glue", ragdoll.Torso)
  1035. glue.Part0 = ragdoll.Torso
  1036. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  1037. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1038. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1039. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  1040. limbcollider.Size = Vector3.new(1.4,1,1)
  1041. limbcollider.Shape = "Cylinder"
  1042. limbcollider.Name = "LimbCollider"
  1043. limbcollider.Transparency = 1
  1044. local limbcolliderweld = Instance.new("Weld", limbcollider)
  1045. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  1046. limbcolliderweld.Part1 = limbcollider
  1047. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1048. end
  1049. if ragdoll:findFirstChild("Left Leg") then
  1050. local glue = Instance.new("Glue", ragdoll.Torso)
  1051. glue.Part0 = ragdoll.Torso
  1052. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  1053. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1054. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1055. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  1056. limbcollider.Size = Vector3.new(1.4,1,1)
  1057. limbcollider.Shape = "Cylinder"
  1058. limbcollider.Name = "LimbCollider"
  1059. limbcollider.Transparency = 1
  1060. local limbcolliderweld = Instance.new("Weld", limbcollider)
  1061. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  1062. limbcolliderweld.Part1 = limbcollider
  1063. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1064. end
  1065. if ragdoll:findFirstChild("Right Leg") then
  1066. local glue = Instance.new("Glue", ragdoll.Torso)
  1067. glue.Part0 = ragdoll.Torso
  1068. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  1069. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1070. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1071. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  1072. limbcollider.Size = Vector3.new(1.4,1,1)
  1073. limbcollider.Shape = "Cylinder"
  1074. limbcollider.Name = "LimbCollider"
  1075. limbcollider.Transparency = 1
  1076. local limbcolliderweld = Instance.new("Weld", limbcollider)
  1077. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  1078. limbcolliderweld.Part1 = limbcollider
  1079. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  1080. end
  1081. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  1082. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  1083. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1084. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  1085. connection.LimitsEnabled = true
  1086. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  1087. connection.Attachment1 = HeadAttachment
  1088. connection.UpperAngle = 60
  1089. connection.LowerAngle = -60
  1090. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  1091. local hedweld = Instance.new("Weld", ragdoll.Torso)
  1092. hedweld.Part0 = ragdoll.Torso
  1093. hedweld.Part1 = ragdoll.Head
  1094. hedweld.C0 = CFrame.new(0,1.5,0)
  1095. end
  1096. game.Debris:AddItem(ragdoll, 30)
  1097. local function aaaalol()
  1098. wait(0.2)
  1099. local function searchforvelocity(wot)
  1100. for i,v in pairs(wot:GetChildren()) do
  1101. searchforvelocity(v)
  1102. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1103. v:destroy()
  1104. end
  1105. end
  1106. end
  1107. searchforvelocity(ragdoll)
  1108. wait(0.5)
  1109. if ragdoll:findFirstChildOfClass("Humanoid") then
  1110. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1111. end
  1112. if ragdoll:findFirstChild("HumanoidRootPart") then
  1113. ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  1114. end
  1115. end
  1116. spawn(aaaalol)
  1117. elseif character:findFirstChild("UpperTorso") then
  1118. character.Archivable = true
  1119. for i,v in pairs(character:GetChildren()) do
  1120. if v.ClassName == "Sound" then
  1121. v:remove()
  1122. end
  1123. for q,w in pairs(v:GetChildren()) do
  1124. if w.ClassName == "Sound" then
  1125. w:remove()
  1126. end
  1127. end
  1128. end
  1129. local ragdoll = character:Clone()
  1130. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  1131. if ragdoll:findFirstChild("Health") then
  1132. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  1133. ragdoll:findFirstChild("Health").Disabled = true
  1134. end
  1135. end
  1136. for i,v in pairs(character:GetChildren()) do
  1137. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  1138. v:destroy()
  1139. end
  1140. end
  1141. for i,v in pairs(character:GetChildren()) do
  1142. if v.ClassName == "Accessory" then
  1143. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1144. if attachment1 then
  1145. for q,w in pairs(character:GetChildren()) do
  1146. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  1147. local attachment2 = w:findFirstChild(attachment1.Name)
  1148. if attachment2 then
  1149. local hinge = Instance.new("HingeConstraint", v.Handle)
  1150. hinge.Attachment0 = attachment1
  1151. hinge.Attachment1 = attachment2
  1152. hinge.LimitsEnabled = true
  1153. hinge.LowerAngle = 0
  1154. hinge.UpperAngle = 0
  1155. end
  1156. end
  1157. end
  1158. end
  1159. end
  1160. end
  1161. ragdoll.Parent = workspace
  1162. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  1163. Humanoid.PlatformStand = true
  1164. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  1165. local connection = Instance.new('BallSocketConstraint', limb)
  1166. connection.LimitsEnabled = true
  1167. connection.Attachment0 = attachementone
  1168. connection.Attachment1 = attachmenttwo
  1169. connection.TwistLimitsEnabled = true
  1170. connection.TwistLowerAngle = twistlower
  1171. connection.TwistUpperAngle = twistupper
  1172. local limbcollider = Instance.new("Part", limb)
  1173. limbcollider.Size = Vector3.new(0.1,1,1)
  1174. limbcollider.Shape = "Cylinder"
  1175. limbcollider.Transparency = 1
  1176. limbcollider:BreakJoints()
  1177. local limbcolliderweld = Instance.new("Weld", limbcollider)
  1178. limbcolliderweld.Part0 = limb
  1179. limbcolliderweld.Part1 = limbcollider
  1180. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1181. end
  1182. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  1183. local connection = Instance.new('HingeConstraint', limb)
  1184. connection.LimitsEnabled = true
  1185. connection.Attachment0 = attachementone
  1186. connection.Attachment1 = attachmenttwo
  1187. connection.LimitsEnabled = true
  1188. connection.LowerAngle = lower
  1189. connection.UpperAngle = upper
  1190. local limbcollider = Instance.new("Part", limb)
  1191. limbcollider.Size = Vector3.new(0.1,1,1)
  1192. limbcollider.Shape = "Cylinder"
  1193. limbcollider.Transparency = 1
  1194. limbcollider:BreakJoints()
  1195. local limbcolliderweld = Instance.new("Weld", limbcollider)
  1196. limbcolliderweld.Part0 = limb
  1197. limbcolliderweld.Part1 = limbcollider
  1198. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  1199. end
  1200. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  1201. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1202. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  1203. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  1204. end
  1205. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  1206. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  1207. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  1208. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  1209. --
  1210. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  1211. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  1212. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  1213. --
  1214. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  1215. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  1216. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  1217. --
  1218. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  1219. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  1220. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  1221. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  1222. if v.ClassName == "Accessory" then
  1223. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  1224. if attachment1 then
  1225. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  1226. if w.ClassName == "Part" then
  1227. local attachment2 = w:findFirstChild(attachment1.Name)
  1228. if attachment2 then
  1229. local hinge = Instance.new("HingeConstraint", v.Handle)
  1230. hinge.Attachment0 = attachment1
  1231. hinge.Attachment1 = attachment2
  1232. hinge.LimitsEnabled = true
  1233. hinge.LowerAngle = 0
  1234. hinge.UpperAngle = 0
  1235. end
  1236. end
  1237. end
  1238. end
  1239. end
  1240. end
  1241. for i,v in pairs(ragdoll:GetChildren()) do
  1242. for q,w in pairs(v:GetChildren()) do
  1243. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  1244. w:destroy()
  1245. end
  1246. end
  1247. end
  1248. if ragdoll:findFirstChild("HumanoidRootPart") then
  1249. ragdoll.HumanoidRootPart:destroy()
  1250. end
  1251. if ragdoll:findFirstChildOfClass("Humanoid") then
  1252. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  1253. end
  1254. local function waitfordatmoment()
  1255. wait(0.2)
  1256. local function searchforvelocity(wot)
  1257. for i,v in pairs(wot:GetChildren()) do
  1258. searchforvelocity(v)
  1259. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  1260. v:destroy()
  1261. end
  1262. end
  1263. end
  1264. searchforvelocity(ragdoll)
  1265. end
  1266. spawn(waitfordatmoment)
  1267. game.Debris:AddItem(ragdoll, 30)
  1268. end
  1269. end
  1270. end
  1271. ]=], Tool0);
  1272. NLS ([=[
  1273. --By Rufus14
  1274. tool = script.Parent
  1275. playermouse = game:GetService("Players").LocalPlayer:GetMouse()
  1276. runservice = game:GetService("RunService").RenderStepped
  1277. step = game:GetService("RunService").Stepped
  1278. gunevent = tool.GunEvent
  1279. localplr = game:GetService("Players").LocalPlayer
  1280. char = localplr.Character
  1281. function sprinton(key)
  1282. key = key:lower()
  1283. if key:byte() == 48 and char:findFirstChildOfClass("Humanoid").WalkSpeed > 0 and tool.Parent == char then
  1284. char:findFirstChildOfClass("Humanoid").WalkSpeed = 23
  1285. end
  1286. end
  1287. function sprintoff(key)
  1288. key = key:lower()
  1289. if key:byte() == 48 and char:findFirstChildOfClass("Humanoid").WalkSpeed > 0 and tool.Parent == char then
  1290. char:findFirstChildOfClass("Humanoid").WalkSpeed = 15
  1291. end
  1292. end
  1293. playermouse.KeyUp:connect(sprintoff)
  1294. playermouse.KeyDown:connect(sprinton)
  1295. reloading = false
  1296. function equip()
  1297. localplr = game:GetService("Players").LocalPlayer
  1298. char = localplr.Character
  1299. game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
  1300. playermouse = game:GetService("Players").LocalPlayer:GetMouse()
  1301. local function localscript()
  1302. local sinee = 0
  1303. going = false
  1304. local function run(howfast)
  1305. if howfast > 1 and howfast < 18 then
  1306. going = true
  1307. local function waitforrunsound()
  1308. char.Head:WaitForChild("Running").Volume = 4.5
  1309. char.Head:WaitForChild("Running").PlaybackSpeed = 1.48
  1310. end
  1311. if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 2 then
  1312. spawn(waitforrunsound)
  1313. end
  1314. elseif howfast <= 1 then
  1315. going = false
  1316. else
  1317. going = nil
  1318. local function waitforrunsound()
  1319. char.Head:WaitForChild("Running").Volume = 4.5
  1320. char.Head:WaitForChild("Running").PlaybackSpeed = 1.85
  1321. end
  1322. if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 2 then
  1323. spawn(waitforrunsound)
  1324. end
  1325. end
  1326. end
  1327. local function keybuttonaction(key)
  1328. key = key:lower()
  1329. if key == "r" and not reloading and tool.Ammo.Value ~= tool.MaxMagAmmo.Value then
  1330. reloading = true
  1331. gunevent:FireServer("reload")
  1332. for i = 0,0.75 , 0.04 do
  1333. if workspace.CurrentCamera:findFirstChild("armModel") then
  1334. if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1335. if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm") then
  1336. local rarm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm")
  1337. rarm.C0 = rarm.C0:lerp(CFrame.new(1.5,1.6 + math.sin(sine/30)/40,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,-0.5,-math.pi/2.5) * CFrame.new(0.3,-0.5,0),i)
  1338. end
  1339. end
  1340. if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1341. if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm") then
  1342. local larm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm")
  1343. larm.C0 = larm.C0:lerp(CFrame.new(-1.5,0,0.5),i)
  1344. end
  1345. end
  1346. end
  1347. runservice:wait()
  1348. end
  1349. local fakemag = Instance.new("Part", workspace)
  1350. fakemag.Size = Vector3.new(0.2, 0.7, 0.3)
  1351. fakemag.BrickColor = BrickColor.new("Black")
  1352. fakemag.CanCollide = false
  1353. if workspace.CurrentCamera:findFirstChild("armModel") then
  1354. if workspace.CurrentCamera.armModel:findFirstChild("gunModel") then
  1355. fakemag.CFrame = workspace.CurrentCamera.armModel:findFirstChild("gunModel").Handle.CFrame * CFrame.new(0,-0.4,0)
  1356. end
  1357. else
  1358. fakemag.CFrame = tool.Handle.CFrame
  1359. end
  1360. for i = 0,1 , 0.1 do
  1361. if workspace.CurrentCamera:findFirstChild("armModel") then
  1362. if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1363. if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm") then
  1364. local rarm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm")
  1365. rarm.C0 = rarm.C0:lerp(CFrame.new(1.5,0.65 + math.sin(sine/30)/40,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2.5) * CFrame.new(0.3,-0.5,0),i)
  1366. end
  1367. end
  1368. if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1369. if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm") then
  1370. local larm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm")
  1371. larm.C0 = larm.C0:lerp(CFrame.new(-1.5,0,0.5),i)
  1372. end
  1373. end
  1374. end
  1375. runservice:wait()
  1376. end
  1377. local fakemag = Instance.new("Part", workspace)
  1378. fakemag.Size = Vector3.new(0.2, 0.7, 0.3)
  1379. fakemag.BrickColor = BrickColor.new("Black")
  1380. fakemag.CanCollide = false
  1381. fakemag.Anchored = true
  1382. for i = 0,1 , 0.06 do
  1383. if workspace.CurrentCamera:findFirstChild("armModel") then
  1384. if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1385. if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm") then
  1386. local rarm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm")
  1387. rarm.C0 = rarm.C0:lerp(CFrame.new(1.5, math.sin(sine/30)/40,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2.5,-math.pi/2.5) * CFrame.new(0.3,-0.5,0),i)
  1388. end
  1389. end
  1390. if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1391. if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm") then
  1392. local larm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm")
  1393. larm.C0 = larm.C0:lerp(CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.pi/1.5,-math.pi/1.5,0),i)
  1394. fakemag.CFrame = larm.Part1.CFrame * CFrame.new(0,0.5,-1)
  1395. end
  1396. end
  1397. else
  1398. fakemag:destroy()
  1399. end
  1400. runservice:wait()
  1401. end
  1402. fakemag:destroy()
  1403. reloading = false
  1404. end
  1405. end
  1406. playermouse.KeyDown:connect(keybuttonaction)
  1407. char:findFirstChildOfClass("Humanoid").Running:connect(run)
  1408. sine = 0
  1409. while runservice:wait() and tool.Parent == game:GetService("Players").LocalPlayer.Character do
  1410. if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 2 then
  1411. workspace.CurrentCamera.FieldOfView = 85
  1412. char:findFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,-1.5)
  1413. for i,v in pairs(char:GetChildren()) do
  1414. if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
  1415. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  1416. v.LocalTransparencyModifier = 0
  1417. end
  1418. end
  1419. if v.ClassName == "Accessory" then
  1420. v.Handle.Transparency = 1
  1421. end
  1422. end
  1423. if char.Head:findFirstChildOfClass("Decal") then
  1424. char.Head:findFirstChildOfClass("Decal").Transparency = 1
  1425. end
  1426. char.Head.Transparency = 1
  1427. for i,v in pairs(tool:GetChildren()) do
  1428. if v.ClassName == "Part" then
  1429. v.Transparency = 1
  1430. end
  1431. end
  1432. if going == true then
  1433. sinee = sinee + 1
  1434. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,math.sin(sinee/4)/13,0) * CFrame.Angles(0,0,math.sin(sinee/8)/50)
  1435. elseif going == false then
  1436. sinee = sinee + 0.08
  1437. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,math.sin(sinee/4)/15,0) * CFrame.Angles(0,0,math.sin(sinee/8)/70)
  1438. elseif going == nil then
  1439. sinee = sinee + 1
  1440. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,math.sin(sinee/3)/12,0) * CFrame.Angles(0,0,math.sin(sinee/6)/40)
  1441. end
  1442. gunevent:FireServer("track", playermouse.Hit.p, playermouse.Origin.p)
  1443. sine = sine + 1
  1444. if char:findFirstChild("AnimationState") then
  1445. local state = char:findFirstChild("AnimationState")
  1446. if state.Value == "Shoot" then
  1447. local shakesine = 0
  1448. local decreasevalue = 0
  1449. local function shake()
  1450. for i = 1,40 do
  1451. shakesine = shakesine + 1
  1452. decreasevalue = decreasevalue + 90
  1453. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.fromEulerAnglesXYZ(math.cos(shakesine/4)/(10+decreasevalue)-0.00025,0,0)
  1454. runservice:wait()
  1455. end
  1456. end
  1457. spawn(shake)
  1458. end
  1459. end
  1460. if not workspace.CurrentCamera:findFirstChild("armModel") then
  1461. Instance.new("Model", workspace.CurrentCamera).Name = "armModel"
  1462.  
  1463. end
  1464. if not workspace.CurrentCamera.armModel:findFirstChildOfClass("Humanoid") then
  1465. Instance.new("Humanoid", workspace.CurrentCamera.armModel)
  1466. local shirt = game.Players.LocalPlayer.Character:FindFirstChild("Shirt"):Clone()
  1467. shirt.Parent = workspace.CurrentCamera:FindFirstChild("armModel")
  1468. end
  1469. if not workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
  1470. local faketorso = Instance.new("Part", workspace.CurrentCamera.armModel)
  1471. faketorso.Size = Vector3.new(2,2,1)
  1472. faketorso.CFrame = workspace.CurrentCamera.CFrame
  1473. faketorso.Transparency = 1
  1474. faketorso.Anchored = true
  1475. faketorso.Name = "fakeTorso"
  1476. faketorso.CanCollide = false
  1477. else
  1478. if going or going == false then
  1479. workspace.CurrentCamera.armModel.fakeTorso.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(math.cos(sinee/8)/12,-2+math.sin(sinee/4)/16,-1)
  1480. elseif going == nil then
  1481. workspace.CurrentCamera.armModel.fakeTorso.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(math.cos(sinee/6)/6,-2+math.sin(sinee/3)/10,-1)
  1482. end
  1483. end
  1484. if not workspace.CurrentCamera.armModel:findFirstChild("Right Arm") then
  1485. local rarmclone = Instance.new("Part", workspace.CurrentCamera.armModel)
  1486. rarmclone.Size = Vector3.new(1,2,1)
  1487. rarmclone.BrickColor = char["Right Arm"].BrickColor
  1488. rarmclone.Name = "Right Arm"
  1489. local rarmcloneweld = Instance.new("Weld", workspace.CurrentCamera.armModel.fakeTorso)
  1490. rarmcloneweld.Part0 = workspace.CurrentCamera.armModel.fakeTorso
  1491. rarmcloneweld.Part1 = rarmclone
  1492. rarmcloneweld.Name = "rarm"
  1493. local function uncollide()
  1494. rarmclone.CanCollide = false
  1495. end
  1496. local function checkanim()
  1497. while workspace.CurrentCamera:findFirstChild("armModel") do
  1498. if char:findFirstChild("AnimationState") then
  1499. local state = char:findFirstChild("AnimationState")
  1500. if not reloading then
  1501. if state.Value == "Idle" and going ~= nil then
  1502. rarmcloneweld.C0 = rarmcloneweld.C0:lerp(CFrame.new(1.5,0.5 + math.sin(sine/30)/40,0) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.2) * CFrame.new(-0.3,-0.5,0),0.3)
  1503. elseif going == nil then
  1504. if state.Value ~= "Shoot" then
  1505. --sprint anim
  1506. rarmcloneweld.C0 = rarmcloneweld.C0:lerp(CFrame.new(1.5,0.5 + math.sin(sine/6)/30,0.7-math.cos(sine/6)*2) * CFrame.fromEulerAnglesXYZ(0.4+1.5*math.cos(sine/6),0,0) * CFrame.new(-0.3,-0.5,0.5),0.3)
  1507. elseif state.Value == "Shoot" then
  1508. rarmcloneweld.C0 = rarmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  1509. end
  1510. elseif state.Value == "Shoot" then
  1511. rarmcloneweld.C0 = rarmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  1512. end
  1513. end
  1514. end
  1515. runservice:wait()
  1516. end
  1517. end
  1518. spawn(checkanim)
  1519. step:connect(uncollide)
  1520. end
  1521. if not workspace.CurrentCamera.armModel:findFirstChild("gunModel") then
  1522. local modelgun = Instance.new("Model", workspace.CurrentCamera.armModel)
  1523. modelgun.Name = "gunModel"
  1524. for i,v in pairs(tool:GetChildren()) do
  1525. if v.ClassName == "Part" then
  1526. local partclone = v:Clone()
  1527. partclone:BreakJoints()
  1528. partclone.Parent = modelgun
  1529. partclone.Transparency = 0
  1530. end
  1531. end
  1532. local handle = modelgun:WaitForChild("Handle")
  1533. handle:BreakJoints()
  1534. for i,v in pairs(modelgun:GetChildren()) do
  1535. if v.ClassName == "Part" and v ~= handle then
  1536. local doweld = Instance.new("Weld", handle)
  1537. doweld.C0 = handle.CFrame:toObjectSpace(v.CFrame)
  1538. doweld.Part0 = handle
  1539. doweld.Part1 = v
  1540. local beginc0 = doweld.C0
  1541. if v.Name == "movingpart" then
  1542. local function checkanim()
  1543. while workspace.CurrentCamera:findFirstChild("armModel") do
  1544. if char:findFirstChild("AnimationState") then
  1545. local state = char:findFirstChild("AnimationState")
  1546. if state.Value == "Idle" then
  1547. doweld.C0 = doweld.C0:lerp(beginc0,0.3)
  1548. elseif state.Value == "Shoot" then
  1549. doweld.C0 = doweld.C0 * CFrame.new(0.1,0,0)
  1550. end
  1551. end
  1552. runservice:wait()
  1553. end
  1554. end
  1555. spawn(checkanim)
  1556. end
  1557. end
  1558. end
  1559. local handleweld = Instance.new("Weld", handle)
  1560. handleweld.Part0 = workspace.CurrentCamera.armModel["Right Arm"]
  1561. handleweld.Part1 = handle
  1562. handleweld.C0 = CFrame.fromEulerAnglesXYZ(-0.4-math.pi/2,-0.2,0) * CFrame.new(-0.35,0.45,-0.7)
  1563. local function checkforsprint()
  1564. while runservice:wait() do
  1565. if going == nil then
  1566. handleweld.C0 = handleweld.C0:lerp(CFrame.fromEulerAnglesXYZ(-0.4-math.pi/2,-0.2,0) * CFrame.new(-0.35,0.45,-0.7) * CFrame.Angles(0,0.15,0),0.3)
  1567. else
  1568. handleweld.C0 = handleweld.C0:lerp(CFrame.fromEulerAnglesXYZ(-0.4-math.pi/2,-0.2,0) * CFrame.new(-0.35,0.45,-0.7),0.3)
  1569. end
  1570. end
  1571. end
  1572. spawn(checkforsprint)
  1573. end
  1574. if not workspace.CurrentCamera.armModel:findFirstChild("Left Arm") then
  1575. local larmclone = Instance.new("Part", workspace.CurrentCamera.armModel)
  1576. larmclone.Size = Vector3.new(1,2,1)
  1577. larmclone.BrickColor = char["Left Arm"].BrickColor
  1578. larmclone.Name = "Left Arm"
  1579. local larmcloneweld = Instance.new("Weld", workspace.CurrentCamera.armModel.fakeTorso)
  1580. larmcloneweld.Part0 = workspace.CurrentCamera.armModel.fakeTorso
  1581. larmcloneweld.Part1 = larmclone
  1582. larmcloneweld.Name = "larm"
  1583. local function uncollide()
  1584. larmclone.CanCollide = false
  1585. end
  1586. local function checkanim()
  1587. while workspace.CurrentCamera:findFirstChild("armModel") do
  1588. if char:findFirstChild("AnimationState") then
  1589. local state = char:findFirstChild("AnimationState")
  1590. if not reloading then
  1591. if state.Value == "Idle" then
  1592. larmcloneweld.C0 = larmcloneweld.C0:lerp(CFrame.new(-1,0.5 + math.sin(sine/30)/40,0) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0.3,-1,0),0.3)
  1593. elseif state.Value == "Shoot" then
  1594. larmcloneweld.C0 = larmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,0) * CFrame.new(0,0.1,0.05)
  1595. end
  1596. if going == nil then
  1597. if state.Value ~= "Shoot" then
  1598. --sprint anim
  1599. larmcloneweld.C0 = larmcloneweld.C0:lerp(CFrame.new(-1.5,0.5 - math.sin(sine/6)/30,0.7+math.cos(sine/6)*2) * CFrame.fromEulerAnglesXYZ(0.4+1.5*-math.cos(sine/6),0,0) * CFrame.new(-0.3,-0.5,0.5),0.3)
  1600. elseif state.Value == "Shoot" then
  1601. larmcloneweld.C0 = larmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  1602. end
  1603. end
  1604. end
  1605. end
  1606. runservice:wait()
  1607. end
  1608. end
  1609. spawn(checkanim)
  1610. step:connect(uncollide)
  1611. end
  1612. else
  1613. char:findFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,0)
  1614. for i,v in pairs(char:GetChildren()) do
  1615. if v.ClassName == "Accessory" then
  1616. v.Handle.Transparency = 0
  1617. end
  1618. end
  1619. workspace.CurrentCamera.FieldOfView = 70
  1620. char.Head.Transparency = 0
  1621. if char.Head:findFirstChildOfClass("Decal") then
  1622. char.Head:findFirstChildOfClass("Decal").Transparency = 0
  1623. end
  1624. for i,v in pairs(tool:GetChildren()) do
  1625. if v.ClassName == "Part" then
  1626. v.Transparency = 0
  1627. end
  1628. end
  1629. local function waitforrunsound()
  1630. char.Head:WaitForChild("Running").Volume = 0.65
  1631. char.Head:WaitForChild("Running").PlaybackSpeed = 1.85
  1632. end
  1633. spawn(waitforrunsound)
  1634. if workspace.CurrentCamera:findFirstChild("armModel") then
  1635. workspace.CurrentCamera:findFirstChild("armModel"):destroy()
  1636. end
  1637. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
  1638. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
  1639. end
  1640. gunevent:FireServer("track", playermouse.Hit.p, playermouse.Origin.p)
  1641. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame:lerp(CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(playermouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,playermouse.Hit.p.z)),0.4)
  1642. end
  1643. end
  1644. end
  1645. spawn(localscript)
  1646. end
  1647. function onpress()
  1648. if not reloading then
  1649. gunevent:FireServer("shoot", playermouse.Hit.p, playermouse.Origin.p)
  1650. end
  1651. end
  1652. function removearms()
  1653. game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.Classic
  1654. char:findFirstChildOfClass("Humanoid").WalkSpeed = 16
  1655. if workspace.CurrentCamera:findFirstChild("armModel") then
  1656. workspace.CurrentCamera:findFirstChild("armModel"):destroy()
  1657. end
  1658. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeldd") then
  1659. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeldd"):destroy()
  1660. end
  1661. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeldd") then
  1662. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeldd"):destroy()
  1663. end
  1664. if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeldd") then
  1665. game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeldd"):destroy()
  1666. end
  1667. if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldd") then
  1668. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldd"):destroy()
  1669. end
  1670. for i,v in pairs(tool:GetChildren()) do
  1671. if v.ClassName == "Part" then
  1672. v.Transparency = 0
  1673. end
  1674. end
  1675. char:findFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,0)
  1676. for i,v in pairs(char:GetChildren()) do
  1677. if v.ClassName == "Accessory" then
  1678. v.Handle.Transparency = 0
  1679. end
  1680. end
  1681. workspace.CurrentCamera.FieldOfView = 70
  1682. char.Head.Transparency = 0
  1683. if char.Head:findFirstChildOfClass("Decal") then
  1684. char.Head:findFirstChildOfClass("Decal").Transparency = 0
  1685. end
  1686. local function waitforrunsound()
  1687. char.Head:WaitForChild("Running").Volume = 0.65
  1688. char.Head:WaitForChild("Running").PlaybackSpeed = 1.85
  1689. end
  1690. spawn(waitforrunsound)
  1691. end
  1692. tool.Equipped:connect(equip)
  1693. tool.Activated:connect(onpress)
  1694. tool.Unequipped:connect(removearms)
  1695. ]=], Tool0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement