Advertisement
gdgrg

luis911911

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