Advertisement
refrop

sans gunner

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