Advertisement
EdgyHedgehog

Solodier Fe

Sep 27th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.37 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. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. local player=owner
  84. local char=player.Character
  85. local tpressed = false
  86. local tpressed2 = 0
  87. local epressed = false
  88. local epressed2 = 0
  89. local ra = char['Right Arm']
  90. local la = char['Left Arm']
  91. local v3 = Vector3.new
  92. local cfn = CFrame.new
  93. local ang = CFrame.Angles
  94. local mr = math.rad
  95. local canfire = false
  96. local camera = game.Workspace.CurrentCamera
  97. local tor = char.Torso
  98. local Ammo = 99999
  99. local firin = false
  100. Smp = "SmoothPlastic"
  101. Sm = "Smooth"
  102. function makepart(parent,color,size,name,anchored,cancollide)
  103. local part = Instance.new("Part")
  104. part.Parent = parent
  105. part.Size = size
  106. part.Name = name
  107. part.Anchored = anchored
  108. part.CanCollide = cancollide
  109. part.TopSurface = "Smooth"
  110. part.BottomSurface = "Smooth"
  111. part.BrickColor = BrickColor.new(color)
  112. part:BreakJoints()
  113. return part
  114. end
  115. function weld(p0,p1,c0)
  116. local w=Instance.new("Weld",p0)
  117. w.Part0=p0
  118. w.Part1=p1
  119. w.C0=c0
  120. return w
  121. end
  122.  
  123. ---Clothing------------------------------------------------------
  124. if char:findFirstChild("Shirt") then
  125. char.Shirt:Remove()
  126. end
  127.  
  128. if char:findFirstChild("Pants") then
  129. char.Pants:Remove()
  130. end
  131.  
  132. if char:findFirstChild("Shirt Graphic") then
  133. char["Shirt Graphic"]:Remove()
  134. end
  135.  
  136. if char.Torso:findFirstChild("roblox") then
  137. char.Torso.roblox:Remove()
  138. end
  139.  
  140. local Shirt = Instance.new("Shirt",char)
  141. local Pants = Instance.new("Pants",char)
  142. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=15947510"
  143. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=32389160"
  144. -----------------------------------------------------------------
  145.  
  146. ---Hat-----------------------------------------------------------------------------
  147. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  148.  
  149. local hat = Instance.new("Part",char.Head)
  150. hat.Size = Vector3.new(2, 0.8, 1)
  151. hat.Locked = true
  152. hat.FormFactor = "Plate"
  153. hat.Material = "Metal"
  154. hat.TopSurface = Sm
  155. hat.BottomSurface = Sm
  156. hat.Name = "Helmet"
  157. hat.Position = Vector3.new(0,-.5,0)
  158. hat.Transparency = 0.005
  159. local hatmesh = Instance.new("SpecialMesh",hat)
  160. hatmesh.MeshType="FileMesh"
  161. hatmesh.MeshId = "http://www.roblox.com/asset/?id=24102128"
  162. hatmesh.TextureId = "http://www.roblox.com/asset/?id=71541827"
  163. hatmesh.Scale = Vector3.new(1.05, 1.25, 1.05)
  164. weld(hat, char.Head, CFrame.new(0,-.30,.15)*CFrame.Angles(math.rad(0),0,0))
  165.  
  166. char.Head.face.Texture = "http://www.roblox.com/asset/?id=187335055"
  167. -------------------------------------------------------------------------------------------
  168.  
  169. ---Backpack---
  170. local m1 = Instance.new("Model")
  171. m1.Name = "Backpack"
  172. p1 = Instance.new("Part", m1)
  173. p1.BrickColor = BrickColor.new("Dark stone grey")
  174. p1.FormFactor = Enum.FormFactor.Plate
  175. p1.Size = Vector3.new(2, 2, 1)
  176. p1.CFrame = CFrame.new(4.59994984, 2.69995689, -11.1000042, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  177. p1.Anchored = false
  178. p1.CanCollide = true
  179. p1.BottomSurface = Enum.SurfaceType.Smooth
  180. p1.TopSurface = Enum.SurfaceType.Smooth
  181. b1 = Instance.new("SpecialMesh", p1)
  182. b1.MeshType = Enum.MeshType.Brick
  183. b1.Name = "Mesh"
  184. b1.Scale = Vector3.new(1.00999999, 1, 1.10000002)
  185. p2 = Instance.new("Part", m1)
  186. p2.BrickColor = BrickColor.new("Earth green")
  187. p2.Name = "part"
  188. p2.FormFactor = Enum.FormFactor.Plate
  189. p2.Size = Vector3.new(1, 2, 1)
  190. p2.CFrame = CFrame.new(4.59994984, 4.19989109, -11.1000042, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  191. p2.Anchored = false
  192. p2.CanCollide = true
  193. p2.BottomSurface = Enum.SurfaceType.Smooth
  194. p2.TopSurface = Enum.SurfaceType.Smooth
  195. b2 = Instance.new("CylinderMesh", p2)
  196. b2.Name = "Mesh"
  197. m1.Parent = char
  198. m1:MakeJoints()
  199. local prev
  200. local parts1 = char.Backpack:GetChildren()
  201.  
  202. for i = 1,#parts1 do
  203. if (parts1[i].className == "Part") or (parts1[i].className == "WedgePart") or (parts1[i].className == "Seat") or (parts1[i].className == "VehicleSeat") or (parts1[i].className == "CornerWedgePart") then
  204. if (prev ~= nil)then
  205. local weld = Instance.new("Weld")
  206. weld.Part0 = prev
  207. weld.Part1 = parts1[i]
  208. weld.C0 = prev.CFrame:inverse()
  209. weld.C1 = parts1[i].CFrame:inverse()
  210. weld.Parent = prev
  211. end
  212. prev = parts1[i]
  213. end
  214. end
  215. weld(char.Backpack.Part, char.Torso, CFrame.new(0,0,-1)*CFrame.Angles(math.rad(0),0,0))
  216. --------------------
  217.  
  218. ---AmmoPouch---
  219.  
  220. local m2 = Instance.new("Model")
  221. m2.Name = "AmmoPouch"
  222. p1 = Instance.new("Part", m2)
  223. p1.BrickColor = BrickColor.new("Dark stone grey")
  224. p1.Material = Enum.Material.Metal
  225. p1.FormFactor = Enum.FormFactor.Plate
  226. p1.Size = Vector3.new(1, 0.400000006, 1)
  227. p1.CFrame = CFrame.new(4.16492414, 2.56973791, -9.53467369, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  228. p1.BottomSurface = Enum.SurfaceType.Smooth
  229. p1.TopSurface = Enum.SurfaceType.Smooth
  230. p1.LeftParamA = 0
  231. p1.LeftParamB = 0
  232. p1.RightParamA = 0
  233. p1.RightParamB = 0
  234. b1 = Instance.new("SpecialMesh", p1)
  235. b1.MeshType = Enum.MeshType.Brick
  236. b1.Name = "Mesh"
  237. b1.Scale = Vector3.new(0.800000012, 0.5, 0.400000006)
  238. p2 = Instance.new("Part", m2)
  239. p2.BrickColor = BrickColor.new("Brown")
  240. p2.FormFactor = Enum.FormFactor.Plate
  241. p2.Size = Vector3.new(1, 0.400000006, 1)
  242. p2.CFrame = CFrame.new(4.15620995, 2.47011304, -9.53478336, 0.999999821, 3.7252903e-009, 2.95694882e-008, 2.95694882e-008, 5.58793545e-009, 0.999999821, -3.7252903e-009, -1, -5.58793545e-009)
  243. p2.BottomSurface = Enum.SurfaceType.Smooth
  244. p2.TopSurface = Enum.SurfaceType.Smooth
  245. p2.LeftParamA = 0
  246. p2.LeftParamB = 0
  247. p2.RightParamA = 0
  248. p2.RightParamB = 0
  249. b2 = Instance.new("SpecialMesh", p2)
  250. b2.MeshType = Enum.MeshType.Brick
  251. b2.Name = "Mesh"
  252. b2.Scale = Vector3.new(0.5, 0.699999988, 0.400000006)
  253. p3 = Instance.new("Part", m2)
  254. p3.BrickColor = BrickColor.new("Brown")
  255. p3.FormFactor = Enum.FormFactor.Plate
  256. p3.Size = Vector3.new(1, 0.400000006, 1)
  257. p3.CFrame = CFrame.new(4.36416483, 2.55231404, -9.53467369, 0.999999881, 5.58793545e-009, 1.961598e-008, 1.97906029e-008, 5.58793545e-009, 0.999999881, 1.11022302e-016, -1, -1.86264504e-009)
  258. p3.BottomSurface = Enum.SurfaceType.Smooth
  259. p3.TopSurface = Enum.SurfaceType.Smooth
  260. p3.LeftParamA = 0
  261. p3.LeftParamB = 0
  262. p3.RightParamA = 0
  263. p3.RightParamB = 0
  264. b3 = Instance.new("SpecialMesh", p3)
  265. b3.MeshType = Enum.MeshType.Brick
  266. b3.Name = "Mesh"
  267. b3.Scale = Vector3.new(0.800000012, 0.600000024, 0.5)
  268. w1 = Instance.new("Weld", p1)
  269. w2 = Instance.new("Weld", p1)
  270. w3 = Instance.new("Weld", p2)
  271. w4 = Instance.new("Weld", p2)
  272. w5 = Instance.new("Weld", p3)
  273. w6 = Instance.new("Weld", p3)
  274. m2.Parent = char
  275. m2:MakeJoints()
  276. local prev
  277. local parts1 = char.AmmoPouch:GetChildren()
  278.  
  279. for i = 1,#parts1 do
  280. if (parts1[i].className == "Part") or (parts1[i].className == "WedgePart") or (parts1[i].className == "Seat") or (parts1[i].className == "VehicleSeat") or (parts1[i].className == "CornerWedgePart") then
  281. if (prev ~= nil)then
  282. local weld = Instance.new("Weld")
  283. weld.Part0 = prev
  284. weld.Part1 = parts1[i]
  285. weld.C0 = prev.CFrame:inverse()
  286. weld.C1 = parts1[i].CFrame:inverse()
  287. weld.Parent = prev
  288. end
  289. prev = parts1[i]
  290. end
  291. end
  292. weld(char.AmmoPouch.Part, char.Torso, CFrame.new(-.50,.54,-.40)*CFrame.Angles(math.rad(270),0,0))
  293. ----------------------------------------
  294.  
  295. ---MP40---
  296. local m = Instance.new("Model")
  297. m.Name = "MP40"
  298. p1 = Instance.new("Part", m)
  299. p1.BrickColor = BrickColor.new("Dark stone grey")
  300. p1.Material = Enum.Material.Metal
  301. p1.FormFactor = Enum.FormFactor.Custom
  302. p1.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  303. p1.CFrame = CFrame.new(16.7652016, 4.23980618, 13.4252539, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  304. p1.BottomSurface = Enum.SurfaceType.Smooth
  305. p1.TopSurface = Enum.SurfaceType.Smooth
  306. b1 = Instance.new("CylinderMesh", p1)
  307. b1.Name = "Mesh"
  308. b1.Scale = Vector3.new(1, 0.5, 0.75)
  309. p2 = Instance.new("Part", m)
  310. p2.BrickColor = BrickColor.new("Dark stone grey")
  311. p2.Material = Enum.Material.Metal
  312. p2.FormFactor = Enum.FormFactor.Custom
  313. p2.Size = Vector3.new(0.30361411, 1.44216657, 0.30361408)
  314. p2.CFrame = CFrame.new(16.006134, 4.00602818, 13.5012341, 0.0832513124, 0.996528745, 0, -0.996528745, 0.0832513124, 0, 0, 0, 1)
  315. p2.BottomSurface = Enum.SurfaceType.Smooth
  316. p2.TopSurface = Enum.SurfaceType.Smooth
  317. b2 = Instance.new("CylinderMesh", p2)
  318. b2.Name = "Mesh"
  319. b2.Scale = Vector3.new(0.25, 1, 0.25)
  320. p3 = Instance.new("Part", m)
  321. p3.BrickColor = BrickColor.new("Dark stone grey")
  322. p3.Material = Enum.Material.Metal
  323. p3.FormFactor = Enum.FormFactor.Custom
  324. p3.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  325. p3.CFrame = CFrame.new(16.8033848, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  326. p3.BottomSurface = Enum.SurfaceType.Smooth
  327. p3.TopSurface = Enum.SurfaceType.Smooth
  328. b3 = Instance.new("SpecialMesh", p3)
  329. b3.MeshType = Enum.MeshType.Head
  330. b3.Name = "Mesh"
  331. b3.Scale = Vector3.new(0.75, 0.5, 1)
  332. p4 = Instance.new("Part", m)
  333. p4.BrickColor = BrickColor.new("Dark stone grey")
  334. p4.Material = Enum.Material.Metal
  335. p4.FormFactor = Enum.FormFactor.Custom
  336. p4.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  337. p4.CFrame = CFrame.new(16.8033848, 3.44283009, 13.4252539, 0, -1, 0, 0, 0, 1, -1, 0, 0)
  338. p4.BottomSurface = Enum.SurfaceType.Smooth
  339. p4.TopSurface = Enum.SurfaceType.Smooth
  340. b4 = Instance.new("SpecialMesh", p4)
  341. b4.MeshType = Enum.MeshType.Wedge
  342. b4.Name = "Mesh"
  343. b4.Scale = Vector3.new(0.5, 1, 0.25)
  344. p5 = Instance.new("Part", m)
  345. p5.BrickColor = BrickColor.new("Dark stone grey")
  346. p5.Material = Enum.Material.Metal
  347. p5.FormFactor = Enum.FormFactor.Custom
  348. p5.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  349. p5.CFrame = CFrame.new(16.7270355, 3.9741509, 13.4252539, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  350. p5.BottomSurface = Enum.SurfaceType.Smooth
  351. p5.TopSurface = Enum.SurfaceType.Smooth
  352. b5 = Instance.new("SpecialMesh", p5)
  353. b5.MeshType = Enum.MeshType.Wedge
  354. b5.Name = "Mesh"
  355. b5.Scale = Vector3.new(0.5, 0.25, 0.5)
  356. p6 = Instance.new("Part", m)
  357. p6.BrickColor = BrickColor.new("Dark stone grey")
  358. p6.Material = Enum.Material.Metal
  359. p6.FormFactor = Enum.FormFactor.Custom
  360. p6.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  361. p6.CFrame = CFrame.new(16.7270355, 4.12595415, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  362. p6.BottomSurface = Enum.SurfaceType.Smooth
  363. p6.TopSurface = Enum.SurfaceType.Smooth
  364. b6 = Instance.new("BlockMesh", p6)
  365. b6.Name = "Mesh"
  366. b6.Scale = Vector3.new(0.5, 0.75, 0.5)
  367. p7 = Instance.new("Part", m)
  368. p7.BrickColor = BrickColor.new("Dark stone grey")
  369. p7.Material = Enum.Material.Metal
  370. p7.Name = "Handle"
  371. p7.FormFactor = Enum.FormFactor.Custom
  372. p7.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  373. p7.CFrame = CFrame.new(16.8789787, 3.70848393, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  374. p7.BottomSurface = Enum.SurfaceType.Smooth
  375. p7.TopSurface = Enum.SurfaceType.Smooth
  376. b7 = Instance.new("BlockMesh", p7)
  377. b7.Name = "Mesh"
  378. b7.Scale = Vector3.new(0.5, 0.99999994, 0.5)
  379. p8 = Instance.new("Part", m)
  380. p8.BrickColor = BrickColor.new("Dark stone grey")
  381. p8.Material = Enum.Material.Metal
  382. p8.FormFactor = Enum.FormFactor.Custom
  383. p8.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  384. p8.CFrame = CFrame.new(16.7270355, 3.70848393, 13.4252539, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  385. p8.BottomSurface = Enum.SurfaceType.Smooth
  386. p8.TopSurface = Enum.SurfaceType.Smooth
  387. b8 = Instance.new("SpecialMesh", p8)
  388. b8.MeshType = Enum.MeshType.Wedge
  389. b8.Name = "Mesh"
  390. b8.Scale = Vector3.new(0.5, 0.99999994, 0.5)
  391. p9 = Instance.new("Part", m)
  392. p9.BrickColor = BrickColor.new("Dark stone grey")
  393. p9.Material = Enum.Material.Metal
  394. p9.FormFactor = Enum.FormFactor.Custom
  395. p9.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  396. p9.CFrame = CFrame.new(16.7270355, 4.0880022, 13.4252539, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  397. p9.BottomSurface = Enum.SurfaceType.Smooth
  398. p9.TopSurface = Enum.SurfaceType.Smooth
  399. b9 = Instance.new("CylinderMesh", p9)
  400. b9.Name = "Mesh"
  401. b9.Scale = Vector3.new(0.5, 0.75, 0.5)
  402. p10 = Instance.new("Part", m)
  403. p10.BrickColor = BrickColor.new("Dark stone grey")
  404. p10.Material = Enum.Material.Metal
  405. p10.FormFactor = Enum.FormFactor.Custom
  406. p10.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  407. p10.CFrame = CFrame.new(16.7729683, 3.93619299, 13.4252539, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  408. p10.BottomSurface = Enum.SurfaceType.Smooth
  409. p10.TopSurface = Enum.SurfaceType.Smooth
  410. b10 = Instance.new("SpecialMesh", p10)
  411. b10.MeshType = Enum.MeshType.Wedge
  412. b10.Name = "Mesh"
  413. b10.Scale = Vector3.new(0.5, 1, 0.5)
  414. p11 = Instance.new("Part", m)
  415. p11.BrickColor = BrickColor.new("Dark stone grey")
  416. p11.Material = Enum.Material.Metal
  417. p11.FormFactor = Enum.FormFactor.Custom
  418. p11.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  419. p11.CFrame = CFrame.new(15.2852917, 3.93619299, 13.4252539, 0, 0, -0.999999166, 0.999998868, 0, 0, 0, -0.999998748, 0)
  420. p11.BottomSurface = Enum.SurfaceType.Smooth
  421. p11.TopSurface = Enum.SurfaceType.Smooth
  422. b11 = Instance.new("SpecialMesh", p11)
  423. b11.MeshId = "http://www.roblox.com/asset/?id=3270017"
  424. b11.TextureId = ""
  425. b11.MeshType = Enum.MeshType.FileMesh
  426. b11.Name = "Mesh"
  427. b11.Scale = Vector3.new(0.683131754, 0.189758763, 0.45542112)
  428. p12 = Instance.new("Part", m)
  429. p12.BrickColor = BrickColor.new("Dark stone grey")
  430. p12.Material = Enum.Material.Metal
  431. p12.FormFactor = Enum.FormFactor.Custom
  432. p12.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  433. p12.CFrame = CFrame.new(17.2674007, 3.83751893, 13.4252539, 0, 0.980619848, -0.195917353, 0, -0.195917353, -0.980619848, -1, 0, 0)
  434. p12.BottomSurface = Enum.SurfaceType.Smooth
  435. p12.TopSurface = Enum.SurfaceType.Smooth
  436. b12 = Instance.new("SpecialMesh", p12)
  437. b12.MeshType = Enum.MeshType.Wedge
  438. b12.Name = "Mesh"
  439. b12.Scale = Vector3.new(0.25, 0.1875, 0.25)
  440. p13 = Instance.new("Part", m)
  441. p13.BrickColor = BrickColor.new("Dark stone grey")
  442. p13.Material = Enum.Material.Metal
  443. p13.FormFactor = Enum.FormFactor.Custom
  444. p13.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  445. p13.CFrame = CFrame.new(17.2481251, 3.88913608, 13.4252539, 0, 0.281835884, -0.959462643, 0, -0.959462643, -0.281835884, -1, 0, 0)
  446. p13.BottomSurface = Enum.SurfaceType.Smooth
  447. p13.TopSurface = Enum.SurfaceType.Smooth
  448. b13 = Instance.new("SpecialMesh", p13)
  449. b13.MeshType = Enum.MeshType.Wedge
  450. b13.Name = "Mesh"
  451. b13.Scale = Vector3.new(0.25, 0.5, 0.25)
  452. p14 = Instance.new("Part", m)
  453. p14.BrickColor = BrickColor.new("Dark stone grey")
  454. p14.Material = Enum.Material.Metal
  455. p14.FormFactor = Enum.FormFactor.Custom
  456. p14.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  457. p14.CFrame = CFrame.new(17.675827, 4.4295702, 13.4634256, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  458. p14.BottomSurface = Enum.SurfaceType.Smooth
  459. p14.TopSurface = Enum.SurfaceType.Smooth
  460. b14 = Instance.new("BlockMesh", p14)
  461. b14.Name = "Mesh"
  462. b14.Offset = Vector3.new(0.00625000009, -0.0125000002, 0.0187500007)
  463. b14.Scale = Vector3.new(0.1875, 0.125, 0.125)
  464. p15 = Instance.new("Part", m)
  465. p15.BrickColor = BrickColor.new("Dark stone grey")
  466. p15.Material = Enum.Material.Metal
  467. p15.FormFactor = Enum.FormFactor.Custom
  468. p15.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  469. p15.CFrame = CFrame.new(18.0935135, 4.0880022, 13.4252539, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  470. p15.BottomSurface = Enum.SurfaceType.Smooth
  471. p15.TopSurface = Enum.SurfaceType.Smooth
  472. b15 = Instance.new("CylinderMesh", p15)
  473. b15.Name = "Mesh"
  474. b15.Scale = Vector3.new(1, 0.5, 1)
  475. p16 = Instance.new("Part", m)
  476. p16.BrickColor = BrickColor.new("Dark stone grey")
  477. p16.Material = Enum.Material.Metal
  478. p16.FormFactor = Enum.FormFactor.Custom
  479. p16.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  480. p16.CFrame = CFrame.new(17.030941, 3.70848393, 13.4252539, 0, 0, -1, 0, -1, 0, -1, 0, 0)
  481. p16.BottomSurface = Enum.SurfaceType.Smooth
  482. p16.TopSurface = Enum.SurfaceType.Smooth
  483. b16 = Instance.new("SpecialMesh", p16)
  484. b16.MeshType = Enum.MeshType.Wedge
  485. b16.Name = "Mesh"
  486. b16.Scale = Vector3.new(0.5, 0.99999994, 0.5)
  487. p17 = Instance.new("Part", m)
  488. p17.BrickColor = BrickColor.new("Dark stone grey")
  489. p17.Material = Enum.Material.Metal
  490. p17.FormFactor = Enum.FormFactor.Custom
  491. p17.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  492. p17.CFrame = CFrame.new(18.5868168, 4.16390419, 13.4252539, 0, 0, -1, 0, -1, 0, -1, 0, 0)
  493. p17.BottomSurface = Enum.SurfaceType.Smooth
  494. p17.TopSurface = Enum.SurfaceType.Smooth
  495. b17 = Instance.new("SpecialMesh", p17)
  496. b17.MeshType = Enum.MeshType.Wedge
  497. b17.Name = "Mesh"
  498. b17.Scale = Vector3.new(0.5, 0.5, 0.25)
  499. p18 = Instance.new("Part", m)
  500. p18.BrickColor = BrickColor.new("Dark stone grey")
  501. p18.Material = Enum.Material.Metal
  502. p18.FormFactor = Enum.FormFactor.Custom
  503. p18.Size = Vector3.new(0.30361411, 0.30361405, 1.29035985)
  504. p18.CFrame = CFrame.new(17.4482613, 4.0880022, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  505. p18.BottomSurface = Enum.SurfaceType.Smooth
  506. p18.TopSurface = Enum.SurfaceType.Smooth
  507. b18 = Instance.new("BlockMesh", p18)
  508. b18.Name = "Mesh"
  509. b18.Scale = Vector3.new(0.5, 1, 1)
  510. p19 = Instance.new("Part", m)
  511. p19.BrickColor = BrickColor.new("Dark stone grey")
  512. p19.Material = Enum.Material.Metal
  513. p19.FormFactor = Enum.FormFactor.Custom
  514. p19.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  515. p19.CFrame = CFrame.new(18.4348583, 4.01210117, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  516. p19.BottomSurface = Enum.SurfaceType.Smooth
  517. p19.TopSurface = Enum.SurfaceType.Smooth
  518. b19 = Instance.new("BlockMesh", p19)
  519. b19.Name = "Mesh"
  520. b19.Scale = Vector3.new(0.5, 0.99999994, 0.75)
  521. p20 = Instance.new("Part", m)
  522. p20.BrickColor = BrickColor.new("Dark stone grey")
  523. p20.Material = Enum.Material.Metal
  524. p20.FormFactor = Enum.FormFactor.Custom
  525. p20.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  526. p20.CFrame = CFrame.new(18.1694927, 4.16390419, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  527. p20.BottomSurface = Enum.SurfaceType.Smooth
  528. p20.TopSurface = Enum.SurfaceType.Smooth
  529. b20 = Instance.new("BlockMesh", p20)
  530. b20.Name = "Mesh"
  531. b20.Scale = Vector3.new(0.5, 0.5, 0.5)
  532. p21 = Instance.new("Part", m)
  533. p21.BrickColor = BrickColor.new("Dark stone grey")
  534. p21.Material = Enum.Material.Metal
  535. p21.FormFactor = Enum.FormFactor.Custom
  536. p21.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  537. p21.CFrame = CFrame.new(18.359251, 4.0880022, 13.4252539, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  538. p21.BottomSurface = Enum.SurfaceType.Smooth
  539. p21.TopSurface = Enum.SurfaceType.Smooth
  540. b21 = Instance.new("CylinderMesh", p21)
  541. b21.Name = "Mesh"
  542. b21.Scale = Vector3.new(1, 0.5, 0.75)
  543. p22 = Instance.new("Part", m)
  544. p22.BrickColor = BrickColor.new("Dark stone grey")
  545. p22.Material = Enum.Material.Metal
  546. p22.FormFactor = Enum.FormFactor.Custom
  547. p22.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  548. p22.CFrame = CFrame.new(17.6380196, 4.4295702, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  549. p22.BottomSurface = Enum.SurfaceType.Smooth
  550. p22.TopSurface = Enum.SurfaceType.Smooth
  551. b22 = Instance.new("BlockMesh", p22)
  552. b22.Name = "Mesh"
  553. b22.Offset = Vector3.new(0, -0.0500000007, 0)
  554. b22.Scale = Vector3.new(0.5, 0.25, 0.5)
  555. p23 = Instance.new("Part", m)
  556. p23.BrickColor = BrickColor.new("Dark stone grey")
  557. p23.Material = Enum.Material.Metal
  558. p23.FormFactor = Enum.FormFactor.Custom
  559. p23.Size = Vector3.new(0.30361411, 2.20120168, 0.30361408)
  560. p23.CFrame = CFrame.new(17.9037533, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  561. p23.BottomSurface = Enum.SurfaceType.Smooth
  562. p23.TopSurface = Enum.SurfaceType.Smooth
  563. b23 = Instance.new("CylinderMesh", p23)
  564. b23.Name = "Mesh"
  565. b23.Scale = Vector3.new(0.75, 1, 1)
  566. p24 = Instance.new("Part", m)
  567. p24.BrickColor = BrickColor.new("Dark stone grey")
  568. p24.Material = Enum.Material.Metal
  569. p24.FormFactor = Enum.FormFactor.Custom
  570. p24.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  571. p24.CFrame = CFrame.new(18.321455, 3.82234693, 13.4252539, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  572. p24.BottomSurface = Enum.SurfaceType.Smooth
  573. p24.TopSurface = Enum.SurfaceType.Smooth
  574. b24 = Instance.new("SpecialMesh", p24)
  575. b24.MeshType = Enum.MeshType.Wedge
  576. b24.Name = "Mesh"
  577. b24.Scale = Vector3.new(0.5, 0.25, 0.25)
  578. p25 = Instance.new("Part", m)
  579. p25.BrickColor = BrickColor.new("Dark stone grey")
  580. p25.Material = Enum.Material.Metal
  581. p25.FormFactor = Enum.FormFactor.Custom
  582. p25.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  583. p25.CFrame = CFrame.new(19.0423069, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  584. p25.BottomSurface = Enum.SurfaceType.Smooth
  585. p25.TopSurface = Enum.SurfaceType.Smooth
  586. b25 = Instance.new("CylinderMesh", p25)
  587. b25.Name = "Mesh"
  588. b25.Scale = Vector3.new(0.5, 0.25, 0.5)
  589. p26 = Instance.new("Part", m)
  590. p26.BrickColor = BrickColor.new("Dark stone grey")
  591. p26.Material = Enum.Material.Metal
  592. p26.FormFactor = Enum.FormFactor.Custom
  593. p26.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  594. p26.CFrame = CFrame.new(17.675827, 4.4295702, 13.387084, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  595. p26.BottomSurface = Enum.SurfaceType.Smooth
  596. p26.TopSurface = Enum.SurfaceType.Smooth
  597. b26 = Instance.new("BlockMesh", p26)
  598. b26.Name = "Mesh"
  599. b26.Offset = Vector3.new(-0.00625000009, -0.0125000002, 0.0187500007)
  600. b26.Scale = Vector3.new(0.1875, 0.125, 0.125)
  601. p27 = Instance.new("Part", m)
  602. p27.BrickColor = BrickColor.new("Dark stone grey")
  603. p27.Material = Enum.Material.Metal
  604. p27.Name = "Magazine"
  605. p27.FormFactor = Enum.FormFactor.Custom
  606. p27.Size = Vector3.new(0.30361411, 1.06264901, 0.30361408)
  607. p27.CFrame = CFrame.new(18.4348583, 3.40487504, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  608. p27.BottomSurface = Enum.SurfaceType.Smooth
  609. p27.TopSurface = Enum.SurfaceType.Smooth
  610. b27 = Instance.new("BlockMesh", p27)
  611. b27.Name = "Mesh"
  612. b27.Scale = Vector3.new(0.375, 1, 0.625)
  613. p28 = Instance.new("Part", m)
  614. p28.BrickColor = BrickColor.new("Dark stone grey")
  615. p28.Material = Enum.Material.Metal
  616. p28.FormFactor = Enum.FormFactor.Custom
  617. p28.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  618. p28.CFrame = CFrame.new(18.5490112, 3.86029696, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  619. p28.BottomSurface = Enum.SurfaceType.Smooth
  620. p28.TopSurface = Enum.SurfaceType.Smooth
  621. b28 = Instance.new("SpecialMesh", p28)
  622. b28.MeshType = Enum.MeshType.Wedge
  623. b28.Name = "Mesh"
  624. b28.Scale = Vector3.new(0.5, 0.5, 0.25)
  625. p29 = Instance.new("Part", m)
  626. p29.BrickColor = BrickColor.new("Dark stone grey")
  627. p29.Material = Enum.Material.Metal
  628. p29.FormFactor = Enum.FormFactor.Custom
  629. p29.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  630. p29.CFrame = CFrame.new(18.2832718, 4.16390419, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  631. p29.BottomSurface = Enum.SurfaceType.Smooth
  632. p29.TopSurface = Enum.SurfaceType.Smooth
  633. b29 = Instance.new("BlockMesh", p29)
  634. b29.Name = "Mesh"
  635. b29.Scale = Vector3.new(0.5, 0.5, 0.25)
  636. p30 = Instance.new("Part", m)
  637. p30.BrickColor = BrickColor.new("Dark stone grey")
  638. p30.Material = Enum.Material.Metal
  639. p30.FormFactor = Enum.FormFactor.Custom
  640. p30.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  641. p30.CFrame = CFrame.new(17.2585068, 3.89824891, 13.4252539, -0.99999994, 0, 0, 0, -0.99999994, 0, 0, 0, 1)
  642. p30.BottomSurface = Enum.SurfaceType.Smooth
  643. p30.TopSurface = Enum.SurfaceType.Smooth
  644. b30 = Instance.new("SpecialMesh", p30)
  645. b30.MeshId = "http://www.roblox.com/asset/?id=3270017"
  646. b30.TextureId = ""
  647. b30.MeshType = Enum.MeshType.FileMesh
  648. b30.Name = "Mesh"
  649. b30.Scale = Vector3.new(0.379517615, 0.30361405, 0.22771056)
  650. p31 = Instance.new("Part", m)
  651. p31.BrickColor = BrickColor.new("Dark stone grey")
  652. p31.Material = Enum.Material.Metal
  653. p31.Name = "Barrel"
  654. p31.FormFactor = Enum.FormFactor.Custom
  655. p31.Size = Vector3.new(0.30361411, 0.986745656, 0.30361408)
  656. p31.CFrame = CFrame.new(19.57341, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  657. p31.BottomSurface = Enum.SurfaceType.Smooth
  658. p31.TopSurface = Enum.SurfaceType.Smooth
  659. b31 = Instance.new("CylinderMesh", p31)
  660. b31.Name = "Mesh"
  661. b31.Scale = Vector3.new(0.375, 0.99999994, 0.375)
  662. d1 = Instance.new("Decal", p31)
  663. d1.Texture = "http://www.roblox.com/asset/?id=85448092"
  664. d1.Face = Enum.NormalId.Top
  665. p32 = Instance.new("Part", m)
  666. p32.BrickColor = BrickColor.new("Dark stone grey")
  667. p32.Material = Enum.Material.Metal
  668. p32.FormFactor = Enum.FormFactor.Custom
  669. p32.Size = Vector3.new(0.30361411, 1.44216657, 0.30361408)
  670. p32.CFrame = CFrame.new(16.006134, 4.00602818, 13.3492861, 0.0832513124, 0.996528745, 0, -0.996528745, 0.0832513124, 0, 0, 0, 1)
  671. p32.BottomSurface = Enum.SurfaceType.Smooth
  672. p32.TopSurface = Enum.SurfaceType.Smooth
  673. b32 = Instance.new("CylinderMesh", p32)
  674. b32.Name = "Mesh"
  675. b32.Scale = Vector3.new(0.25, 1, 0.25)
  676. m.Parent = char
  677. m:MakeJoints()
  678. local prev
  679. local parts = char.MP40:GetChildren()
  680.  
  681. for i = 1,#parts do
  682. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  683. if (prev ~= nil)then
  684. local weld = Instance.new("Weld")
  685. weld.Part0 = prev
  686. weld.Part1 = parts[i]
  687. weld.C0 = prev.CFrame:inverse()
  688. weld.C1 = parts[i].CFrame:inverse()
  689. weld.Parent = prev
  690. end
  691. prev = parts[i]
  692. end
  693. end
  694. char.MP40.Handle.Weld.Name = "Weld2"
  695.  
  696.  
  697. weld(char.MP40.Handle, char.Torso, CFrame.new(1.6,0,-.80)*CFrame.Angles(math.rad(0),29.8,0))
  698. --------------------------------------
  699.  
  700. ---Taunts/German
  701. local t1=Instance.new("Sound",char.Head)
  702. t1.SoundId="http://www.roblox.com/asset/?id=176893156"
  703. t1.PlayOnRemove=false
  704. t1.Volume=1
  705. t1.Looped=false
  706. t1.Pitch = 1
  707. t1.Parent=char.Head
  708. local t2=Instance.new("Sound",char.Head)
  709. t2.SoundId="http://www.roblox.com/asset/?id=176893156"
  710. t2.PlayOnRemove=false
  711. t2.Volume=1
  712. t2.Looped=false
  713. t2.Pitch = 1
  714. t2.Parent=char.Head
  715. local t3=Instance.new("Sound",char.Head)
  716. t3.SoundId="http://www.roblox.com/asset/?id=156508971"
  717. t3.PlayOnRemove=false
  718. t3.Volume=1
  719. t3.Looped=false
  720. t3.Pitch = 1
  721. t3.Parent=char.Head
  722. local t4=Instance.new("Sound",char.Head)
  723. t4.SoundId="http://www.roblox.com/asset/?id=156508971"
  724. t4.PlayOnRemove=false
  725. t4.Volume=1
  726. t4.Looped=false
  727. t4.Pitch = 1
  728. t4.Parent=char.Head
  729. mouse.KeyDown:connect(function(key)
  730. if key == "t" then
  731. tpressed = true
  732. wait(4)
  733. tpressed = false
  734. end
  735. end)
  736.  
  737. mouse.KeyDown:connect(function(key)
  738. if key == "t" and tpressed == false then
  739. tpressed2 = tpressed2 + 1
  740. if tpressed2 == 1 then
  741. t1:Play()
  742. wait(3.44)
  743. t1:Stop()
  744. print(tpressed2)
  745. end
  746. if tpressed2 == 2 then
  747. t2.Parent = game.Lighting
  748. wait()
  749. t2.TimePosition = 3.44
  750. wait()
  751. t2.Parent = char.Head
  752. t2:Play()
  753. wait(2.60)
  754. t2:Stop()
  755. print(tpressed2)
  756. end
  757. if tpressed2 == 3 then
  758. t3.Parent = game.Lighting
  759. wait()
  760. t3.TimePosition = 1.60
  761. wait()
  762. t3.Parent = char.Head
  763. t3:Play()
  764. wait(1.76)
  765. t3:Stop()
  766. print(tpressed2)
  767. end
  768. if tpressed2 == 4 then
  769. t4.Parent = game.Lighting
  770. wait()
  771. t4.TimePosition = 4.70
  772. wait()
  773. t4.Parent = char.Head
  774. t4:Play()
  775. wait(3.20)
  776. t4:Stop()
  777. print(tpressed2)
  778. end
  779. if tpressed2 == 5 then
  780. tpressed2 = 0
  781. t1:Stop()
  782. t2:Stop()
  783. t3:Stop()
  784. t4:Stop()
  785. print(tpressed2)
  786. end
  787. end
  788. end)
  789.  
  790. --MP40--
  791. local Barrel2 = Instance.new("Part",char.MP40)
  792. Barrel2.Size = Vector3.new(0.6, 0.6, 0.6)
  793. Barrel2.formFactor = "Custom"
  794. Barrel2.Locked = true
  795. Barrel2.Name = "Barrel2"
  796. Barrel2.Anchored = false
  797. Barrel2.CanCollide = false
  798. Barrel2.Transparency = 1
  799. Barrel2:BreakJoints()
  800.  
  801. weld(Barrel2, char.MP40.Barrel, CFrame.new(0,-.55,0))
  802.  
  803. local guiMain = Instance.new("BillboardGui",Barrel2)
  804. guiMain.AlwaysOnTop = false
  805. guiMain.Size = UDim2.new(1.3, 0,1.3, 0)
  806. guiMain.Name = "guiMain"
  807. local SD = Instance.new("ImageLabel")
  808. SD.Position = UDim2.new(0,0,0)
  809. SD.Size = UDim2.new(1,0,1,0)
  810. SD.Parent = guiMain;
  811. SD.BackgroundColor3 = Color3.new(255/255,255/255,255/255)
  812. SD.BorderColor3 = Color3.new(27/255,42/255,53/255)
  813. SD.BackgroundTransparency = 1
  814. SD.BorderSizePixel = 1
  815. SD.Image = "http://www.roblox.com/asset/?id=156580315"
  816. SD.Visible = false
  817. SD.Name = "SD"
  818. local light = Instance.new("PointLight",Barrel2)
  819. light.Brightness = 2.5
  820. light.Color = Color3.new(255/255,183/255,0/255)
  821. light.Range = 5
  822. light.Enabled = false
  823. light.Name = "Light"
  824.  
  825. mouse.KeyDown:connect(function(key)
  826. if key == "e" then
  827. epressed = true
  828. wait(2.4)
  829. epressed = false
  830. end
  831. end)
  832.  
  833. mouse.KeyDown:connect(function(key)
  834. if key == "e" and tpressed == false then
  835. epressed2 = epressed2 + 1
  836. if epressed2 == 1 then
  837. if ra:FindFirstChild("Weld") then ra.Weld:Destroy() end
  838. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(10),0,0))
  839. wait(.03)
  840. ra.Weld:Destroy()
  841. weld(ra, tor, CFrame.new(-1.5,0,-.15)*CFrame.Angles(math.rad(15),0,0))
  842. wait(.03)
  843. ra.Weld:Destroy()
  844. weld(ra, tor, CFrame.new(-1.5,0,-.20)*CFrame.Angles(math.rad(20),0,0))
  845. wait(.03)
  846. ra.Weld:Destroy()
  847. weld(ra, tor, CFrame.new(-1.5,0,-.25)*CFrame.Angles(math.rad(25),0,0))
  848. wait(.03)
  849. ra.Weld:Destroy()
  850. weld(ra, tor, CFrame.new(-1.5,0,-.30)*CFrame.Angles(math.rad(30),.10,0))
  851. wait(.03)
  852. ra.Weld:Destroy()
  853. weld(ra, tor, CFrame.new(-1.5,0,-.35)*CFrame.Angles(math.rad(35),.20,0))
  854. wait(.03)
  855. ra.Weld:Destroy()
  856. weld(ra, tor, CFrame.new(-1.5,0,-.40)*CFrame.Angles(math.rad(40),.30,0))
  857. wait(.03)
  858. ra.Weld:Destroy()
  859. weld(ra, tor, CFrame.new(-1.5,0,-.45)*CFrame.Angles(math.rad(40),.40,0))
  860. char.MP40.Handle.Weld:Destroy()
  861. weld(char.MP40.Handle, char["Right Arm"], CFrame.new(0,.50,0)*CFrame.Angles(math.rad(0),29.8,0))
  862. wait(.03)
  863. char.MP40.Handle.Weld:Destroy()
  864. weld(char.MP40.Handle, char["Right Arm"], CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),29.8,0))
  865. wait(.03)
  866. ra.Weld:Destroy()
  867. weld(ra, tor, CFrame.new(-1.5,0,-.40)*CFrame.Angles(math.rad(40),.30,0))
  868. wait(.03)
  869. ra.Weld:Destroy()
  870. weld(ra, tor, CFrame.new(-1.5,0,-.35)*CFrame.Angles(math.rad(35),.20,0))
  871. wait(.03)
  872. ra.Weld:Destroy()
  873. weld(ra, tor, CFrame.new(-1.5,0,-.30)*CFrame.Angles(math.rad(30),.10,0))
  874. wait(.03)
  875. ra.Weld:Destroy()
  876. weld(ra, tor, CFrame.new(-1.5,0,-.25)*CFrame.Angles(math.rad(25),0,0))
  877. wait(.03)
  878. ra.Weld:Destroy()
  879. weld(ra, tor, CFrame.new(-1.5,0,-.20)*CFrame.Angles(math.rad(20),0,0))
  880. wait(.03)
  881. ra.Weld:Destroy()
  882. weld(ra, tor, CFrame.new(-1.5,0,-.15)*CFrame.Angles(math.rad(15),0,0))
  883. wait(.03)
  884. ra.Weld:Destroy()
  885. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(10),0,0))
  886. wait(.03)
  887. ra.Weld:Destroy()
  888. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-5),0,0))
  889. wait(.03)
  890. ra.Weld:Destroy()
  891. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-10),0,0))
  892. wait(.03)
  893. ra.Weld:Destroy()
  894. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-15),0,0))
  895. wait(.03)
  896. ra.Weld:Destroy()
  897. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-20),0,0))
  898. wait(.03)
  899. ra.Weld:Destroy()
  900. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-25),0,0))
  901. wait(.03)
  902. ra.Weld:Destroy()
  903. weld(ra, tor, CFrame.new(-1.5,0,.5)*CFrame.Angles(math.rad(-30),0,0))
  904. wait(.03)
  905. ra.Weld:Destroy()
  906. weld(ra, tor, CFrame.new(-1.5,.10,.10)*CFrame.Angles(math.rad(-35),0,0))
  907. wait(.03)
  908. ra.Weld:Destroy()
  909. weld(ra, tor, CFrame.new(-1.5,.20,.20)*CFrame.Angles(math.rad(-40),0,0))
  910. wait(.03)
  911. ra.Weld:Destroy()
  912. weld(ra, tor, CFrame.new(-1.5,.30,.30)*CFrame.Angles(math.rad(-45),0,0))
  913. wait(.03)
  914. ra.Weld:Destroy()
  915. weld(ra, tor, CFrame.new(-1.5,.40,.40)*CFrame.Angles(math.rad(-50),0,0))
  916. wait(.03)
  917. ra.Weld:Destroy()
  918. weld(ra, tor, CFrame.new(-1.5,.50,.50)*CFrame.Angles(math.rad(-55),0,0))
  919. wait(.03)
  920. ra.Weld:Destroy()
  921. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-60),0,0))
  922. wait(.03)
  923. ra.Weld:Destroy()
  924. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-65),0,0))
  925. wait(.03)
  926. ra.Weld:Destroy()
  927. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-70),0,0))
  928. wait(.03)
  929. ra.Weld:Destroy()
  930. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-75),0,0))
  931. char.MP40.Handle.Weld:Destroy()
  932. weld(char.MP40.Handle, char["Right Arm"], CFrame.new(0,-.10,-.20)*CFrame.Angles(math.rad(90),0,0))
  933. wait(.03)
  934. ra.Weld:Destroy()
  935. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-80),0,0))
  936. wait(.03)
  937. ra.Weld:Destroy()
  938. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-85),0,0))
  939. wait(.03)
  940. ra.Weld:Destroy()
  941. weld(ra, tor, CFrame.new(-1.5,.60,.25)*CFrame.Angles(math.rad(-90),0,0))
  942. wait(.03)
  943. if la:FindFirstChild("Weld") then la.Weld:Destroy() end
  944. weld(la, tor, CFrame.new(-1,0,-.10)*CFrame.Angles(math.rad(90),10,0))
  945. wait(.08)
  946. la.Weld:Destroy()
  947. weld(la, tor, CFrame.new(-.80,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  948. wait(.08)
  949. la.Weld:Destroy()
  950. weld(la, tor, CFrame.new(-.60,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  951. wait(.08)
  952. la.Weld:Destroy()
  953. weld(la, tor, CFrame.new(-.40,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  954. wait(.08)
  955. la.Weld:Destroy()
  956. weld(la, tor, CFrame.new(-.20,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  957. wait(.03)
  958. la.Weld:Destroy()
  959. weld(la, tor, CFrame.new(-.10,.80,-.10)*CFrame.Angles(math.rad(90),10,0))
  960. wait(.03)
  961. la.Weld:Destroy()
  962. weld(la, tor, CFrame.new(.05,1.10,-.10)*CFrame.Angles(math.rad(90),10,0))
  963. wait(.03)
  964. la.Weld:Destroy()
  965. weld(la, tor, CFrame.new(.05,1.20,-.10)*CFrame.Angles(math.rad(90),10,0))
  966. wait(.03)
  967. la.Weld:Destroy()
  968. weld(la, tor, CFrame.new(.05,1.30,-.10)*CFrame.Angles(math.rad(90),10,0))
  969. wait(.03)
  970. la.Weld:Destroy()
  971. weld(la, tor, CFrame.new(.10,1.3,-.10)*CFrame.Angles(math.rad(90),10,0))
  972. canfire = true
  973. end
  974. if epressed2 == 2 then
  975. epressed2 = 0
  976. end
  977. end
  978. end)
  979.  
  980.  
  981. function computeDirection(pos)
  982. local invrtDir = 1 / math.sqrt((pos.magnitude * pos.magnitude))
  983. local dir = Vector3.new(pos.x * invrtDir, pos.y * invrtDir, pos.z * invrtDir)
  984. return dir
  985. end
  986.  
  987. local bullet = Instance.new("Part")
  988. bullet.Name = "Bullet"
  989. bullet.Shape = 0
  990. bullet.BrickColor = BrickColor.new(103)
  991. bullet.FormFactor = "Custom"
  992. bullet.Size = Vector3.new(0.32, 0.33, 0.45)
  993. bullet.Locked = true
  994. local mesh = Instance.new("SpecialMesh",bullet)
  995. mesh.MeshType="FileMesh"
  996. mesh.MeshId = "http://www.roblox.com/asset?id=123881156"
  997. mesh.TextureId = "http://www.roblox.com/asset?id=123881235"
  998. mesh.VertexColor = Vector3.new(1, 1, 1)
  999. mesh.Scale = Vector3.new(0.5, 0.5, 1.1)
  1000.  
  1001. function fire()
  1002.  
  1003. local cam_rot = camera.CoordinateFrame - camera.CoordinateFrame.p
  1004. local cam_scroll = (camera.CoordinateFrame.p - camera.Focus.p).magnitude
  1005. local ncf = CFrame.new(camera.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.0025+math.random()/100, math.random(-10,10)/1000, 0)
  1006. camera.CoordinateFrame = ncf*CFrame.new(10, 50, cam_scroll)
  1007. local gun=Instance.new("Sound",char.MP40.Handle)
  1008. game:service'Debris':AddItem(gun,.2)
  1009. gun.SoundId="rbxassetid://132456050"
  1010. gun.Volume=2
  1011. gun:play()
  1012.  
  1013. local b = bullet:Clone()
  1014. b.Parent = workspace
  1015. b.CanCollide = true
  1016. b.Name = "Bullet"
  1017. game.Debris:AddItem(b,4)
  1018. local target = mouse.Hit.p - char.MP40.Barrel.Position
  1019. local dir = computeDirection(target)
  1020. local pos = char.MP40.Barrel.Position + (dir * 2)
  1021. local bcframe = CFrame.new(pos, pos + dir)
  1022. local foirc = bcframe * CFrame.fromEulerAnglesXYZ(math.random(0,60) / 500, math.random(-5,10) / 100, 100) -- Lower values here will make it more accurate; higher, less accurate
  1023. b.CFrame = foirc
  1024. local bv = Instance.new("BodyVelocity")
  1025. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1026. bv.velocity = foirc.lookVector * math.random(153, 200) -- Change this if you want the bullet to go faster or slower
  1027. bv.Parent = b
  1028. b.Touched:connect(function(hit)
  1029. if hit and hit.Parent:FindFirstChild("Humanoid") then
  1030. local isPlayer = hit.Parent:FindFirstChild("Humanoid")
  1031. isPlayer:TakeDamage(math.random(6,14))
  1032. b:Destroy()
  1033. if isPlayer.Parent:FindFirstChild("ForceField") then isPlayer.Parent.ForceField:Destroy() b:Destroy() end
  1034. end
  1035. if hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:FindFirstChild("Humanoid") then
  1036. local isPlayer = hit.Parent.Parent:FindFirstChild("Humanoid")
  1037. isPlayer:TakeDamage(math.random(6,14))
  1038. b:Destroy()
  1039. if isPlayer.Parent:FindFirstChild("ForceField") then isPlayer.Parent.ForceField:Destroy() end
  1040. end
  1041. if hit.Parent:FindFirstChild("Humanoid") == nil then
  1042. local p = Instance.new("Part")
  1043. p.formFactor = "Custom"
  1044. p.Size = Vector3.new(0.5,0.5,0.5)
  1045. p.Transparency = 1
  1046. p.CanCollide = false
  1047. p.Locked = true
  1048. p.CFrame = hit.CFrame+(b.Position-hit.Position)
  1049. local w = Instance.new("Weld")
  1050. w.Part0 = mouse.Target
  1051. w.Part1 = p
  1052. w.C0 = mouse.Target.CFrame:inverse()
  1053. w.C1 = p.CFrame:inverse()
  1054. w.Parent = p
  1055. local d = Instance.new("Decal")
  1056. d.Parent = p
  1057. d.Face = mouse.TargetSurface
  1058. d.Texture = "http://www.roblox.com/asset/?id=2078626"
  1059. p.Parent = game.Workspace
  1060. game.Debris:AddItem(p,10)
  1061. b:Destroy()
  1062. end
  1063. end)
  1064. end
  1065. function fire2()
  1066. if la:FindFirstChild("Weld") then la.Weld:Destroy() end
  1067. if ra:FindFirstChild("Weld") then ra.Weld:Destroy() end
  1068. weld(la, tor, CFrame.new(.10,.95,-.10)*CFrame.Angles(math.rad(90),10,0))
  1069. weld(ra, tor, CFrame.new(-1.5,.55,.25)*CFrame.Angles(math.rad(-90),0,0))
  1070. SD.Visible = true
  1071. light.Enabled = true
  1072. wait()
  1073. ra.Weld:Destroy()
  1074. la.Weld:Destroy()
  1075. weld(la, tor, CFrame.new(.10,.90,-.10)*CFrame.Angles(math.rad(90),10,0))
  1076. weld(ra, tor, CFrame.new(-1.5,.50,.25)*CFrame.Angles(math.rad(-90),0,0))
  1077. SD.ImageTransparency = .10
  1078. wait()
  1079. ra.Weld:Destroy()
  1080. la.Weld:Destroy()
  1081. weld(la, tor, CFrame.new(.10,.85,-.10)*CFrame.Angles(math.rad(90),10,0))
  1082. weld(ra, tor, CFrame.new(-1.5,.45,.25)*CFrame.Angles(math.rad(-90),0,0))
  1083. SD.ImageTransparency = .20
  1084. wait()
  1085. ra.Weld:Destroy()
  1086. la.Weld:Destroy()
  1087. weld(la, tor, CFrame.new(.10,.80,-.10)*CFrame.Angles(math.rad(90),10,0))
  1088. weld(ra, tor, CFrame.new(-1.5,.40,.25)*CFrame.Angles(math.rad(-90),0,0))
  1089. SD.ImageTransparency = .30
  1090. wait()
  1091. ra.Weld:Destroy()
  1092. la.Weld:Destroy()
  1093. weld(la, tor, CFrame.new(.10,.85,-.10)*CFrame.Angles(math.rad(90),10,0))
  1094. weld(ra, tor, CFrame.new(-1.5,.45,.25)*CFrame.Angles(math.rad(-90),0,0))
  1095. SD.ImageTransparency = .40
  1096. wait()
  1097. ra.Weld:Destroy()
  1098. la.Weld:Destroy()
  1099. weld(la, tor, CFrame.new(.10,.90,-.10)*CFrame.Angles(math.rad(90),10,0))
  1100. weld(ra, tor, CFrame.new(-1.5,.50,.25)*CFrame.Angles(math.rad(-90),0,0))
  1101. SD.ImageTransparency = .50
  1102. wait()
  1103. ra.Weld:Destroy()
  1104. la.Weld:Destroy()
  1105. weld(la, tor, CFrame.new(.10,.95,-.10)*CFrame.Angles(math.rad(90),10,0))
  1106. weld(ra, tor, CFrame.new(-1.5,.55,.25)*CFrame.Angles(math.rad(-90),0,0))
  1107. SD.ImageTransparency = .60
  1108. wait()
  1109. ra.Weld:Destroy()
  1110. la.Weld:Destroy()
  1111. weld(la, tor, CFrame.new(.10,1,-.10)*CFrame.Angles(math.rad(90),10,0))
  1112. weld(ra, tor, CFrame.new(-1.5,.55,.25)*CFrame.Angles(math.rad(-90),0,0))
  1113. SD.ImageTransparency = .70
  1114. wait()
  1115. ra.Weld:Destroy()
  1116. la.Weld:Destroy()
  1117. weld(la, tor, CFrame.new(.10,1.3,-.10)*CFrame.Angles(math.rad(90),10,0))
  1118. weld(ra, tor, CFrame.new(-1.5,.60,.25)*CFrame.Angles(math.rad(-90),0,0))
  1119. SD.ImageTransparency = .80
  1120. light.Enabled = false
  1121. SD.Visible = false
  1122. end
  1123.  
  1124.  
  1125.  
  1126. mouse.Button1Down:connect(function()
  1127. if Ammo>=0 and canfire == true and firin == true then
  1128. pcall(function()
  1129. while firin == true do
  1130. wait()
  1131. fire2()
  1132. end
  1133. end)
  1134. end
  1135. end)
  1136.  
  1137. mouse.Button1Down:connect(function()
  1138. if Ammo >= 0 and canfire == true then
  1139. firin = true
  1140. pcall(function()
  1141. while firin == true do
  1142. wait(.16)
  1143. fire()
  1144. Ammo = Ammo - 1
  1145. end end)
  1146.  
  1147. end
  1148.  
  1149. end)
  1150.  
  1151. mouse.Button1Up:connect(function()
  1152. firin = false
  1153. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement