Advertisement
Plug_RBLX

animated cool cs-go gamer

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