Advertisement
Kaemi

Gun dresser

Mar 30th, 2018
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.04 KB | None | 0 0
  1. SZ = false --Change to true to get Boy Scene Hair--
  2. A1 = false --Change to true to get a WHAT??--
  3.  
  4.  
  5. local Pants = "rbxassetid://138981718"
  6. local Shirt = "rbxassetid://62300690"
  7. local Pants2 = "rbxassetid://398633811"
  8. local Shirt2 = "rbxassetid://726515949"
  9. local Pants3 = "rbxassetid://34706919"
  10. local Shirt3 = "rbxassetid://95223487"
  11. local Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
  12. local Speed = 1000*Scale
  13. local Gravity = 0
  14.  
  15. local Player = game.Players.LocalPlayer
  16. local Character = Player.Character
  17. local Humanoid = Character.Humanoid
  18. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  19. local Torso = Character.HumanoidRootPart
  20. local Mouse = game.Players.LocalPlayer:GetMouse()
  21. local RenderStepped = game:GetService("RunService").RenderStepped
  22. local Camera = workspace.CurrentCamera
  23. Camera:ClearAllChildren()
  24. local Model = Instance.new("Model",Character)
  25. local IgnoreList = {Character,workspace.Terrain}
  26.  
  27. Player.Character.Head.face.Texture = "rbxassetid://150070505"
  28.  
  29. if A1 == true then
  30. Player.Character.Shirt.ShirtTexture = "rbxassetid://6709971"
  31. end
  32.  
  33. if SZ == true then
  34. for i,v in pairs(Character:GetChildren()) do
  35. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  36. v:destroy()
  37. end
  38. end
  39.  
  40. local Hair = Instance.new("Part")
  41. Hair.Parent = Character
  42. Hair.Name = "Hair"
  43. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  44. Hair.CFrame = Character.Head.CFrame
  45. Hair:BreakJoints()
  46. Hair.CanCollide = false
  47. Hair.BrickColor = BrickColor.new("New Yeller")
  48. Hair.TopSurface = "Smooth"
  49. Hair.BottomSurface = "Smooth"
  50. Weld = Instance.new("Weld")
  51. Weld.Name = "Weld"
  52. Weld.Part0 = Character.Head
  53. Weld.Part1 = Hair
  54. Weld.Parent = Character.Head
  55. Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  56. Mesh = Instance.new("SpecialMesh")
  57. Mesh.Parent = Hair
  58. Mesh.MeshId = "rbxassetid://29880227"
  59. Mesh.TextureId = "http://www.roblox.com/asset/?id=29880238"
  60. Mesh.Scale = Vector3.new(1, 1, 1)
  61. end
  62.  
  63.  
  64. z = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  65. z.SoundId = "rbxassetid://717462079"
  66. z.Looped = true
  67. z.Pitch = 1
  68. z.Volume = 4
  69. wait(.1)
  70. z:Play()
  71.  
  72. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  73. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  74. local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
  75. local Gangster = false
  76.  
  77. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  78. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  79. local RotationOffsetHead = CFrame.Angles(0,0,0)
  80.  
  81. local Handle = Instance.new("Part",Model)
  82. Handle.CanCollide = false
  83. Handle.Name = "Handle"
  84. Handle.Position = Vector3.new(0,100,0)
  85. Handle:BreakJoints()
  86. Handle.FormFactor = "Custom"
  87. Handle.Size = Vector3.new(0.2,0.2,0.2)
  88. Handle.TopSurface = "SmoothNoOutlines"
  89. Handle.BottomSurface = "SmoothNoOutlines"
  90. Handle.FrontSurface = "SmoothNoOutlines"
  91. Handle.BackSurface = "SmoothNoOutlines"
  92. Handle.RightSurface = "SmoothNoOutlines"
  93. Handle.LeftSurface = "SmoothNoOutlines"
  94. Handle.BrickColor = BrickColor.new("New Yeller")
  95. Handle.Material = "Neon"
  96. local Mesh = Instance.new("BlockMesh",Handle)
  97. Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale
  98. local HandleWeld = Instance.new("Motor6D")
  99. HandleWeld.Part0 = Character["Right Arm"]
  100. HandleWeld.Part1 = Handle
  101. HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*Scale) * CFrame.Angles(math.rad(-105),0,0)
  102. HandleWeld.Parent = Handle
  103.  
  104. local Part = Instance.new("Part",Model)
  105. Part.CanCollide = false
  106. Part.Position = Vector3.new(0,100,0)
  107. Part:BreakJoints()
  108. Part.FormFactor = "Custom"
  109. Part.Size = Vector3.new(0.2,0.2,0.2)
  110. Part.TopSurface = "SmoothNoOutlines"
  111. Part.BottomSurface = "SmoothNoOutlines"
  112. Part.FrontSurface = "SmoothNoOutlines"
  113. Part.BackSurface = "SmoothNoOutlines"
  114. Part.RightSurface = "SmoothNoOutlines"
  115. Part.LeftSurface = "SmoothNoOutlines"
  116. Part.BrickColor = BrickColor.new("New Yeller")
  117. Part.Material = "Neon"
  118. local Mesh = Instance.new("CylinderMesh",Part)
  119. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  120. local PartWeld = Instance.new("Motor6D")
  121. PartWeld.Part0 = Handle
  122. PartWeld.Part1 = Part
  123. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  124. PartWeld.Parent = Part
  125.  
  126. local Part = Instance.new("Part",Model)
  127. Part.CanCollide = false
  128. Part.Position = Vector3.new(0,100,0)
  129. Part:BreakJoints()
  130. Part.FormFactor = "Custom"
  131. Part.Size = Vector3.new(0.2,0.2,0.2)
  132. Part.TopSurface = "SmoothNoOutlines"
  133. Part.BottomSurface = "SmoothNoOutlines"
  134. Part.FrontSurface = "SmoothNoOutlines"
  135. Part.BackSurface = "SmoothNoOutlines"
  136. Part.RightSurface = "SmoothNoOutlines"
  137. Part.LeftSurface = "SmoothNoOutlines"
  138. Part.BrickColor = BrickColor.new("New Yeller")
  139. Part.Material = "Neon"
  140. local Mesh = Instance.new("CylinderMesh",Part)
  141. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  142. local PartWeld = Instance.new("Motor6D")
  143. PartWeld.Part0 = Handle
  144. PartWeld.Part1 = Part
  145. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  146. PartWeld.Parent = Part
  147.  
  148. local Part = Instance.new("Part",Model)
  149. Part.CanCollide = false
  150. Part.Position = Vector3.new(0,100,0)
  151. Part:BreakJoints()
  152. Part.FormFactor = "Custom"
  153. Part.Size = Vector3.new(0.2,0.2,0.2)
  154. Part.TopSurface = "SmoothNoOutlines"
  155. Part.BottomSurface = "SmoothNoOutlines"
  156. Part.FrontSurface = "SmoothNoOutlines"
  157. Part.BackSurface = "SmoothNoOutlines"
  158. Part.RightSurface = "SmoothNoOutlines"
  159. Part.LeftSurface = "SmoothNoOutlines"
  160. Part.BrickColor = BrickColor.new("New Yeller")
  161. Part.Material = "Neon"
  162. local Mesh = Instance.new("CylinderMesh",Part)
  163. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  164. local PartWeld = Instance.new("Motor6D")
  165. PartWeld.Part0 = Handle
  166. PartWeld.Part1 = Part
  167. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  168. PartWeld.Parent = Part
  169.  
  170. local Part = Instance.new("Part",Model)
  171. Part.CanCollide = false
  172. Part.Position = Vector3.new(0,100,0)
  173. Part:BreakJoints()
  174. Part.FormFactor = "Custom"
  175. Part.Size = Vector3.new(0.2,0.2,0.2)
  176. Part.TopSurface = "SmoothNoOutlines"
  177. Part.BottomSurface = "SmoothNoOutlines"
  178. Part.FrontSurface = "SmoothNoOutlines"
  179. Part.BackSurface = "SmoothNoOutlines"
  180. Part.RightSurface = "SmoothNoOutlines"
  181. Part.LeftSurface = "SmoothNoOutlines"
  182. Part.BrickColor = BrickColor.new("New Yeller")
  183. Part.Material = "Neon"
  184. local Mesh = Instance.new("CylinderMesh",Part)
  185. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  186. local PartWeld = Instance.new("Motor6D")
  187. PartWeld.Part0 = Handle
  188. PartWeld.Part1 = Part
  189. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  190. PartWeld.Parent = Part
  191.  
  192. local Part = Instance.new("Part",Model)
  193. Part.CanCollide = false
  194. Part.Position = Vector3.new(0,100,0)
  195. Part:BreakJoints()
  196. Part.FormFactor = "Custom"
  197. Part.Size = Vector3.new(0.2,0.2,0.2)
  198. Part.TopSurface = "SmoothNoOutlines"
  199. Part.BottomSurface = "SmoothNoOutlines"
  200. Part.FrontSurface = "SmoothNoOutlines"
  201. Part.BackSurface = "SmoothNoOutlines"
  202. Part.RightSurface = "SmoothNoOutlines"
  203. Part.LeftSurface = "SmoothNoOutlines"
  204. Part.BrickColor = BrickColor.new("New Yeller")
  205. Part.Material = "Neon"
  206. local Mesh = Instance.new("BlockMesh",Part)
  207. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  208. local PartWeld = Instance.new("Motor6D")
  209. PartWeld.Part0 = Handle
  210. PartWeld.Part1 = Part
  211. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*Scale) * CFrame.Angles(0,0,0)
  212. PartWeld.Parent = Part
  213.  
  214. local Part = Instance.new("Part",Model)
  215. Part.CanCollide = false
  216. Part.Position = Vector3.new(0,100,0)
  217. Part:BreakJoints()
  218. Part.FormFactor = "Custom"
  219. Part.Size = Vector3.new(0.2,0.2,0.2)
  220. Part.TopSurface = "SmoothNoOutlines"
  221. Part.BottomSurface = "SmoothNoOutlines"
  222. Part.FrontSurface = "SmoothNoOutlines"
  223. Part.BackSurface = "SmoothNoOutlines"
  224. Part.RightSurface = "SmoothNoOutlines"
  225. Part.LeftSurface = "SmoothNoOutlines"
  226. Part.BrickColor = BrickColor.new("New Yeller")
  227. Part.Material = "Neon"
  228. local Mesh = Instance.new("BlockMesh",Part)
  229. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  230. local PartWeld = Instance.new("Motor6D")
  231. PartWeld.Part0 = Handle
  232. PartWeld.Part1 = Part
  233. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,0,0)
  234. PartWeld.Parent = Part
  235.  
  236. local Part = Instance.new("Part",Model)
  237. Part.CanCollide = false
  238. Part.Position = Vector3.new(0,100,0)
  239. Part:BreakJoints()
  240. Part.FormFactor = "Custom"
  241. Part.Size = Vector3.new(0.2,0.2,0.2)
  242. Part.TopSurface = "SmoothNoOutlines"
  243. Part.BottomSurface = "SmoothNoOutlines"
  244. Part.FrontSurface = "SmoothNoOutlines"
  245. Part.BackSurface = "SmoothNoOutlines"
  246. Part.RightSurface = "SmoothNoOutlines"
  247. Part.LeftSurface = "SmoothNoOutlines"
  248. Part.BrickColor = BrickColor.new("New Yeller")
  249. Part.Material = "Neon"
  250. local Mesh = Instance.new("BlockMesh",Part)
  251. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  252. local PartWeld = Instance.new("Motor6D")
  253. PartWeld.Part0 = Handle
  254. PartWeld.Part1 = Part
  255. PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  256. PartWeld.Parent = Part
  257.  
  258. local Part = Instance.new("Part",Model)
  259. Part.CanCollide = false
  260. Part.Position = Vector3.new(0,100,0)
  261. Part:BreakJoints()
  262. Part.FormFactor = "Custom"
  263. Part.Size = Vector3.new(0.2,0.2,0.2)
  264. Part.TopSurface = "SmoothNoOutlines"
  265. Part.BottomSurface = "SmoothNoOutlines"
  266. Part.FrontSurface = "SmoothNoOutlines"
  267. Part.BackSurface = "SmoothNoOutlines"
  268. Part.RightSurface = "SmoothNoOutlines"
  269. Part.LeftSurface = "SmoothNoOutlines"
  270. Part.BrickColor = BrickColor.new("New Yeller")
  271. Part.Material = "Neon"
  272. local Mesh = Instance.new("BlockMesh",Part)
  273. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  274. local PartWeld = Instance.new("Motor6D")
  275. PartWeld.Part0 = Handle
  276. PartWeld.Part1 = Part
  277. PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  278. PartWeld.Parent = Part
  279.  
  280. local Part = Instance.new("Part",Model)
  281. Part.CanCollide = false
  282. Part.Position = Vector3.new(0,100,0)
  283. Part:BreakJoints()
  284. Part.FormFactor = "Custom"
  285. Part.Size = Vector3.new(0.2,0.2,0.2)
  286. Part.TopSurface = "SmoothNoOutlines"
  287. Part.BottomSurface = "SmoothNoOutlines"
  288. Part.FrontSurface = "SmoothNoOutlines"
  289. Part.BackSurface = "SmoothNoOutlines"
  290. Part.RightSurface = "SmoothNoOutlines"
  291. Part.LeftSurface = "SmoothNoOutlines"
  292. Part.BrickColor = BrickColor.new("New Yeller")
  293. Part.Material = "Neon"
  294. local Mesh = Instance.new("BlockMesh",Part)
  295. Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale
  296. local PartWeld = Instance.new("Motor6D")
  297. PartWeld.Part0 = Handle
  298. PartWeld.Part1 = Part
  299. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.25,-0.75)*Scale) * CFrame.Angles(math.rad(-10),0,0)
  300. PartWeld.Parent = Part
  301.  
  302. local Part = Instance.new("Part",Model)
  303. Part.CanCollide = false
  304. Part.Position = Vector3.new(0,100,0)
  305. Part:BreakJoints()
  306. Part.FormFactor = "Custom"
  307. Part.Size = Vector3.new(0.2,0.2,0.2)
  308. Part.TopSurface = "SmoothNoOutlines"
  309. Part.BottomSurface = "SmoothNoOutlines"
  310. Part.FrontSurface = "SmoothNoOutlines"
  311. Part.BackSurface = "SmoothNoOutlines"
  312. Part.RightSurface = "SmoothNoOutlines"
  313. Part.LeftSurface = "SmoothNoOutlines"
  314. Part.BrickColor = BrickColor.new("New Yeller")
  315. Part.Material = "Neon"
  316. local Mesh = Instance.new("BlockMesh",Part)
  317. Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale
  318. local PartWeld = Instance.new("Motor6D")
  319. PartWeld.Part0 = Handle
  320. PartWeld.Part1 = Part
  321. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale)
  322. PartWeld.Parent = Part
  323.  
  324. for i = 0,80,10 do
  325. local Part = Instance.new("Part",Model)
  326. Part.CanCollide = false
  327. Part.Position = Vector3.new(0,100,0)
  328. Part:BreakJoints()
  329. Part.FormFactor = "Custom"
  330. Part.Size = Vector3.new(0.2,0.2,0.2)
  331. Part.TopSurface = "SmoothNoOutlines"
  332. Part.BottomSurface = "SmoothNoOutlines"
  333. Part.FrontSurface = "SmoothNoOutlines"
  334. Part.BackSurface = "SmoothNoOutlines"
  335. Part.RightSurface = "SmoothNoOutlines"
  336. Part.LeftSurface = "SmoothNoOutlines"
  337. Part.BrickColor = BrickColor.new("New Yeller")
  338. Part.Material = "Neon"
  339. local Mesh = Instance.new("BlockMesh",Part)
  340. Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale
  341. local PartWeld = Instance.new("Motor6D")
  342. PartWeld.Part0 = Handle
  343. PartWeld.Part1 = Part
  344. PartWeld.C0 = CFrame.new(Vector3.new(0,0.15,0.315)*Scale) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*Scale)
  345. PartWeld.Parent = Part
  346. end
  347.  
  348. local Barrel = Instance.new("Part",Model)
  349. Barrel.CanCollide = false
  350. Barrel.Position = Vector3.new(0,100,0)
  351. Barrel:BreakJoints()
  352. Barrel.FormFactor = "Custom"
  353. Barrel.Size = Vector3.new(0.2,0.2,0.2)
  354. Barrel.TopSurface = "SmoothNoOutlines"
  355. Barrel.BottomSurface = "SmoothNoOutlines"
  356. Barrel.FrontSurface = "SmoothNoOutlines"
  357. Barrel.BackSurface = "SmoothNoOutlines"
  358. Barrel.RightSurface = "SmoothNoOutlines"
  359. Barrel.LeftSurface = "SmoothNoOutlines"
  360. Barrel.BrickColor = BrickColor.new("Cyan")
  361. Barrel.Material = "Neon"
  362. local Mesh = Instance.new("BlockMesh",Barrel)
  363. Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale
  364. local BarrelWeld = Instance.new("Motor6D")
  365. BarrelWeld.Part0 = Handle
  366. BarrelWeld.Part1 = Barrel
  367. BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale)
  368. BarrelWeld.Parent = Barrel
  369.  
  370. local Barrel1 = Barrel
  371.  
  372. local Barrel2 = Instance.new("Part",Model)
  373. Barrel2.CanCollide = false
  374. Barrel2.Position = Vector3.new(0,100,0)
  375. Barrel2:BreakJoints()
  376. Barrel2.FormFactor = "Custom"
  377. Barrel2.Size = Vector3.new(0.2,0.2,0.2)
  378. Barrel2.TopSurface = "SmoothNoOutlines"
  379. Barrel2.BottomSurface = "SmoothNoOutlines"
  380. Barrel2.FrontSurface = "SmoothNoOutlines"
  381. Barrel2.BackSurface = "SmoothNoOutlines"
  382. Barrel2.RightSurface = "SmoothNoOutlines"
  383. Barrel2.LeftSurface = "SmoothNoOutlines"
  384. Barrel2.BrickColor = BrickColor.new("Really red")
  385. Barrel2.Material = "Neon"
  386. local Mesh = Instance.new("BlockMesh",Barrel2)
  387. Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
  388. local Barrel2Weld = Instance.new("Motor6D")
  389. Barrel2Weld.Part0 = Barrel
  390. Barrel2Weld.Part1 = Barrel2
  391. Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
  392. Barrel2Weld.Parent = Barrel2
  393.  
  394. local RealBarrel = Instance.new("Part",Model)
  395. RealBarrel.CanCollide = false
  396. RealBarrel.Position = Vector3.new(0,100,0)
  397. RealBarrel:BreakJoints()
  398. RealBarrel.FormFactor = "Custom"
  399. RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
  400. RealBarrel.TopSurface = "SmoothNoOutlines"
  401. RealBarrel.BottomSurface = "SmoothNoOutlines"
  402. RealBarrel.FrontSurface = "SmoothNoOutlines"
  403. RealBarrel.BackSurface = "SmoothNoOutlines"
  404. RealBarrel.RightSurface = "SmoothNoOutlines"
  405. RealBarrel.LeftSurface = "SmoothNoOutlines"
  406. RealBarrel.BrickColor = BrickColor.new("Cyan")
  407. RealBarrel.Material = "Neon"
  408. local Mesh = Instance.new("CylinderMesh",RealBarrel)
  409. Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
  410. local RealBarrelWeld = Instance.new("Motor6D")
  411. RealBarrelWeld.Part0 = Barrel
  412. RealBarrelWeld.Part1 = RealBarrel
  413. RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
  414. RealBarrelWeld.Parent = RealBarrel
  415.  
  416. for i = 1,75,15 do
  417. local Part = Instance.new("Part",Model)
  418. Part.CanCollide = false
  419. Part.Position = Vector3.new(0,100,0)
  420. Part:BreakJoints()
  421. Part.FormFactor = "Custom"
  422. Part.Size = Vector3.new(0.2,0.2,0.2)
  423. Part.TopSurface = "SmoothNoOutlines"
  424. Part.BottomSurface = "SmoothNoOutlines"
  425. Part.FrontSurface = "SmoothNoOutlines"
  426. Part.BackSurface = "SmoothNoOutlines"
  427. Part.RightSurface = "SmoothNoOutlines"
  428. Part.LeftSurface = "SmoothNoOutlines"
  429. Part.BrickColor = BrickColor.new("Cyan")
  430. Part.Material = "Neon"
  431. local Mesh = Instance.new("BlockMesh",Part)
  432. Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
  433. local PartWeld = Instance.new("Motor6D")
  434. PartWeld.Part0 = Handle
  435. PartWeld.Part1 = Part
  436. PartWeld.C0 = CFrame.new(Vector3.new(0,0.525,-0.515)*Scale) * CFrame.Angles(math.rad(i),0,0) * CFrame.new(Vector3.new(0,0,0.2)*Scale)
  437. PartWeld.Parent = Part
  438. end
  439.  
  440. local Part = Instance.new("Part",Model)
  441. Part.CanCollide = false
  442. Part.Position = Vector3.new(0,100,0)
  443. Part:BreakJoints()
  444. Part.FormFactor = "Custom"
  445. Part.Size = Vector3.new(0.2,0.2,0.2)
  446. Part.TopSurface = "SmoothNoOutlines"
  447. Part.BottomSurface = "SmoothNoOutlines"
  448. Part.FrontSurface = "SmoothNoOutlines"
  449. Part.BackSurface = "SmoothNoOutlines"
  450. Part.RightSurface = "SmoothNoOutlines"
  451. Part.LeftSurface = "SmoothNoOutlines"
  452. Part.BrickColor = BrickColor.new("Cyan")
  453. Part.Material = "Neon"
  454. local Mesh = Instance.new("BlockMesh",Part)
  455. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  456. local PartWeld = Instance.new("Motor6D")
  457. PartWeld.Part0 = Barrel2
  458. PartWeld.Part1 = Part
  459. PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
  460. PartWeld.Parent = Part
  461.  
  462. local Part = Instance.new("Part",Model)
  463. Part.CanCollide = false
  464. Part.Position = Vector3.new(0,100,0)
  465. Part:BreakJoints()
  466. Part.FormFactor = "Custom"
  467. Part.Size = Vector3.new(0.2,0.2,0.2)
  468. Part.TopSurface = "SmoothNoOutlines"
  469. Part.BottomSurface = "SmoothNoOutlines"
  470. Part.FrontSurface = "SmoothNoOutlines"
  471. Part.BackSurface = "SmoothNoOutlines"
  472. Part.RightSurface = "SmoothNoOutlines"
  473. Part.LeftSurface = "SmoothNoOutlines"
  474. Part.BrickColor = BrickColor.new("Cyan")
  475. Part.Material = "Neon"
  476. local Mesh = Instance.new("BlockMesh",Part)
  477. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  478. local PartWeld = Instance.new("Motor6D")
  479. PartWeld.Part0 = Barrel2
  480. PartWeld.Part1 = Part
  481. PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
  482. PartWeld.Parent = Part
  483.  
  484. local Part = Instance.new("Part",Model)
  485. Part.CanCollide = false
  486. Part.Position = Vector3.new(0,100,0)
  487. Part:BreakJoints()
  488. Part.FormFactor = "Custom"
  489. Part.Size = Vector3.new(0.2,0.2,0.2)
  490. Part.TopSurface = "SmoothNoOutlines"
  491. Part.BottomSurface = "SmoothNoOutlines"
  492. Part.FrontSurface = "SmoothNoOutlines"
  493. Part.BackSurface = "SmoothNoOutlines"
  494. Part.RightSurface = "SmoothNoOutlines"
  495. Part.LeftSurface = "SmoothNoOutlines"
  496. Part.BrickColor = BrickColor.new("Cyan")
  497. Part.Material = "Neon"
  498. local Mesh = Instance.new("BlockMesh",Part)
  499. Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
  500. local PartWeld = Instance.new("Motor6D")
  501. PartWeld.Part0 = Barrel2
  502. PartWeld.Part1 = Part
  503. PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
  504. PartWeld.Parent = Part
  505.  
  506. local Part = Instance.new("Part",Model)
  507. Part.CanCollide = false
  508. Part.Position = Vector3.new(0,100,0)
  509. Part:BreakJoints()
  510. Part.FormFactor = "Custom"
  511. Part.Size = Vector3.new(0.2,0.2,0.2)
  512. Part.Transparency = 1
  513. Part.TopSurface = "SmoothNoOutlines"
  514. Part.BottomSurface = "SmoothNoOutlines"
  515. Part.FrontSurface = "SmoothNoOutlines"
  516. Part.BackSurface = "SmoothNoOutlines"
  517. Part.RightSurface = "SmoothNoOutlines"
  518. Part.LeftSurface = "SmoothNoOutlines"
  519. Part.BrickColor = BrickColor.new("Cyan")
  520. Part.Material = "Neon"
  521. local Mesh = Instance.new("BlockMesh",Part)
  522. Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
  523. local PartWeld = Instance.new("Motor6D")
  524. PartWeld.Part0 = Barrel
  525. PartWeld.Part1 = Part
  526. PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
  527. PartWeld.Parent = Part
  528.  
  529. local Light = Instance.new("PointLight",Part)
  530. Light.Color = BrickColor.new("Gold").Color
  531. Light.Enabled = true
  532. Light.Shadows = true
  533. Light.Brightness = 0
  534. Light.Range = 6
  535.  
  536. local Part = Instance.new("Part",Model)
  537. Part.Material = "Neon"
  538. Part.CanCollide = false
  539. Part.Position = Vector3.new(0,100,0)
  540. Part:BreakJoints()
  541. Part.FormFactor = "Custom"
  542. Part.Size = Vector3.new(0.2,0.2,0.2)
  543. Part.TopSurface = "SmoothNoOutlines"
  544. Part.BottomSurface = "SmoothNoOutlines"
  545. Part.FrontSurface = "SmoothNoOutlines"
  546. Part.BackSurface = "SmoothNoOutlines"
  547. Part.RightSurface = "SmoothNoOutlines"
  548. Part.LeftSurface = "SmoothNoOutlines"
  549. Part.BrickColor = BrickColor.new("Purple")
  550. Part.Material = "Neon"
  551. Part.Transparency = 0.25
  552. local RecoilMesh = Instance.new("SpecialMesh",Part)
  553. RecoilMesh.MeshType = "FileMesh"
  554. RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
  555. RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
  556. RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
  557. local PartWeld = Instance.new("Motor6D")
  558. PartWeld.Part0 = RealBarrel
  559. PartWeld.Part1 = Part
  560. PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
  561. PartWeld.Parent = Part
  562.  
  563. function ShootBullet(Target,barrel)
  564. local barrel = barrel or Barrel
  565. local Bullet = Instance.new("Part",workspace)
  566. Barrel.CanCollide = false
  567. Bullet.FormFactor = "Custom"
  568. Bullet.Size = Vector3.new(0.2,0.2,5)*Scale
  569. Bullet.TopSurface = "Smooth"
  570. Bullet.BottomSurface = "Smooth"
  571. Bullet.Anchored = true
  572. Bullet.CanCollide = false
  573. Bullet.CFrame = CFrame.new((barrel.CFrame*CFrame.new(0,0,-barrel.Size.Z*barrel.Mesh.Scale.Z/2)).p,Target)*CFrame.new(0,0,-Bullet.Size.Z/2)
  574. Bullet.Transparency = 0.1
  575. Bullet.BrickColor = BrickColor.new("Purple")
  576. Bullet.Material = "Neon"
  577. --[[local Mesh = Instance.new("SpecialMesh",Bullet)
  578. Mesh.MeshType = "FileMesh"
  579. Mesh.Scale = Vector3.new(0.5,0.5,0.2)
  580. Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549"
  581. --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]]
  582. local Mesh = Instance.new("BlockMesh",Bullet)
  583. Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size
  584. IgnoreList[#IgnoreList+1] = Bullet
  585. RenderStepped:wait()
  586. for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff.
  587. local ray,Hit,Pos,SurfaceNormal;
  588. ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed)
  589. Hit,Pos,SurfaceNormal = workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList)
  590. Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)
  591. if Hit ~= nil then
  592. local Hum = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid") or (Hit.Parent.Parent.Parent ~= nil and Hit.Parent.Parent.Parent:FindFirstChild("Humanoid"))
  593. if Hum ~= nil then
  594. player2 = Hit.Parent
  595. Hum:TakeDamage(5)
  596. if Hum.Parent.Torso == nil then
  597. q = Instance.new("Sound", Hum.Parent.UpperTorso)
  598. q.SoundId = "rbxassetid://138222365"
  599. q:Play()
  600.  
  601. elseif Hum.Parent.Torso ~= nil then
  602. q = Instance.new("Sound", Hum.Parent.Torso)
  603. q.SoundId = "rbxassetid://138222365"
  604. q:Play()
  605.  
  606. end
  607.  
  608. local num = math.random(1, 3)
  609. print(num)
  610. local charPants = player2:FindFirstChildOfClass("Pants")
  611. local charShirt = player2: FindFirstChildOfClass("Shirt")
  612. if charPants and charShirt then
  613. if num == 1 then
  614. charShirt.ShirtTemplate = Shirt
  615. charPants.PantsTemplate = Pants
  616. elseif num == 2 then
  617. charShirt.ShirtTemplate = Shirt2
  618. charPants.PantsTemplate = Pants2
  619. elseif num == 3 then
  620. charShirt.ShirtTemplate = Shirt3
  621. charPants.PantsTemplate = Pants3
  622. end
  623. end
  624. end
  625. break
  626. end
  627. RenderStepped:wait()
  628. end
  629. Bullet:Destroy()
  630. end
  631.  
  632. Mouse.Button1Down:connect(function()
  633. if not Down and not DB then
  634. Down = true
  635. while Down do
  636. if Humanoid.Health == 0 then break end
  637. if not DB then
  638. DB = true
  639. local Sound = Instance.new("Sound",Barrel)
  640. Sound.SoundId = "rbxassetid://168143115" -- 132373574
  641. Sound.Volume = 5*Scale
  642. Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale)
  643. Sound:Play()
  644. Spawn(function()
  645. ShootBullet(Mouse.Hit.p,Barrel1)
  646. end)
  647. RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  648. PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  649. local Shell = Instance.new("Part",Workspace)
  650. Shell.FormFactor = "Custom"
  651. Shell.BrickColor = BrickColor.new("Purple")
  652. Shell.Material = "Neon"
  653. Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
  654. Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  655. Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  656. local Mesh = Instance.new("CylinderMesh",Shell)
  657. Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
  658. Spawn(function()
  659. wait(5)
  660. Shell:Destroy()
  661. end)
  662. for i = 1,20,7.5 do
  663. RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0)
  664. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale)
  665. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale)
  666. Light.Brightness = Light.Brightness+38
  667. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale)
  668. RenderStepped:wait()
  669. end
  670. wait(0.02)
  671. for i = 1,20,3.75 do
  672. RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0)
  673. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale)
  674. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale)
  675. Light.Brightness = Light.Brightness-19
  676. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale)
  677. RenderStepped:wait()
  678. end
  679. wait(0.02)
  680. DB = false
  681. end
  682. end
  683. end
  684. end)
  685.  
  686. Mouse.Button1Up:connect(function()
  687. Down = false
  688. end)
  689.  
  690. Mouse.KeyDown:connect(function(Key)
  691. if Key:lower() == "g" and not DB then
  692. DB = true
  693. if Gangster == true then
  694. for i = 1,70,5 do
  695. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0)
  696. RenderStepped:wait()
  697. end
  698. Gangster = false
  699. else
  700. for i = 1,70,5 do
  701. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0)
  702. RenderStepped:wait()
  703. end
  704. Gangster = true
  705. end
  706. DB = false
  707. end
  708. end)
  709.  
  710. local Weld = Instance.new("Weld")
  711. Weld.Part0 = Torso
  712. Weld.Part1 = Character["Right Arm"]
  713. Weld.Parent = Torso
  714.  
  715. local Weld2 = Instance.new("Weld")
  716. Weld2.Part0 = Torso
  717. Weld2.Part1 = Character.Head
  718. Weld2.Parent = Torso
  719.  
  720. local RA = Character["Right Arm"]
  721.  
  722.  
  723. game:GetService("RunService"):BindToRenderStep("Pistol",Enum.RenderPriority.Character.Value,function()
  724. local Point = Torso.CFrame:vectorToObjectSpace(Mouse.Hit.p-Torso.CFrame.p)
  725. if Point.Z > 0 then
  726. if Point.X > 0 then
  727. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  728. elseif Point.X < 0 then
  729. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  730. end
  731. end
  732.  
  733. local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,Mouse.Hit.p))--RayEnd))
  734. Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset
  735. Weld.C1 = Part1Joint
  736. Weld.Part0 = Torso
  737. Weld.Part1 = RA
  738. local CFr = (Torso.CFrame*Part0JointHead):toObjectSpace(CFrame.new((Torso.CFrame*Part0JointHead).p,Mouse.Hit.p))--RayEnd))
  739. Weld2.C0 = Part0JointHead * (CFr-CFr.p) * RotationOffsetHead
  740. Weld2.C1 = Part1JointHead
  741. Weld2.Part0 = Torso
  742. Weld2.Part1 = Character.Head
  743. local Last = Scale
  744. Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
  745. Speed = 20*Scale
  746. if Scale ~= Last then
  747. Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  748. Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  749. Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  750. Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  751. end
  752. end)
  753.  
  754. while true do
  755. wait(60)
  756. print("Steamed clams???")
  757. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement