Advertisement
Guest User

Untitled

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