Advertisement
refrop

sans gunner v2

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