Advertisement
Rufus14

FB Beryl

Sep 4th, 2021 (edited)
1,576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 195.73 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4.     local env = getfenv(func)
  5.     local newenv = setmetatable({},{
  6.         __index = function(self,k)
  7.             if k=="script" then
  8.                 return var
  9.             else
  10.                 return env[k]
  11.             end
  12.         end,
  13.     })
  14.     setfenv(func,newenv)
  15.     return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Script1 = Instance.new("Script")
  21. LocalScript2 = Instance.new("LocalScript")
  22. RemoteEvent3 = Instance.new("RemoteEvent")
  23. Model4 = Instance.new("Model")
  24. Part5 = Instance.new("Part")
  25. Part6 = Instance.new("Part")
  26. Part7 = Instance.new("Part")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. Part12 = Instance.new("Part")
  32. Part13 = Instance.new("Part")
  33. Part14 = Instance.new("Part")
  34. Part15 = Instance.new("Part")
  35. Part16 = Instance.new("Part")
  36. Part17 = Instance.new("Part")
  37. Part18 = Instance.new("Part")
  38. Part19 = Instance.new("Part")
  39. Part20 = Instance.new("Part")
  40. Part21 = Instance.new("Part")
  41. Weld22 = Instance.new("Weld")
  42. Weld23 = Instance.new("Weld")
  43. Weld24 = Instance.new("Weld")
  44. Part25 = Instance.new("Part")
  45. Model26 = Instance.new("Model")
  46. Part27 = Instance.new("Part")
  47. Weld28 = Instance.new("Weld")
  48. Part29 = Instance.new("Part")
  49. Part30 = Instance.new("Part")
  50. Part31 = Instance.new("Part")
  51. Part32 = Instance.new("Part")
  52. Part33 = Instance.new("Part")
  53. Part34 = Instance.new("Part")
  54. Part35 = Instance.new("Part")
  55. Part36 = Instance.new("Part")
  56. Part37 = Instance.new("Part")
  57. Part38 = Instance.new("Part")
  58. Part39 = Instance.new("Part")
  59. Part40 = Instance.new("Part")
  60. Part41 = Instance.new("Part")
  61. Part42 = Instance.new("Part")
  62. Part43 = Instance.new("Part")
  63. Part44 = Instance.new("Part")
  64. Part45 = Instance.new("Part")
  65. Part46 = Instance.new("Part")
  66. Part47 = Instance.new("Part")
  67. Part48 = Instance.new("Part")
  68. Part49 = Instance.new("Part")
  69. Part50 = Instance.new("Part")
  70. Part51 = Instance.new("Part")
  71. Part52 = Instance.new("Part")
  72. Part53 = Instance.new("Part")
  73. Part54 = Instance.new("Part")
  74. Part55 = Instance.new("Part")
  75. Part56 = Instance.new("Part")
  76. Part57 = Instance.new("Part")
  77. Part58 = Instance.new("Part")
  78. Part59 = Instance.new("Part")
  79. Part60 = Instance.new("Part")
  80. Part61 = Instance.new("Part")
  81. Part62 = Instance.new("Part")
  82. Part63 = Instance.new("Part")
  83. Part64 = Instance.new("Part")
  84. Part65 = Instance.new("Part")
  85. Part66 = Instance.new("Part")
  86. Part67 = Instance.new("Part")
  87. Part68 = Instance.new("Part")
  88. Part69 = Instance.new("Part")
  89. Part70 = Instance.new("Part")
  90. Part71 = Instance.new("Part")
  91. Part72 = Instance.new("Part")
  92. Part73 = Instance.new("Part")
  93. Part74 = Instance.new("Part")
  94. Model75 = Instance.new("Model")
  95. Part76 = Instance.new("Part")
  96. Part77 = Instance.new("Part")
  97. Weld78 = Instance.new("Weld")
  98. Part79 = Instance.new("Part")
  99. Part80 = Instance.new("Part")
  100. Part81 = Instance.new("Part")
  101. Part82 = Instance.new("Part")
  102. Part83 = Instance.new("Part")
  103. Part84 = Instance.new("Part")
  104. Part85 = Instance.new("Part")
  105. Part86 = Instance.new("Part")
  106. Part87 = Instance.new("Part")
  107. Part88 = Instance.new("Part")
  108. Part89 = Instance.new("Part")
  109. Part90 = Instance.new("Part")
  110. Part91 = Instance.new("Part")
  111. Part92 = Instance.new("Part")
  112. Part93 = Instance.new("Part")
  113. Part94 = Instance.new("Part")
  114. Part95 = Instance.new("Part")
  115. Part96 = Instance.new("Part")
  116. Part97 = Instance.new("Part")
  117. Model98 = Instance.new("Model")
  118. Part99 = Instance.new("Part")
  119. Part100 = Instance.new("Part")
  120. Weld101 = Instance.new("Weld")
  121. Weld102 = Instance.new("Weld")
  122. Weld103 = Instance.new("Weld")
  123. Part104 = Instance.new("Part")
  124. Part105 = Instance.new("Part")
  125. Part106 = Instance.new("Part")
  126. Part107 = Instance.new("Part")
  127. Part108 = Instance.new("Part")
  128. Part109 = Instance.new("Part")
  129. Part110 = Instance.new("Part")
  130. Part111 = Instance.new("Part")
  131. Part112 = Instance.new("Part")
  132. Weld113 = Instance.new("Weld")
  133. Weld114 = Instance.new("Weld")
  134. Weld115 = Instance.new("Weld")
  135. Weld116 = Instance.new("Weld")
  136. Weld117 = Instance.new("Weld")
  137. Weld118 = Instance.new("Weld")
  138. Weld119 = Instance.new("Weld")
  139. Weld120 = Instance.new("Weld")
  140. Weld121 = Instance.new("Weld")
  141. Weld122 = Instance.new("Weld")
  142. Weld123 = Instance.new("Weld")
  143. Weld124 = Instance.new("Weld")
  144. Weld125 = Instance.new("Weld")
  145. Weld126 = Instance.new("Weld")
  146. Weld127 = Instance.new("Weld")
  147. Weld128 = Instance.new("Weld")
  148. Weld129 = Instance.new("Weld")
  149. Weld130 = Instance.new("Weld")
  150. Weld131 = Instance.new("Weld")
  151. Weld132 = Instance.new("Weld")
  152. Weld133 = Instance.new("Weld")
  153. Weld134 = Instance.new("Weld")
  154. Weld135 = Instance.new("Weld")
  155. Weld136 = Instance.new("Weld")
  156. Weld137 = Instance.new("Weld")
  157. Weld138 = Instance.new("Weld")
  158. Weld139 = Instance.new("Weld")
  159. Weld140 = Instance.new("Weld")
  160. Weld141 = Instance.new("Weld")
  161. Weld142 = Instance.new("Weld")
  162. Weld143 = Instance.new("Weld")
  163. Weld144 = Instance.new("Weld")
  164. Weld145 = Instance.new("Weld")
  165. Weld146 = Instance.new("Weld")
  166. Weld147 = Instance.new("Weld")
  167. Weld148 = Instance.new("Weld")
  168. Weld149 = Instance.new("Weld")
  169. Weld150 = Instance.new("Weld")
  170. Weld151 = Instance.new("Weld")
  171. Weld152 = Instance.new("Weld")
  172. Weld153 = Instance.new("Weld")
  173. Weld154 = Instance.new("Weld")
  174. Weld155 = Instance.new("Weld")
  175. Weld156 = Instance.new("Weld")
  176. Weld157 = Instance.new("Weld")
  177. Weld158 = Instance.new("Weld")
  178. Weld159 = Instance.new("Weld")
  179. Weld160 = Instance.new("Weld")
  180. Weld161 = Instance.new("Weld")
  181. Weld162 = Instance.new("Weld")
  182. Weld163 = Instance.new("Weld")
  183. Weld164 = Instance.new("Weld")
  184. Weld165 = Instance.new("Weld")
  185. Weld166 = Instance.new("Weld")
  186. Weld167 = Instance.new("Weld")
  187. Weld168 = Instance.new("Weld")
  188. Weld169 = Instance.new("Weld")
  189. Weld170 = Instance.new("Weld")
  190. Weld171 = Instance.new("Weld")
  191. Weld172 = Instance.new("Weld")
  192. Weld173 = Instance.new("Weld")
  193. Weld174 = Instance.new("Weld")
  194. Weld175 = Instance.new("Weld")
  195. Weld176 = Instance.new("Weld")
  196. Weld177 = Instance.new("Weld")
  197. Weld178 = Instance.new("Weld")
  198. Weld179 = Instance.new("Weld")
  199. Weld180 = Instance.new("Weld")
  200. Weld181 = Instance.new("Weld")
  201. Weld182 = Instance.new("Weld")
  202. Weld183 = Instance.new("Weld")
  203. Weld184 = Instance.new("Weld")
  204. Weld185 = Instance.new("Weld")
  205. Weld186 = Instance.new("Weld")
  206. Weld187 = Instance.new("Weld")
  207. Weld188 = Instance.new("Weld")
  208. Weld189 = Instance.new("Weld")
  209. Weld190 = Instance.new("Weld")
  210. Weld191 = Instance.new("Weld")
  211. Weld192 = Instance.new("Weld")
  212. Weld193 = Instance.new("Weld")
  213. Weld194 = Instance.new("Weld")
  214. Weld195 = Instance.new("Weld")
  215. Weld196 = Instance.new("Weld")
  216. Weld197 = Instance.new("Weld")
  217. Weld198 = Instance.new("Weld")
  218. Weld199 = Instance.new("Weld")
  219. Weld200 = Instance.new("Weld")
  220. Weld201 = Instance.new("Weld")
  221. Weld202 = Instance.new("Weld")
  222. Weld203 = Instance.new("Weld")
  223. Weld204 = Instance.new("Weld")
  224. Weld205 = Instance.new("Weld")
  225. Weld206 = Instance.new("Weld")
  226. Part207 = Instance.new("Part")
  227. Part208 = Instance.new("Part")
  228. Part209 = Instance.new("Part")
  229. Part210 = Instance.new("Part")
  230. Part211 = Instance.new("Part")
  231. Part212 = Instance.new("Part")
  232. Folder213 = Instance.new("Folder")
  233. NumberValue214 = Instance.new("NumberValue")
  234. NumberValue215 = Instance.new("NumberValue")
  235. NumberValue216 = Instance.new("NumberValue")
  236. NumberValue217 = Instance.new("NumberValue")
  237. NumberValue218 = Instance.new("NumberValue")
  238. StringValue219 = Instance.new("StringValue")
  239. NumberValue220 = Instance.new("NumberValue")
  240. NumberValue221 = Instance.new("NumberValue")
  241. ScreenGui222 = Instance.new("ScreenGui")
  242. TextLabel223 = Instance.new("TextLabel")
  243. TextLabel224 = Instance.new("TextLabel")
  244. TextLabel225 = Instance.new("TextLabel")
  245. Tool0.Name = "FB Beryl"
  246. Tool0.Parent = mas
  247. Tool0.RequiresHandle = false
  248. Script1.Name = "server"
  249. Script1.Parent = Tool0
  250. table.insert(cors,sandbox(Script1,function()
  251.     --By Rufus14, first attempt at making a real fps framework
  252. local players = game:GetService("Players")
  253. local runservice = game:GetService("RunService")
  254. local tweenservice = game:GetService("TweenService")
  255. local debris = game:GetService("Debris")
  256. local easingstyles = Enum.EasingStyle
  257. local easingdirs = Enum.EasingDirection
  258.  
  259. local tool = script.Parent
  260. local remote = tool:WaitForChild("gunremote")
  261. local gunmodel = tool.GunModel
  262. local handle = gunmodel:FindFirstChild("Handle")
  263. local mainpart = gunmodel:FindFirstChild("mainpart")
  264. local owner
  265. local character
  266.  
  267. local mathr = math.random
  268.  
  269. local state = "unequipped"
  270. _G.gundebugserver = false
  271.  
  272. --tick validators
  273. local equiptick
  274.  
  275. --character limbs
  276. local larm
  277. local rarm
  278. local lleg
  279. local rleg
  280. local head
  281. local torso
  282. local hrp
  283. --character welds
  284. local larmw
  285. local rarmw
  286. local llegw
  287. local rlegw
  288. local headw
  289. local torsow
  290. --gun welds
  291. local boltw = mainpart:WaitForChild("boltweld")
  292. local magw = mainpart:WaitForChild("magweld")
  293. local trigw = mainpart:WaitForChild("triggerweld")
  294. local rightgrip
  295. --gun parts
  296. local lufa = gunmodel:WaitForChild("lufa")
  297. local boltmodel = gunmodel:WaitForChild("bolt")
  298. local magmodel = gunmodel:WaitForChild("mag")
  299. local boltpart = boltmodel:WaitForChild("boltpart")
  300.  
  301. --vars
  302. local weldbholestoanchoredparts = false --when you repeatedly weld new stuff to lets say a base it will start bouncing people up
  303. local headrotationx = 0
  304. local adsing = false
  305. local sprinte = false
  306. local savedws
  307. local headoffset = Instance.new("Weld", handle)
  308. headoffset.Name = "headoffsetholder"
  309. headoffset.C0 = CFrame.new()
  310. local movehead = true
  311. local rayignore = {}
  312.  
  313. --ignore table stuff
  314.  
  315. workspace.DescendantAdded:Connect(function(WHAT)
  316.     if WHAT:IsA("Accessory") or WHAT:IsA("Hat") or WHAT.Name == "HumanoidRootPart" then
  317.         --print("added "..WHAT.Name)
  318.         table.insert(rayignore, WHAT)
  319.     elseif WHAT:IsA("BasePart") and not WHAT.CanCollide and not WHAT.Parent:FindFirstChildOfClass("Humanoid") then
  320.         --print("found nocollide")
  321.         table.insert(rayignore, WHAT)
  322.     end
  323. end)
  324. workspace.DescendantRemoving:Connect(function(WHAT)
  325.     local findthing = table.find(rayignore, WHAT)
  326.     if findthing then
  327.         --print("removed "..WHAT.Name)
  328.         table.remove(rayignore, findthing)
  329.     end
  330. end)
  331.  
  332. for i,v in pairs(workspace:GetDescendants()) do
  333.     if v:IsA("Accessory") or v:IsA("Hat") or v.Name == "HumanoidRootPart" then
  334.         --print("added "..v.Name.." on start")
  335.         table.insert(rayignore, v)
  336.     elseif v:IsA("BasePart") and not v.CanCollide and not v.Parent:FindFirstChildOfClass("Humanoid") then
  337.         --print("found nocollide on start")
  338.         table.insert(rayignore, v)
  339.     end
  340. end
  341.  
  342. --sounds
  343. soundsdisabledfromrefit = {""}
  344. local boltpsound = Instance.new("Sound", handle)
  345. boltpsound.SoundId = "rbxassetid://456267525"
  346. boltpsound.Volume = 0.8
  347. boltpsound.Name = "boltpsound"
  348. boltpsound.RollOffMinDistance = 1
  349. boltpsound.RollOffMaxDistance = 300
  350. local shellsound = Instance.new("Sound", handle)
  351. shellsound.SoundId = "rbxassetid://2712533735"
  352. shellsound.Volume = 0.5
  353. shellsound.Name = "shellsound"
  354. shellsound.RollOffMinDistance = 1
  355. shellsound.RollOffMaxDistance = 300
  356. local magoutsound = Instance.new("Sound", handle)
  357. magoutsound.SoundId = "rbxassetid://268445237"
  358. magoutsound.Volume = 0.8
  359. magoutsound.Name = "magoutsound"
  360. magoutsound.RollOffMinDistance = 1
  361. magoutsound.RollOffMaxDistance = 300
  362. local maginsound = Instance.new("Sound", handle)
  363. maginsound.SoundId = "rbxassetid://2546411966"
  364. maginsound.Volume = 0.8
  365. maginsound.Name = "magoutsound"
  366. maginsound.RollOffMinDistance = 1
  367. maginsound.RollOffMaxDistance = 300
  368. local magreachsound = Instance.new("Sound", handle)
  369. magreachsound.SoundId = "rbxassetid://7329457810"
  370. magreachsound.Volume = 3
  371. magreachsound.Name = "magreachsound"
  372. magreachsound.RollOffMinDistance = 1
  373. magreachsound.RollOffMaxDistance = 300
  374. local shootsound = Instance.new("Sound", handle)
  375. shootsound.SoundId = "rbxassetid://6530496628"
  376. shootsound.Volume = 1.5
  377. shootsound.Name = "shootsound"
  378. shootsound.RollOffMinDistance = 1
  379. shootsound.RollOffMaxDistance = 300
  380. --i am doing each individual sound for concrete just so vsb sandbox will make it sound less scuffed
  381. concretesoundtick = tick()
  382. local hitconcrete = Instance.new("Sound", handle)
  383. hitconcrete.SoundId = "rbxassetid://6962153997"
  384. hitconcrete.Volume = 1
  385. hitconcrete.Name = "hitcsound"
  386. hitconcrete.RollOffMinDistance = 1
  387. hitconcrete.RollOffMaxDistance = 200
  388. hitcsounds = {"6962154328", "6962154691", "6962155378", "6962153997"}
  389.  
  390. function playsound(sound, timep, playbacks, volume)
  391.     pcall(function() -- so the script wont die if someone renames sounds/attempts to play something that isnt a sound
  392.         sound.TimePosition = timep
  393.         sound.PlaybackSpeed = playbacks
  394.         sound.Volume = volume
  395.         sound:Play()
  396.     end)
  397. end
  398.  
  399. --[[handle.ChildRemoved:Connect(function(WHAT) --antinosound
  400.     if WHAT.ClassName == "Sound" and not table.find(soundsdisabledfromrefit, WHAT.Name) then
  401.         local backups = Instance.new("Sound", handle)
  402.         backups.SoundId = WHAT.SoundId
  403.         backups.Volume = WHAT.Volume
  404.         backups.Name = WHAT.Name
  405.     end
  406. end)--]]
  407.  
  408. --bullet data
  409. local settingsfolder = tool:WaitForChild("settings")
  410. local bchambered = settingsfolder:WaitForChild("bchambered")
  411. local binmag = settingsfolder:WaitForChild("inmag")
  412. local gunspeed = settingsfolder:WaitForChild("speed")
  413. local magleft = settingsfolder:WaitForChild("magleft")
  414. local bspeed = settingsfolder:WaitForChild("bspeed")
  415. local maxpen = settingsfolder:WaitForChild("maxwpenetration")
  416. local maxmagcap = settingsfolder:WaitForChild("maxmagcapacity")
  417. local bulletholetime = 10
  418. local shellflytime = 0.5
  419. local shellfallspeed = 80
  420.  
  421. --ragdoll data
  422. ragdolldespawntime = 10
  423.  
  424.  
  425. --shot data
  426. local lasttimeshot = tick()
  427.  
  428. ragdollbullettable = {}
  429.  
  430. --damage values
  431.  
  432. damagelimbs = {
  433.     ["Left Arm"] = 15,
  434.     ["Right Arm"] = 15,
  435.     ["Left Leg"] = 25,
  436.     ["Right Leg"] = 25,
  437.     ["Torso"] = 35,
  438.     ["HumanoidRootPart"] = 35,
  439.     ["UpperTorso"] = 35,
  440.     ["LowerTorso"] = 30,
  441.     ["Head"] = 80,
  442. }
  443.  
  444. --pose tables
  445. poses = {
  446.     equip = {
  447.         [1] = {
  448.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  449.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  450.             hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023483, -0.133021921, 0.631326377, 0.0301536229, 0.984807849, 0.17100969, -0.644483387, -0.111618645, 0.756427288), easingstyles.Sine, easingdirs.In},
  451.             gw = {CFrame.new(-0.612442017, -0.0641784668, 0.243187428, -0.190242305, 0.981636524, -0.0140367029, 0.97735244, 0.188023433, -0.0971002579, -0.0926780254, -0.0321914665, -0.99517554), easingstyles.Sine, easingdirs.In},
  452.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.In},
  453.             raw = {CFrame.new(0.981407166, -0.690696716, -1.01522064, 0.98480767, 0.173648074, 7.82310963e-08, 3.98025719e-08, 3.57627869e-07, -0.99999994, -0.173648164, 0.98480767, 3.27825546e-07), easingstyles.Sine, easingdirs.In},
  454.             law = {CFrame.new(-0.00226593018, -0.8416152, -2.39169312, -0.0137151666, -0.502738416, 0.864329815, 0.969466627, -0.218347415, -0.111618571, 0.244839087, 0.836407959, 0.490382791), easingstyles.Sine, easingdirs.In},
  455.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
  456.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
  457.         },
  458.         [2] = {
  459.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  460.             bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Linear, easingdirs.InOut},
  461.             hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023662, -0.133021936, 0.631326437, 0.0301536229, 0.984807849, 0.17100969, -0.644483507, -0.111618653, 0.756427407), easingstyles.Linear, easingdirs.InOut},
  462.             gw = {CFrame.new(-0.672363281, -0.433959961, 0.294300914, -0.216361552, 0.971516311, -0.0966561288, 0.963123441, 0.196173027, -0.184126943, -0.159921542, -0.132930249, -0.97813797), easingstyles.Linear, easingdirs.InOut},
  463.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Linear, easingdirs.InOut},
  464.             raw = {CFrame.new(1.03038406, -0.790250301, -0.73740387, 0.98480773, 0.172303915, -0.0215636268, 4.28408384e-08, -0.124180116, -0.992259502, -0.173648149, 0.977184474, -0.122293577), easingstyles.Linear, easingdirs.InOut},
  465.             law = {CFrame.new(-0.00227355957, -0.841616631, -2.39168549, -0.0574795455, -0.499630094, 0.864329934, 0.946747363, -0.302011132, -0.111618534, 0.316805094, 0.811885834, 0.490382493), easingstyles.Linear, easingdirs.InOut},
  466.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Linear, easingdirs.InOut},
  467.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Linear, easingdirs.InOut}
  468.         },
  469.         [3] = {
  470.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  471.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
  472.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
  473.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
  474.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.Out},
  475.             raw = {CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08), easingstyles.Sine, easingdirs.Out},
  476.             law = {CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457), easingstyles.Sine, easingdirs.Out},
  477.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.Out},
  478.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.Out}
  479.         }
  480.     },
  481.     shoot = {
  482.         [1] = {
  483.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  484.             bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Back, easingdirs.Out},
  485.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
  486.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
  487.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516) * CFrame.Angles(0,-math.rad(2.5),0), easingstyles.Back, easingdirs.Out},
  488.             raw = {CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08) * CFrame.new(0,0.1,0) * CFrame.Angles(0,0,-math.rad(2.5)), easingstyles.Back, easingdirs.Out},
  489.             law = {CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457) * CFrame.new(0.05,0.1,0.05), easingstyles.Back, easingdirs.Out},
  490.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Back, easingdirs.Out},
  491.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Back, easingdirs.Out},
  492.         },
  493.         [2] = {
  494.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  495.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
  496.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
  497.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
  498.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Back, easingdirs.Out},
  499.             raw = {CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08), easingstyles.Back, easingdirs.Out},
  500.             law = {CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457), easingstyles.Back, easingdirs.Out},
  501.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Back, easingdirs.Out},
  502.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Back, easingdirs.Out},
  503.         }
  504.     },
  505.     reload = {
  506.         [1] = {
  507.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  508.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.InOut},
  509.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.766044319, -0.11161875, 0.633022487, -3.7252903e-08, 0.984807789, 0.17364797, -0.642787755, -0.133022055, 0.754406393), easingstyles.Sine, easingdirs.InOut},
  510.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.InOut},
  511.             tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.InOut},
  512.             raw = {CFrame.new(1.26604462, -0.913009644, -0.537094116, 0.999999821, -3.57627869e-07, 6.27093755e-08, 4.48221016e-10, -0.173648104, -0.984807611, 3.85997794e-07, 0.984807551, -0.173648149), easingstyles.Sine, easingdirs.InOut},
  513.             law = {CFrame.new(-1.08869362, -1.33496189, -1.19934082, 0.766044259, 4.22527791e-10, -0.642787695, -0.111618742, 0.98480767, -0.133021995, 0.633022428, 0.17364791, 0.754406333), easingstyles.Sine, easingdirs.InOut},
  514.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.InOut},
  515.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.InOut}
  516.         },
  517.         [2] = {
  518.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  519.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  520.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.864329457, -0.11161875, 0.490383387, 0.03015358, 0.984807789, 0.171009868, -0.502021194, -0.133022055, 0.854564071), easingstyles.Sine, easingdirs.In},
  521.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
  522.             tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.In},
  523.             raw = {CFrame.new(1.11267471, -0.963647842, -0.780944824, 0.96286577, 0.230811596, -0.140053496, -0.10095071, -0.173324212, -0.979677141, -0.250395477, 0.957436204, -0.143587425), easingstyles.Sine, easingdirs.In},
  524.             law = {CFrame.new(-0.289166451, -0.800122261, -1.59056854, 0.533511698, -0.820919991, -0.203605846, -0.0797704309, 0.190816656, -0.978378952, 0.842022419, 0.53821826, 0.0363177806), easingstyles.Sine, easingdirs.In},
  525.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
  526.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
  527.         },
  528.         [3] = {
  529.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  530.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.Out},
  531.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.Out},
  532.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.Out},
  533.             tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.Out},
  534.             raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442), easingstyles.Sine, easingdirs.Out},
  535.             law = {CFrame.new(-0.798740387, -0.729963303, -1.94239807, 0.788041711, -0.601489127, -0.131151706, -0.0967602059, 0.0893746093, -0.991286814, 0.60796994, 0.793865442, 0.0122306943), easingstyles.Sine, easingdirs.Out},
  536.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.Out},
  537.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.Out}
  538.         },
  539.         [4] = {
  540.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  541.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  542.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.In},
  543.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
  544.             tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319    ), easingstyles.Sine, easingdirs.In},
  545.             raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442), easingstyles.Sine, easingdirs.In},
  546.             law = {CFrame.new(-0.733897209, -0.698638916, -1.94715118, 0.733374, -0.676505506, -0.0670995787, -0.0810378194, 0.0110032074, -0.996650279, 0.67497766, 0.736355007, -0.0467530787) * CFrame.Angles(0.15,0,0), easingstyles.Sine, easingdirs.In},
  547.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
  548.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
  549.         },
  550.         [5] = {
  551.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  552.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  553.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.In},
  554.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
  555.             tw = {CFrame.new(0, 0, 0, 0.766044319, 0, -0.642787755, 0, 1, 0, 0.642787755, 0, 0.766044319), easingstyles.Sine, easingdirs.In},
  556.             raw = {CFrame.new(0.956790924, -0.985137939, -0.964424133, 0.887119889, 0.382671088, -0.258031964, -0.185951054, -0.215345785, -0.95867002, -0.422421396, 0.898436666, -0.119879492), easingstyles.Sine, easingdirs.In},
  557.             law = {CFrame.new(-0.702912331, -0.529985428, -1.91860962, 0.691018224, -0.696123064, -0.194694132, -0.3362284, -0.0711144507, -0.939091682, 0.639877796, 0.714391232, -0.28319779), easingstyles.Sine, easingdirs.In},
  558.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.In},
  559.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.In}
  560.         }
  561.     },
  562.     --individual poses
  563.     reloadmag = {
  564.         [1] = {
  565.             mag = {CFrame.new(0.383216858, 0.00605773926, -0.895876884, 0.982579589, -0.0196594987, -0.184799746, 0.0194191728, 0.999806643, -0.00311047747, 0.184825167, -0.000532366452, 0.982771337), easingstyles.Sine, easingdirs.In}
  566.         },
  567.         [2] = {
  568.             mag = {CFrame.new(-0.341659546, -0.00597381592, -0.82459569, 0.943051159, -0.0805884004, 0.32273832, 0.108094886, 0.99179846, -0.0682025552, -0.314594954, 0.0992048606, 0.944027781) * CFrame.new(-0.2,0,0), easingstyles.Sine, easingdirs.Out}
  569.         },
  570.         [3] = {
  571.             mag = {CFrame.new(-0.343078613, 0.033826828, -0.555139065, 0.931312561, -0.056615673, 0.359807789, 0.0651112646, 0.997804642, -0.0115158707, -0.358372539, 0.0341522247, 0.932950974) * CFrame.Angles(0,0.3,0) * CFrame.new(-0.2,0,0), easingstyles.Sine, easingdirs.In}
  572.         },
  573.         [4] = {
  574.             mag = {CFrame.new(-0.226425171, 0.0250015259, -0.604773998, 0.984800279, 1.56462193e-06, 0.173645124, 1.68196857e-06, 0.999979436, -5.66244125e-07, -0.173649177, -8.04662704e-07, 0.984803438), easingstyles.Sine, easingdirs.Out}
  575.         }
  576.     },
  577.     ads = {
  578.         [1] = {
  579.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
  580.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
  581.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
  582.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.Out},
  583.             raw = {CFrame.new(-0.35,0,0) * CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08), easingstyles.Sine, easingdirs.Out},
  584.             law = {CFrame.new(-0.35,0,0) * CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457), easingstyles.Sine, easingdirs.Out},
  585.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Sine, easingdirs.Out},
  586.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Sine, easingdirs.Out}
  587.         },
  588.         [2] = {
  589.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  590.             bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Back, easingdirs.Out},
  591.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
  592.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
  593.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516) * CFrame.Angles(0,-math.rad(2.5),0), easingstyles.Back, easingdirs.Out},
  594.             raw = {CFrame.new(-0.35,0,0) * CFrame.new(1.14278793, -1, 0.0660438538, 0.99999994, -2.98023295e-08, 3.34848664e-08, 3.34848629e-08, -2.80971388e-08, -0.99999994, -2.98023153e-08, 0.99999994, -2.80971388e-08) * CFrame.new(0,0.1,0) * CFrame.Angles(0,0,-math.rad(2.5)), easingstyles.Back, easingdirs.Out},
  595.             law = {CFrame.new(-0.35,0,0) * CFrame.new(0.458522797, -1.14453077, -2.31480408, -0.166365653, -0.620885015, 0.766044557, 0.965925753, -0.258819014, 5.69202712e-08, 0.198266879, 0.739942193, 0.642787457) * CFrame.new(0.05,0.1,0.05), easingstyles.Back, easingdirs.Out},
  596.             llw = {CFrame.new(-0.5,-2,0), easingstyles.Back, easingdirs.Out},
  597.             rlw = {CFrame.new(0.5,-2,0), easingstyles.Back, easingdirs.Out},
  598.         }
  599.     }
  600. }
  601.  
  602. function weld(part0, part1, name, c0)
  603.     local welfunc
  604.     pcall(function()
  605.         welfunc = Instance.new("Weld", part0)
  606.         welfunc.Part0 = part0
  607.         welfunc.Part1 = part1
  608.         welfunc.Name = name
  609.         welfunc.C0 = c0
  610.     end)
  611.     return welfunc
  612. end
  613.  
  614. function tween(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime, WHAT, goal)
  615.     local info = TweenInfo.new(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime)
  616.     local goals = goal
  617.     local anim = tweenservice:Create(WHAT, info, goals)
  618.     anim:Play()
  619. end
  620.  
  621. function cpose(posename, clientpose, clientposenum, speed, backupt)
  622.     if equiptick == backupt then
  623.         tween(speed, posename.raw[2], posename.raw[3], 0, false, 0, rarmw, {C0 = posename.raw[1]})
  624.         tween(speed, posename.law[2], posename.law[3], 0, false, 0, larmw, {C0 = posename.law[1]})
  625.         tween(speed, posename.gw[2], posename.gw[3], 0, false, 0, rightgrip, {C0 = posename.gw[1]})
  626.         tween(speed, posename.tw[2], posename.tw[3], 0, false, 0, torsow, {C0 = posename.tw[1]})
  627.         tween(speed, posename.hw[2], posename.hw[3], 0, false, 0, headoffset, {C0 = posename.hw[1]})
  628.         tween(speed, posename.bw[2], posename.bw[3], 0, false, 0, boltw, {C0 = posename.bw[1]})
  629.         remote:FireClient(owner, "fromserverpose", clientpose, clientposenum, speed)
  630.     end
  631.     --tween(speed, easingstylee, easingdirss, 0, false, 0, llegw, {C0 = currentpose.llw})
  632.     --tween(speed, easingstylee, easingdirss, 0, false, 0, rlegw, {C0 = currentpose.rlw})
  633. end
  634. function cindividualpose(posename, weld, clientpose, clientposenum, clientposedir, speed, backupt)
  635.     if equiptick == backupt then
  636.         tween(speed, posename[2], posename[3], 0, false, 0, weld, {C0 = posename[1]})
  637.         remote:FireClient(owner, "fromserverindividualpose", clientpose, clientposenum, clientposedir, speed)
  638.     end
  639. end
  640.  
  641. function push(fromWHAT, WHAT, force, debriss)
  642.     if WHAT:FindFirstChild("pushedgunv") then WHAT.pushedgunv:Destroy() end
  643.     local v = Instance.new("BodyVelocity", WHAT)
  644.     v.Name = "pushedgunv"
  645.     v.MaxForce = Vector3.new(1/0,0,1/0)
  646.     v.Velocity = (WHAT.Position - fromWHAT).unit*force
  647.     debris:AddItem(v, debriss)
  648. end
  649.  
  650. function pemit(part, color, minsize, maxsize, minlift, maxlift, speed, direction, lifetime)
  651.     pcall(function() --tusk has a particle emitter limit thats why im pcalling
  652.         local em = Instance.new("ParticleEmitter", part)
  653.         em.Color = ColorSequence.new(color)
  654.         em.Texture = "rbxassetid://375847957"
  655.         em.Name = "gemit"
  656.         em.Drag = 10
  657.         em.EmissionDirection = direction
  658.         em.Speed = NumberRange.new(speed)
  659.         em.Rate = 500
  660.         em.Lifetime = NumberRange.new(minlift,maxlift)
  661.         em.SpreadAngle = Vector2.new(-20,20)
  662.         em.Transparency = NumberSequence.new(0.75, 1)
  663.         em.Size = NumberSequence.new(minsize, maxsize)
  664.         task.spawn(function()
  665.             task.wait(lifetime)
  666.             em.Enabled = false
  667.             debris:AddItem(em, 0.5)
  668.         end)
  669.     end)
  670. end
  671.  
  672. function muzzleflash(size, transparency)
  673.     local e = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
  674.     table.insert(rayignore, e)
  675.     e.Enabled = false
  676.     Instance.new("SpecialMesh", e).MeshType = Enum.MeshType.Sphere
  677.     local lig = Instance.new("PointLight", e)
  678.     lig.Brightness = 1-transparency
  679.     lig.Name = "mflash"
  680.     e.Size = size
  681.     e.Name = "muzzleflash"
  682.     e.Transparency = transparency
  683.     e.CanCollide = false
  684.     e.Anchored = true
  685.     e.Material = Enum.Material.Neon
  686.     e.CFrame = lufa.CFrame * CFrame.new((-size.x/2)-0.3,0,0)
  687.     pemit(lufa, Color3.fromRGB(255,255,255), 0.15, 0.35, 0.1, 0.2, 10, "Left", 0.1)
  688.     debris:AddItem(e, 0.025)
  689. end
  690.  
  691. function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, du)
  692.     local connection = Instance.new('BallSocketConstraint', limb)
  693.     local bone = Instance.new("Part", limb)
  694.     connection.LimitsEnabled = true
  695.     connection.Attachment0 = attachementone
  696.     connection.Attachment1 = attachmenttwo
  697.     connection.TwistLimitsEnabled = true
  698.     connection.TwistLowerAngle = twistlower
  699.     connection.TwistUpperAngle = twistupper
  700.     bone:BreakJoints()
  701.     local bonew = Instance.new("Weld", bone)
  702.     bonew.Part0 = limb
  703.     bonew.Part1 = bone
  704.     bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  705.     if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  706.         bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
  707.     else
  708.         bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
  709.     end
  710.     bone.Transparency = 1
  711.     bone.Shape = "Cylinder"
  712.     local noc = Instance.new("NoCollisionConstraint", bone)
  713.     noc.Part0 = attachementone.Parent
  714.     noc.Part1 = attachmenttwo.Parent
  715.     debris:AddItem(bone, du)
  716.     debris:AddItem(connection, du)
  717. end
  718. function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper, du)
  719.     local connection = Instance.new('HingeConstraint', limb)
  720.     local bone = Instance.new("Part", limb)
  721.     connection.LimitsEnabled = true
  722.     connection.Attachment0 = attachementone
  723.     connection.Attachment1 = attachmenttwo
  724.     connection.LimitsEnabled = true
  725.     connection.LowerAngle = lower
  726.     connection.UpperAngle = upper
  727.     bone:BreakJoints()
  728.     local bonew = Instance.new("Weld", bone)
  729.     bonew.Part0 = limb
  730.     bonew.Part1 = bone
  731.     bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  732.     if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  733.         bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
  734.     elseif limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 then
  735.         bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
  736.     elseif limb.Name == "Head" then
  737.         bone.Size = Vector3.new(limb.Size.y/5,limb.Size.z,limb.Size.x)
  738.     end
  739.     bone.Transparency = 1
  740.     bone.Shape = "Cylinder"
  741.     local noc = Instance.new("NoCollisionConstraint", bone)
  742.     noc.Part0 = attachementone.Parent
  743.     noc.Part1 = attachmenttwo.Parent
  744.     debris:AddItem(bone, du)
  745.     debris:AddItem(connection, du)
  746. end
  747. function makeragdolllimbr6(limb, dudetorso, at1pos, at2pos, lowt, upt, duratio)
  748.     local at1 = Instance.new("Attachment", dudetorso)
  749.     local at2 = Instance.new("Attachment", limb)
  750.     at1.Position = at1pos
  751.     at2.Position = at2pos
  752.     makeballconnections(limb, at1, at2, lowt, upt, duratio)
  753.     debris:AddItem(at1, duratio)
  754.     debris:AddItem(at2, duratio)
  755. end
  756.  
  757. function ragdollify(pushpart, ch, duration, dea)
  758.     local chum = ch:FindFirstChildOfClass("Humanoid")
  759.     if chum then
  760.         if not chum.PlatformStand then
  761.             chum.PlatformStand = true
  762.             if dea then
  763.                 for i,v in pairs(ch:GetDescendants()) do
  764.                     if v:IsA("Motor6D") then
  765.                         v:Destroy()
  766.                     end
  767.                 end
  768.                 for i,v in pairs(ragdollbullettable) do
  769.                     local clweld = Instance.new("Weld", v[1])
  770.                     clweld.Part0 = v[1]
  771.                     clweld.Part1 = v[2]
  772.                     clweld.C0 = v[3]
  773.                 end
  774.                 for i,v in pairs(ragdollbullettable) do
  775.                     ragdollbullettable[i] = nil
  776.                 end
  777.                 local hpsc = ch:FindFirstChild("Health")
  778.                 if hpsc then
  779.                     if hpsc:IsA("Script") then
  780.                         hpsc.Disabled = true
  781.                     end
  782.                 end
  783.                 if ch:FindFirstChild("HumanoidRootPart") then
  784.                     ch:FindFirstChild("HumanoidRootPart"):Destroy()
  785.                 end
  786.                 push(pushpart, ch.Head, 10, 0.3)
  787.                 debris:AddItem(ch, ragdolldespawntime)
  788.             elseif ch:FindFirstChild("HumanoidRootPart") then
  789.                 if ch:FindFirstChild("HumanoidRootPart").CanCollide then
  790.                     ch:FindFirstChild("HumanoidRootPart").CanCollide = false
  791.                     coroutine.wrap(function()
  792.                         task.wait(duration)
  793.                         if ch:FindFirstChild("HumanoidRootPart") then
  794.                             ch:FindFirstChild("HumanoidRootPart").CanCollide = true
  795.                         end
  796.                     end)()
  797.                 end
  798.             end
  799.             local savedglue = {}
  800.             local mainpart
  801.             if chum.RigType == Enum.HumanoidRigType.R6 then
  802.                 local chtor = ch.Torso
  803.                 mainpart = chtor
  804.                 if not dea then
  805.                     for i,v in pairs(chtor:GetChildren()) do
  806.                         if v:IsA("Motor6D") then
  807.                             if v.Part0 ~= nil and v.Part1 ~= nil and v.Part1.Name ~= "Head" and v.Part0.Name ~= "HumanoidRootPart" then
  808.                                 table.insert(savedglue, {v, v.Part0, v.Part1})
  809.                                 v.Part1 = nil
  810.                                 v.Part0 = nil
  811.                             end
  812.                         end
  813.                     end
  814.                 end
  815.                 pcall(function()
  816.                     makeragdolllimbr6(ch["Right Arm"], ch.Torso, Vector3.new((ch.Torso.Size.x/2) + (ch.Torso.Size.x/4), (ch.Torso.Size.y/4), 0), Vector3.new(0,ch["Right Arm"].Size.y/4,0), -180, 180, duration)
  817.                 end)
  818.                 pcall(function()
  819.                     makeragdolllimbr6(ch["Left Arm"], ch.Torso, Vector3.new(-(ch.Torso.Size.x/2) - (ch.Torso.Size.x/4), (ch.Torso.Size.y/4), 0), Vector3.new(0,ch["Left Arm"].Size.y/4,0), -180, 180, duration)
  820.                 end)
  821.                 pcall(function()
  822.                     makeragdolllimbr6(ch["Left Leg"], ch.Torso, Vector3.new(-(ch.Torso.Size.x/4), -(ch.Torso.Size.y/2), 0), Vector3.new(0,ch["Left Leg"].Size.y/2,0), -80, 80, duration)
  823.                 end)
  824.                 pcall(function()
  825.                     makeragdolllimbr6(ch["Right Leg"], ch.Torso, Vector3.new((ch.Torso.Size.x/4), -(ch.Torso.Size.y/2), 0), Vector3.new(0,ch["Right Leg"].Size.y/2,0), -80, 80, duration)
  826.                 end)
  827.                 if dea == true and not ch:FindFirstChild("diedbydecapitation") then
  828.                     if ch.Torso:findFirstChild("NeckAttachment") then
  829.                         local headattachment = Instance.new("Attachment", ch.Head)
  830.                         headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
  831.                         makehingeconnections(ch.Head, headattachment, ch.Torso.NeckAttachment, -50, 50, ragdolldespawntime)
  832.                     else
  833.                         local wed = Instance.new("Weld", ch.Head)
  834.                         wed.Part1 = ch.Head
  835.                         wed.Part0 = ch.Torso
  836.                         wed.C0 = CFrame.new(0,(ch.Torso.Size.y/2)+(ch.Head.Size.y/2),0)
  837.                     end
  838.                 end
  839.                 if not dea then
  840.                     coroutine.wrap(function()
  841.                         task.wait(duration)
  842.                         for i,v in pairs(savedglue) do
  843.                             v[1].Part0 = v[2]
  844.                             v[1].Part1 = v[3]
  845.                             savedglue[i] = nil
  846.                         end
  847.                         chum.PlatformStand = false
  848.                     end)()
  849.                 end
  850.             elseif chum.RigType == Enum.HumanoidRigType.R15 then
  851.                 local chuppertor = ch.UpperTorso
  852.                 mainpart = chuppertor
  853.                 if not dea then
  854.                     for i,v in pairs(ch:GetDescendants()) do
  855.                         if v:IsA("Motor6D") then
  856.                             if v.Part0 ~= nil and v.Part1 ~= nil and v.Part1.Name ~= "Head" and v.Part0.Name ~= "HumanoidRootPart" then
  857.                                 table.insert(savedglue, {v, v.Part0, v.Part1})
  858.                                 v.Part1 = nil
  859.                                 v.Part0 = nil
  860.                             end
  861.                         end
  862.                     end
  863.                 end
  864.                 if dea == true and not ch:FindFirstChild("diedbydecapitation") then
  865.                     if ch.UpperTorso:findFirstChild("NeckAttachment") then
  866.                         local HeadAttachment = Instance.new("Attachment", ch.Head)
  867.                         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  868.                         makehingeconnections(ch.Head, HeadAttachment, ch.UpperTorso.NeckAttachment, -50, 50, ragdolldespawntime)
  869.                     else
  870.                         local wed = Instance.new("Weld", ch.Head)
  871.                         wed.Part1 = ch.Head
  872.                         wed.Part0 = ch.UpperTorso
  873.                         wed.C0 = CFrame.new(0,(ch.UpperTorso.Size.y/2)+(ch.Head.Size.y/2),0)
  874.                     end
  875.                 end
  876.                 pcall(function()
  877.                     makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
  878.                     makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
  879.                     makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
  880.                     makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
  881.                     --
  882.                     makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
  883.                     makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
  884.                     makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
  885.                     --
  886.                     makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
  887.                     makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
  888.                     makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
  889.                     --
  890.                     makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
  891.                     makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
  892.                     makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
  893.                 end)
  894.                 if not dea then
  895.                     coroutine.wrap(function()
  896.                         task.wait(duration)
  897.                         for i,v in pairs(savedglue) do
  898.                             v[1].Part0 = v[2]
  899.                             v[1].Part1 = v[3]
  900.                             savedglue[i] = nil
  901.                         end
  902.                         chum.PlatformStand = false
  903.                     end)()
  904.                 end
  905.             end
  906.             if dea then
  907.                 for i,v in pairs(ch:GetChildren()) do
  908.                     if v:IsA("Accessory") then
  909.                         if v:FindFirstChild("Handle") then
  910.                             local attachment1 = v.Handle:FindFirstChildOfClass("Attachment")
  911.                             if attachment1 then
  912.                                 for q,w in pairs(ch:GetChildren()) do
  913.                                     if w:IsA("Part") then
  914.                                         local attachment2 = w:FindFirstChild(attachment1.Name)
  915.                                         if attachment2 then
  916.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  917.                                             hinge.Attachment0 = attachment1
  918.                                             hinge.Attachment1 = attachment2
  919.                                             hinge.LimitsEnabled = true
  920.                                             hinge.LowerAngle = 0
  921.                                             hinge.UpperAngle = 0
  922.                                         end
  923.                                     end
  924.                                 end
  925.                             end
  926.                         end
  927.                     end
  928.                 end
  929.             end
  930.         end
  931.     end
  932. end
  933.  
  934. function getwalldepth(rhitpos, dir, penamount, wall)
  935.     local rparams = RaycastParams.new()
  936.     rparams.FilterType = Enum.RaycastFilterType.Whitelist
  937.     rparams.FilterDescendantsInstances = {wall}
  938.     local startpos = rhitpos + (rhitpos - dir).unit * penamount
  939.     local castdir = startpos + (startpos - rhitpos).unit * -((startpos - rhitpos).magnitude)
  940.     local depthray = workspace:Raycast(startpos, (startpos - castdir).unit*-penamount, rparams)
  941.     --[[local l = Instance.new('Part', workspace)
  942.     l.Size = Vector3.new(0.4,0.4,0.4)
  943.     l.CFrame = CFrame.new(startpos)
  944.     l.BrickColor = BrickColor.Red()
  945.     l.Material = "Neon"
  946.     l.Anchored = true
  947.     local l = Instance.new('Part', workspace)
  948.     l.Size = Vector3.new(0.4,0.4,0.4)
  949.     l.CFrame = CFrame.new(castdir)
  950.     l.BrickColor = BrickColor.new("New Yeller")
  951.     l.Material = "Neon"
  952.     l.Anchored = true--]]
  953.     if depthray then
  954.         --[[local l = Instance.new('Part', workspace)
  955.         l.Size = Vector3.new(0.4,0.4,0.4)
  956.         l.CFrame = CFrame.new(depthray.Position)
  957.         l.BrickColor = BrickColor.new("Lime green")
  958.         l.Material = "Neon"
  959.         l.Anchored = true--]]
  960.         return true, depthray.Position, startpos, depthray.Normal
  961.     end
  962. end
  963.  
  964. function dropshell()
  965.     local shell = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
  966.     table.insert(rayignore, shell)
  967.     shell.Enabled = false
  968.     shell.Name = "shell;"
  969.     shell.Shape = "Cylinder"
  970.     shell.Size = Vector3.new(0.25,0.1,0.1)
  971.     shell.BrickColor = BrickColor.new("New Yeller")
  972.     shell.Material = "Glass"
  973.     shell.Anchored = true
  974.     shell.CanCollide = false
  975.     shell.CFrame = boltpart.CFrame * CFrame.new(0.1,0,0)
  976.     shell:BreakJoints()
  977.     local shellfunc
  978.     local shelltimepassed = 0
  979.     local playedshells = false
  980.     local currentshelly = math.random(1,10)/5
  981.     local currentshellx = math.random(8,15)
  982.     local ejectlookv = boltpart.CFrame.upVector
  983.     local ejectrightv = boltpart.CFrame.rightVector
  984.     shellfunc = runservice.Stepped:Connect(function(_, delta)
  985.         shelltimepassed = shelltimepassed + delta
  986.         shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectlookv)
  987.             * CFrame.new(0,currentshelly*delta,-currentshellx*delta)
  988.         shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectrightv)
  989.             * CFrame.Angles(0,math.pi/2,0)
  990.         currentshelly = currentshelly - delta*shellfallspeed
  991.         if shelltimepassed > shellflytime then
  992.             shell:Destroy()
  993.             shellfunc:Disconnect()
  994.         elseif shelltimepassed > shellflytime/2 and not playedshells then
  995.             playedshells = true
  996.             playsound(shellsound, 0, 1+mathr(-10,10)/65, 0.5)
  997.         end
  998.     end)
  999. end
  1000.  
  1001. function pullbolt(btick)
  1002.     cpose(poses.equip[1], "equip", 1, 0.25, btick)
  1003.     task.wait(0.25)
  1004.     if state ~= "unequipped" then
  1005.         playsound(boltpsound, 0, 1+mathr(-10,10)/70, 0.5)
  1006.     end
  1007.     cpose(poses.equip[2], "equip", 2, 0.15, btick)
  1008.     task.wait(0.15)
  1009.     if equiptick == btick then
  1010.         if bchambered.Value > 0 then
  1011.             bchambered.Value = bchambered.Value - 1
  1012.             dropshell()
  1013.         end
  1014.         if binmag.Value > 0 then
  1015.             bchambered.Value = bchambered.Value + 1
  1016.             binmag.Value = binmag.Value - 1
  1017.         end
  1018.     end
  1019.     if adsing then
  1020.         cpose(poses.ads[1], "aim", 1, 0.4, btick)
  1021.     else
  1022.         cpose(poses.equip[3], "equip", 3, 0.3, btick)
  1023.     end
  1024. end
  1025.  
  1026. function bullethole(rhitpos, normal, hitthing)
  1027.     local hol = Instance.new("SpawnLocation", workspace) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
  1028.     table.insert(rayignore, hol)
  1029.     hol.Enabled = false
  1030.     hol.CanCollide = false
  1031.     hol.Color = Color3.fromRGB()
  1032.     hol.Shape = "Cylinder"
  1033.     hol.Name = "bhole"
  1034.     hol.Size = Vector3.new(0.02,0.2,0.2)
  1035.     hol:BreakJoints()
  1036.     hol.CFrame = CFrame.new(rhitpos, rhitpos+normal) * CFrame.Angles(0,math.pi/2,0)
  1037.     debris:AddItem(hol, bulletholetime)
  1038.     if not hitthing.Anchored or hitthing.Anchored and weldbholestoanchoredparts then
  1039.         local holwel = Instance.new("Weld", hitthing)
  1040.         holwel.C0 = hitthing.CFrame:ToObjectSpace(hol.CFrame)
  1041.         holwel.Part0 = hitthing
  1042.         holwel.Name = "bholeweld"
  1043.         holwel.Part1 = hol
  1044.         if hitthing.Parent:FindFirstChildOfClass("Humanoid") then
  1045.             hol.BrickColor = BrickColor.new("Maroon")
  1046.             hol.Material = "Pebble"
  1047.             pemit(hol, Color3.fromRGB(100,0,0), 0.15, 0.35, 0.1, 0.2, 10, "Right", 0.1)
  1048.         else
  1049.             pemit(hol, hitthing.Color, 0.15, 0.35, 0.1, 0.2, 10, "Right", 0.1)
  1050.         end
  1051.         debris:AddItem(holwel, bulletholetime)
  1052.     else
  1053.         hol.Anchored = true
  1054.     end
  1055.     pcall(function() --vsb sound limit workaround
  1056.         concretesoundtick = tick()
  1057.         local backuptickconcrete = concretesoundtick
  1058.         hitconcrete.SoundId = "rbxassetid://"..hitcsounds[math.random(1,#hitcsounds)]
  1059.         if not table.find(soundsdisabledfromrefit, hitconcrete.Name) then
  1060.             table.insert(soundsdisabledfromrefit, hitconcrete.Name)
  1061.         end
  1062.         hitconcrete.Parent = hol
  1063.         hitconcrete:Play()
  1064.         task.spawn(function()
  1065.             task.wait(0.5)
  1066.             if concretesoundtick == backuptickconcrete then
  1067.                 hitconcrete.Parent = handle
  1068.                 hitconcrete:Stop()
  1069.                 table.remove(soundsdisabledfromrefit, table.find(soundsdisabledfromrefit, hitconcrete.Name))
  1070.             end
  1071.         end)
  1072.     end)
  1073. end
  1074.  
  1075. function clonemag(parent, name)
  1076.     local clonedmag = magmodel:Clone()
  1077.     local clonedmagpart = clonedmag:WaitForChild("magpart")
  1078.     clonedmag.Name = name
  1079.     clonedmag.Parent = parent
  1080.     return clonedmag, clonedmagpart
  1081. end
  1082.  
  1083. remote.OnServerEvent:Connect(function(WHO, WHAT, param1)
  1084.     if WHO == owner then
  1085.         local backupremottick = equiptick
  1086.         local ownercharhum = character:FindFirstChildOfClass("Humanoid")
  1087.         if WHAT == "1" then
  1088.             headrotationx = param1
  1089.             local tiltvalue = math.clamp(headrotationx, -1, 0)
  1090.             tween(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, headw, {C0 = CFrame.new(0,1,0)  * headoffset.C0 * CFrame.Angles(headrotationx,0,tiltvalue/1.5) * CFrame.new(0,0.5,0)})
  1091.         elseif WHAT == "2" and state == "idle" and tick() > ((lasttimeshot + gunspeed.Value) - 0.008) and bchambered.Value > 0 then
  1092.             lasttimeshot = tick()
  1093.             local hrpv = hrp.Velocity.Magnitude
  1094.             --
  1095.             remote:FireClient(owner, "recoil")
  1096.             muzzleflash(Vector3.new(2,0.6,0.6), math.random(1,15)/10)
  1097.             --
  1098.             if adsing then
  1099.                 cpose(poses.ads[2], "shoot", 1, 0.07, backupremottick)
  1100.             else
  1101.                 cpose(poses.shoot[1], "shoot", 1, 0.07, backupremottick)
  1102.             end
  1103.             --
  1104.             playsound(shootsound, 0, 1+mathr(-10,10)/65, 1)
  1105.             playsound(boltpsound, 0, 1.5+mathr(-10,10)/65, 1.5)
  1106.             --the bullet
  1107.             dropshell()
  1108.             bchambered.Value = bchambered.Value - 1
  1109.             local hitsomething = false
  1110.             local currentbspeed = bspeed.Value
  1111.             local currentbYspeed = 0
  1112.             local bulletefunction
  1113.             local bullett = Instance.new("SpawnLocation", workspace) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
  1114.             table.insert(rayignore, bullett)
  1115.             bullett.Enabled = false
  1116.             Instance.new("SpecialMesh", bullett).MeshType = Enum.MeshType.Sphere
  1117.             bullett.Size = Vector3.new(bspeed.Value/5,0.25,0.25)
  1118.             bullett.Transparency = 0.3
  1119.             bullett.CanCollide = false
  1120.             bullett.Anchored = true
  1121.             bullett.Name = "bull"
  1122.             bullett.Material = Enum.Material.Neon
  1123.             bullett.CFrame = CFrame.new(lufa.Position, param1)
  1124.                 * CFrame.Angles(math.rad(math.random(-hrpv,hrpv)/10),(-math.pi/2)+math.rad(math.random(-hrpv,hrpv)/10),0)
  1125.                 * CFrame.new(-bullett.Size.x/2,0,0)
  1126.             local battach = Instance.new("Attachment", bullett)
  1127.             battach.Position = Vector3.new(bullett.Size.x/2,0,0)
  1128.             battach.Visible = false
  1129.             local currentpenamount = maxpen.Value
  1130.             local pushfrompos = bullett.CFrame.p
  1131.             local rparam = RaycastParams.new()
  1132.             rparam.FilterDescendantsInstances = rayignore
  1133.             rparam.FilterType = Enum.RaycastFilterType.Blacklist
  1134.             bulletefunction = runservice.Stepped:Connect(function(_,b)
  1135.                 local currentlookv = bullett.CFrame.rightVector
  1136.                 local raye = workspace:Raycast(battach.WorldPosition, (bullett.CFrame.rightVector*(-currentbspeed*b*31)), rparam)
  1137.                 local rpos = battach.Position + (bullett.CFrame.rightVector*(-currentbspeed*b*31))
  1138.                 --[[local l = Instance.new('Part', character)
  1139.                 l.Size = Vector3.new(0.2,0.2,(battach.WorldPosition - rpos).magnitude)
  1140.                 l.Material = "Neon"
  1141.                 l.BrickColor = BrickColor.Red()
  1142.                 l.CFrame = CFrame.new(Vector3.new(), battach.WorldPosition+rpos) * CFrame.new(0,0,(battach.WorldPosition - rpos).magnitude/2)
  1143.                 l.Anchored = true
  1144.                 game.Debris:AddItem(l, 0.05)--]]
  1145.                 --print((battach.WorldPosition - (battach.WorldPosition + bullett.CFrame.rightVector*(-currentbspeed*b*30))).magnitude)
  1146.                 if raye then
  1147.                     --print(raye.Instance.Parent == table.find(rayignore, raye.Instance.Parent))
  1148.                     --print("HIT "..raye.Instance.Name.." "..raye.Instance.Parent.Name)
  1149.                     local destroybullet = false
  1150.                     local hithum = raye.Instance.Parent:FindFirstChildOfClass("Humanoid")
  1151.                     bullethole(raye.Position, raye.Normal, raye.Instance)
  1152.                     if hithum then
  1153.                         currentpenamount = currentpenamount + 0.3
  1154.                         local takedamage = damagelimbs[raye.Instance.Name]
  1155.                         if not takedamage then
  1156.                             takedamage = 15
  1157.                         end
  1158.                         if hithum.Health > 2000 then
  1159.                             hithum.MaxHealth = 500
  1160.                             hithum.Health = 500
  1161.                         end
  1162.                         if hithum.Health <= takedamage and hithum.Health > 0 then
  1163.                             hithum.Parent.Archivable = true
  1164.                             for i,v in pairs(hithum.Parent:GetDescendants()) do
  1165.                                 if v:IsA("Sound") then
  1166.                                     v:Destroy()
  1167.                                 elseif v:IsA("Weld") and v.Name == "bholeweld" then
  1168.                                     table.insert(ragdollbullettable, {v.Part0, v.Part1, v.C0})
  1169.                                 end
  1170.                             end
  1171.                             hithum.Health = 0
  1172.                             local clr = hithum.Parent:Clone()
  1173.                             for i,v in pairs(hithum.Parent:GetChildren()) do
  1174.                                 if v:IsA("BasePart") or v:IsA("ForceField") or v:IsA("Accessory") or v:IsA("Hat") then
  1175.                                     v:Destroy()
  1176.                                 end
  1177.                             end
  1178.                             clr.Parent = workspace
  1179.                             ragdollify(raye.Position, clr, ragdolldespawntime, true)
  1180.                         elseif raye.Instance.Name == "Head" then
  1181.                             push(raye.Position, raye.Instance, 10, 0.3)
  1182.                             ragdollify(raye.Position, hithum.Parent, 0.8, false)
  1183.                         end
  1184.                         hithum.Health = hithum.Health - takedamage
  1185.                     end
  1186.                     local canpierce, pierceendpoint, piercelookpoint, piercenormal = getwalldepth(raye.Position, battach.WorldPosition + bullett.CFrame.rightVector, currentpenamount, raye.Instance)
  1187.                     if hithum then
  1188.                         currentpenamount = currentpenamount - 0.3
  1189.                     end
  1190.                     if canpierce then
  1191.                         local wallthicknessmag = (raye.Position - pierceendpoint).magnitude
  1192.                         bullett.CFrame = CFrame.new(pierceendpoint, piercelookpoint) * CFrame.Angles(math.random(-20,20)/400,(-math.pi/2)+math.random(-20,20)/400,0) * CFrame.new(-bullett.Size.x/1.9,0,0)
  1193.                         currentpenamount = currentpenamount - wallthicknessmag
  1194.                         currentbspeed = currentbspeed - wallthicknessmag*5
  1195.                         if currentbspeed > 0 then
  1196.                             bullethole(pierceendpoint, piercenormal, raye.Instance)
  1197.                         end
  1198.                     elseif currentbspeed > 0 and currentpenamount > 0 and not hithum then --deflect
  1199.                         local reflec = raye.Position - currentlookv - ((1+(math.random(1,10)/10)) * currentlookv:Dot(raye.Normal) * -raye.Normal)
  1200.                         pushfrompos = reflec
  1201.                         bullett.CFrame = CFrame.new(raye.Position, reflec) * CFrame.Angles(0,-math.pi/2,0) * CFrame.new(-bullett.Size.x/2,0,0)
  1202.                         currentbspeed = currentbspeed - (currentbspeed/10)
  1203.                         currentpenamount = currentpenamount - (0.25+(currentpenamount)/10)
  1204.                     else
  1205.                         destroybullet = true
  1206.                     end
  1207.                     if destroybullet then
  1208.                         bullett:Destroy()
  1209.                         bulletefunction:Disconnect()
  1210.                     end
  1211.                 else
  1212.                     bullett.CFrame = bullett.CFrame * CFrame.new((-currentbspeed)*b*30,0,0)
  1213.                     if currentbYspeed < 3 then
  1214.                         bullett.CFrame = bullett.CFrame * CFrame.Angles(0,0,(currentbYspeed/10)*b*30)
  1215.                     end
  1216.                 end
  1217.                 currentbspeed = currentbspeed - (10*b)
  1218.                 currentbYspeed = currentbYspeed + (0.25*b)
  1219.                 bullett.Size = Vector3.new(currentbspeed/5,0.25,0.25)
  1220.                 battach.Position = Vector3.new(bullett.Size.x/2,0,0)
  1221.                 if currentbspeed < 0 then
  1222.                     bullett:Destroy()
  1223.                     bulletefunction:Disconnect()
  1224.                 end
  1225.             end)
  1226.             --
  1227.             task.wait(0.07)
  1228.             --
  1229.             if binmag.Value > 0 then
  1230.                 bchambered.Value = bchambered.Value + 1
  1231.                 binmag.Value = binmag.Value - 1
  1232.             end
  1233.             if adsing then
  1234.                 cpose(poses.ads[1], "shoot", 2, 0.05, backupremottick)
  1235.             else
  1236.                 cpose(poses.shoot[2], "shoot", 2, 0.1, backupremottick)
  1237.             end
  1238.             --
  1239.             task.wait(gunspeed.Value-0.07)
  1240.         elseif WHAT == "3" and state == "idle" then
  1241.             state = "pullingbolt"
  1242.             pullbolt(backupremottick)
  1243.             state = "idle"
  1244.         elseif WHAT == "4" and state == "idle" then
  1245.             state = "reloading"
  1246.             cpose(poses.reload[1], "reload", 1, 0.3, backupremottick)
  1247.             task.wait(0.3)
  1248.             if magleft.Value > 0 and state == "reloading" then
  1249.                 playsound(magreachsound, 0, 1+mathr(-10,10)/65, 2.5)
  1250.                 local handmagmo, handmagpart = clonemag(gunmodel, "reloadserver")
  1251.                 local handmagw = Instance.new("Weld", handmagmo)
  1252.                 handmagw.Name = "handmagweld"
  1253.                 handmagw.Part0 = mainpart
  1254.                 handmagw.Part1 = handmagpart
  1255.                 handmagw.C0 = CFrame.new(0.771263123, -2.07442856, -2.45114708, 0.108410954, 0.822345078, -0.558561325, -0.0455624163, 0.565389991, 0.823553741, 0.993062019, -0.0638353601, 0.0987635553)
  1256.                 cpose(poses.reload[2], "reload", 2, 0.25, backupremottick)
  1257.                 cindividualpose(poses.reloadmag[1].mag, handmagw, "reloadmag", 1, "mag", 0.25, backupremottick)
  1258.                 task.wait(0.25)
  1259.                 if state == "reloading" then
  1260.                     playsound(magoutsound, 0, 1+mathr(-10,10)/65, 0.8)
  1261.                     cpose(poses.reload[3], "reload", 3, 0.1, backupremottick)
  1262.                     cindividualpose(poses.reloadmag[2].mag, handmagw, "reloadmag", 2, "mag", 0.1, backupremottick)
  1263.                     local flingmagmo, flingmagpart = clonemag(gunmodel, "throwserver")
  1264.                     flingmagpart:SetNetworkOwner(owner)
  1265.                     local magv = Instance.new("BodyVelocity", flingmagpart)
  1266.                     magv.MaxForce = Vector3.new(1/0,1/0,1/0)
  1267.                     magv.Velocity = hrp.CFrame.lookVector*math.random(15,20)
  1268.                     local magav = Instance.new("BodyAngularVelocity", flingmagpart)
  1269.                     magav.MaxTorque = Vector3.new(1/0,1/0,1/0)
  1270.                     magav.AngularVelocity = hrp.CFrame.rightVector*math.random(15,20)
  1271.                     debris:AddItem(magv, 0.1)
  1272.                     debris:AddItem(flingmagmo, 0.5)
  1273.                     for i,v in pairs(magmodel:GetChildren()) do
  1274.                         if v:IsA("BasePart") then
  1275.                             v.Transparency = 1
  1276.                         end
  1277.                     end
  1278.                 end
  1279.                 task.wait(0.1)
  1280.                 cpose(poses.reload[4], "reload", 4, 0.15, backupremottick)
  1281.                 cindividualpose(poses.reloadmag[3].mag, handmagw, "reloadmag", 3, "mag", 0.15, backupremottick)
  1282.                 task.wait(0.15)
  1283.                 cpose(poses.reload[5], "reload", 5, 0.2, backupremottick)
  1284.                 cindividualpose(poses.reloadmag[4].mag, handmagw, "reloadmag", 4, "mag", 0.2, backupremottick)
  1285.                 if state == "reloading" then
  1286.                     playsound(maginsound, 0, 1+mathr(-10,10)/65, 0.8)
  1287.                 end
  1288.                 task.wait(0.2)
  1289.                 handmagmo:Destroy()
  1290.                 for i,v in pairs(magmodel:GetChildren()) do
  1291.                     if v:IsA("BasePart") then
  1292.                         v.Transparency = 0
  1293.                     end
  1294.                 end
  1295.                 if equiptick == backupremottick then
  1296.                     magleft.Value = magleft.Value - 1
  1297.                     binmag.Value = maxmagcap.Value
  1298.                 end
  1299.             end
  1300.             if bchambered.Value <= 0 then
  1301.                 pullbolt(backupremottick)
  1302.                 task.wait(0.25)
  1303.             else
  1304.                 if adsing then
  1305.                     cpose(poses.ads[1], "aim", 1, 0.45, backupremottick)
  1306.                 else
  1307.                     cpose(poses.equip[3], "equip", 3, 0.45, backupremottick)
  1308.                 end
  1309.             end
  1310.             state = "idle"
  1311.         elseif WHAT == "5" and state ~= "unequipped" then
  1312.             adsing = param1
  1313.             --if state == "idle" then
  1314.                 if adsing then
  1315.                     cpose(poses.ads[1], "aim", 1, 0.4, backupremottick)
  1316.                     savedws = 16
  1317.                     ownercharhum.WalkSpeed = 10
  1318.                 else
  1319.                     cpose(poses.equip[3], "equip", 3, 0.3, backupremottick)
  1320.                     if not sprinte then
  1321.                         ownercharhum.WalkSpeed = savedws
  1322.                     end
  1323.                 end
  1324.             --end
  1325.         elseif WHAT == "6" and state ~= "unequipped" then
  1326.             sprinte = param1
  1327.             if sprinte then
  1328.                 savedws = 16
  1329.                 ownercharhum.WalkSpeed = 21
  1330.             else
  1331.                 ownercharhum.WalkSpeed = savedws
  1332.             end
  1333.         end
  1334.     end
  1335. end)
  1336.  
  1337. tool.Equipped:Connect(function()
  1338.     state = "equipping"
  1339.     equiptick = tick()
  1340.     local backuptick = equiptick
  1341.     owner = players:GetPlayerFromCharacter(tool.Parent)
  1342.     character = owner.Character
  1343.     table.insert(rayignore, character)
  1344.     torso = character:WaitForChild("Torso")
  1345.     larm = character:FindFirstChild("Left Arm")
  1346.     rarm = character:FindFirstChild("Right Arm")
  1347.     lleg = character:FindFirstChild("Left Leg")
  1348.     rleg = character:FindFirstChild("Right Leg")
  1349.     head = character:FindFirstChild("Head")
  1350.     hrp = character:FindFirstChild("HumanoidRootPart")
  1351.     --anims sound and stuff
  1352.     rightgrip = weld(rarm, handle, "RightGrip", CFrame.new(-0.612442017, -0.0641784668, 0.243187428, -0.190242305, 0.981636524, -0.0140367029, 0.97735244, 0.188023433, -0.0971002579, -0.0926780254, -0.0321914665, -0.99517554))
  1353.     headw = weld(torso, head, "HeadWeld", CFrame.new(0,1.5,0))
  1354.     larmw = weld(head, larm, "LeftArmWeld", CFrame.new(-1.5,-1.5,0))
  1355.     rarmw = weld(head, rarm, "RightArmWeld", CFrame.new(1.5,-1.5,0))
  1356.     torsow = weld(hrp, torso, "HumanoidRootPartWeld", CFrame.new())
  1357.     if bchambered.Value <= 0 and binmag.Value > 0 then
  1358.         pullbolt(backuptick)
  1359.     else
  1360.         cpose(poses.equip[3], "equip", 3, 0.3, backuptick)
  1361.         task.wait(0.25)
  1362.     end
  1363.     if state == "equipping" and equiptick == backuptick then
  1364.         state = "idle"
  1365.     end
  1366. end)
  1367. tool.Unequipped:Connect(function()
  1368.     state = "unequipped"
  1369.     if adsing or sprinte then
  1370.         character:FindFirstChildOfClass("Humanoid").WalkSpeed = savedws
  1371.     end
  1372.     adsing = false
  1373.     table.remove(rayignore, table.find(rayignore, character))
  1374.     pcall(function()
  1375.         headw.Parent = nil
  1376.     end)
  1377.     pcall(function()
  1378.         larmw.Parent = nil
  1379.     end)
  1380.     pcall(function()
  1381.         torsow.Parent = nil
  1382.     end)
  1383.     pcall(function()
  1384.         rarmw.Parent = nil
  1385.     end)
  1386.     pcall(function()
  1387.         rightgrip.Parent = nil
  1388.     end)
  1389.     pcall(function()
  1390.         --llegw.Parent = nil
  1391.     end)
  1392.     pcall(function()
  1393.         --rlegw.Parent = nil
  1394.     end)
  1395. end)
  1396. end))
  1397. LocalScript2.Name = "client"
  1398. LocalScript2.Parent = Tool0
  1399. table.insert(cors,sandbox(LocalScript2,function()
  1400. end))
  1401. RemoteEvent3.Name = "gunremote"
  1402. RemoteEvent3.Parent = Tool0
  1403. Model4.Name = "GunModel"
  1404. Model4.Parent = Tool0
  1405. Part5.Parent = Model4
  1406. Part5.CFrame = CFrame.new(-63.8624954, 3.07564092, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1407. Part5.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1408. Part5.Position = Vector3.new(-63.862495422363, 3.0756409168243, -54.175640106201)
  1409. Part5.Rotation = Vector3.new(-90, 0, 0)
  1410. Part5.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1411. Part5.Size = Vector3.new(0.12499971687794, 0.20000000298023, 0.20000000298023)
  1412. Part5.BottomSurface = Enum.SurfaceType.Smooth
  1413. Part5.BrickColor = BrickColor.new("Smoky grey")
  1414. Part5.CanCollide = false
  1415. Part5.Material = Enum.Material.Metal
  1416. Part5.TopSurface = Enum.SurfaceType.Smooth
  1417. Part5.brickColor = BrickColor.new("Smoky grey")
  1418. Part6.Parent = Model4
  1419. Part6.CFrame = CFrame.new(-65.6743927, 3.14950848, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1420. Part6.Orientation = Vector3.new(5, -90, 90)
  1421. Part6.Position = Vector3.new(-65.674392700195, 3.1495084762573, -54.175998687744)
  1422. Part6.Rotation = Vector3.new(90, -85, -180)
  1423. Part6.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1424. Part6.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1425. Part6.BottomSurface = Enum.SurfaceType.Smooth
  1426. Part6.BrickColor = BrickColor.new("Sand green")
  1427. Part6.CanCollide = false
  1428. Part6.Material = Enum.Material.Metal
  1429. Part6.TopSurface = Enum.SurfaceType.Smooth
  1430. Part6.brickColor = BrickColor.new("Sand green")
  1431. Part7.Parent = Model4
  1432. Part7.CFrame = CFrame.new(-67.75, 3.26064062, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1433. Part7.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1434. Part7.Position = Vector3.new(-67.75, 3.2606406211853, -54.175640106201)
  1435. Part7.Rotation = Vector3.new(-90, 0, 0)
  1436. Part7.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1437. Part7.Size = Vector3.new(0.29999947547913, 0.14760001003742, 0.029999997466803)
  1438. Part7.BottomSurface = Enum.SurfaceType.Smooth
  1439. Part7.BrickColor = BrickColor.new("Smoky grey")
  1440. Part7.CanCollide = false
  1441. Part7.Material = Enum.Material.Metal
  1442. Part7.TopSurface = Enum.SurfaceType.Smooth
  1443. Part7.brickColor = BrickColor.new("Smoky grey")
  1444. Part8.Parent = Model4
  1445. Part8.CFrame = CFrame.new(-63.8624992, 3.20064116, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1446. Part8.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1447. Part8.Position = Vector3.new(-63.862499237061, 3.2006411552429, -54.175640106201)
  1448. Part8.Rotation = Vector3.new(-90, 0, 0)
  1449. Part8.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1450. Part8.Size = Vector3.new(0.12499971687794, 0.15000000596046, 0.050000000745058)
  1451. Part8.BottomSurface = Enum.SurfaceType.Smooth
  1452. Part8.BrickColor = BrickColor.new("Smoky grey")
  1453. Part8.CanCollide = false
  1454. Part8.Material = Enum.Material.Metal
  1455. Part8.TopSurface = Enum.SurfaceType.Smooth
  1456. Part8.brickColor = BrickColor.new("Smoky grey")
  1457. Part9.Parent = Model4
  1458. Part9.CFrame = CFrame.new(-64.0680313, 3.30931807, -54.1756401, 0.642787397, 0, -0.766044617, 0.766044617, 0, 0.642787397, 0, -1, 0)
  1459. Part9.Orientation = Vector3.new(-40, -90, 90)
  1460. Part9.Position = Vector3.new(-64.068031311035, 3.3093180656433, -54.175640106201)
  1461. Part9.Rotation = Vector3.new(-90, -50, 0)
  1462. Part9.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1463. Part9.Size = Vector3.new(0.17499971389771, 0.20000000298023, 0.24920001626015)
  1464. Part9.BottomSurface = Enum.SurfaceType.Smooth
  1465. Part9.BrickColor = BrickColor.new("Smoky grey")
  1466. Part9.CanCollide = false
  1467. Part9.Material = Enum.Material.Metal
  1468. Part9.TopSurface = Enum.SurfaceType.Smooth
  1469. Part9.brickColor = BrickColor.new("Smoky grey")
  1470. Part10.Parent = Model4
  1471. Part10.CFrame = CFrame.new(-66.1144028, 3.14950585, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1472. Part10.Orientation = Vector3.new(5, -90, 90)
  1473. Part10.Position = Vector3.new(-66.114402770996, 3.149505853653, -54.175998687744)
  1474. Part10.Rotation = Vector3.new(90, -85, -180)
  1475. Part10.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1476. Part10.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1477. Part10.BottomSurface = Enum.SurfaceType.Smooth
  1478. Part10.BrickColor = BrickColor.new("Sand green")
  1479. Part10.CanCollide = false
  1480. Part10.Material = Enum.Material.Metal
  1481. Part10.TopSurface = Enum.SurfaceType.Smooth
  1482. Part10.brickColor = BrickColor.new("Sand green")
  1483. Part11.Parent = Model4
  1484. Part11.CFrame = CFrame.new(-66.0744019, 3.149508, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1485. Part11.Orientation = Vector3.new(5, -90, 90)
  1486. Part11.Position = Vector3.new(-66.074401855469, 3.1495079994202, -54.175998687744)
  1487. Part11.Rotation = Vector3.new(90, -85, -180)
  1488. Part11.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1489. Part11.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1490. Part11.BottomSurface = Enum.SurfaceType.Smooth
  1491. Part11.BrickColor = BrickColor.new("Sand green")
  1492. Part11.CanCollide = false
  1493. Part11.Material = Enum.Material.Metal
  1494. Part11.TopSurface = Enum.SurfaceType.Smooth
  1495. Part11.brickColor = BrickColor.new("Sand green")
  1496. Part12.Parent = Model4
  1497. Part12.CFrame = CFrame.new(-66.0344009, 3.14950848, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1498. Part12.Orientation = Vector3.new(5, -90, 90)
  1499. Part12.Position = Vector3.new(-66.034400939941, 3.1495084762573, -54.175998687744)
  1500. Part12.Rotation = Vector3.new(90, -85, -180)
  1501. Part12.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1502. Part12.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1503. Part12.BottomSurface = Enum.SurfaceType.Smooth
  1504. Part12.BrickColor = BrickColor.new("Sand green")
  1505. Part12.CanCollide = false
  1506. Part12.Material = Enum.Material.Metal
  1507. Part12.TopSurface = Enum.SurfaceType.Smooth
  1508. Part12.brickColor = BrickColor.new("Sand green")
  1509. Part13.Parent = Model4
  1510. Part13.CFrame = CFrame.new(-65.9944, 3.14950705, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1511. Part13.Orientation = Vector3.new(5, -90, 90)
  1512. Part13.Position = Vector3.new(-65.994400024414, 3.1495070457458, -54.175998687744)
  1513. Part13.Rotation = Vector3.new(90, -85, -180)
  1514. Part13.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1515. Part13.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1516. Part13.BottomSurface = Enum.SurfaceType.Smooth
  1517. Part13.BrickColor = BrickColor.new("Sand green")
  1518. Part13.CanCollide = false
  1519. Part13.Material = Enum.Material.Metal
  1520. Part13.TopSurface = Enum.SurfaceType.Smooth
  1521. Part13.brickColor = BrickColor.new("Sand green")
  1522. Part14.Parent = Model4
  1523. Part14.CFrame = CFrame.new(-65.9543991, 3.14950895, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1524. Part14.Orientation = Vector3.new(5, -90, 90)
  1525. Part14.Position = Vector3.new(-65.954399108887, 3.1495089530945, -54.175998687744)
  1526. Part14.Rotation = Vector3.new(90, -85, -180)
  1527. Part14.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1528. Part14.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1529. Part14.BottomSurface = Enum.SurfaceType.Smooth
  1530. Part14.BrickColor = BrickColor.new("Sand green")
  1531. Part14.CanCollide = false
  1532. Part14.Material = Enum.Material.Metal
  1533. Part14.TopSurface = Enum.SurfaceType.Smooth
  1534. Part14.brickColor = BrickColor.new("Sand green")
  1535. Part15.Parent = Model4
  1536. Part15.CFrame = CFrame.new(-65.9143982, 3.14950609, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1537. Part15.Orientation = Vector3.new(5, -90, 90)
  1538. Part15.Position = Vector3.new(-65.914398193359, 3.1495060920715, -54.175998687744)
  1539. Part15.Rotation = Vector3.new(90, -85, -180)
  1540. Part15.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1541. Part15.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1542. Part15.BottomSurface = Enum.SurfaceType.Smooth
  1543. Part15.BrickColor = BrickColor.new("Sand green")
  1544. Part15.CanCollide = false
  1545. Part15.Material = Enum.Material.Metal
  1546. Part15.TopSurface = Enum.SurfaceType.Smooth
  1547. Part15.brickColor = BrickColor.new("Sand green")
  1548. Part16.Parent = Model4
  1549. Part16.CFrame = CFrame.new(-65.8743973, 3.149508, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1550. Part16.Orientation = Vector3.new(5, -90, 90)
  1551. Part16.Position = Vector3.new(-65.874397277832, 3.1495079994202, -54.175998687744)
  1552. Part16.Rotation = Vector3.new(90, -85, -180)
  1553. Part16.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1554. Part16.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1555. Part16.BottomSurface = Enum.SurfaceType.Smooth
  1556. Part16.BrickColor = BrickColor.new("Sand green")
  1557. Part16.CanCollide = false
  1558. Part16.Material = Enum.Material.Metal
  1559. Part16.TopSurface = Enum.SurfaceType.Smooth
  1560. Part16.brickColor = BrickColor.new("Sand green")
  1561. Part17.Parent = Model4
  1562. Part17.CFrame = CFrame.new(-65.8343964, 3.14950895, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1563. Part17.Orientation = Vector3.new(5, -90, 90)
  1564. Part17.Position = Vector3.new(-65.834396362305, 3.1495089530945, -54.175998687744)
  1565. Part17.Rotation = Vector3.new(90, -85, -180)
  1566. Part17.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1567. Part17.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1568. Part17.BottomSurface = Enum.SurfaceType.Smooth
  1569. Part17.BrickColor = BrickColor.new("Sand green")
  1570. Part17.CanCollide = false
  1571. Part17.Material = Enum.Material.Metal
  1572. Part17.TopSurface = Enum.SurfaceType.Smooth
  1573. Part17.brickColor = BrickColor.new("Sand green")
  1574. Part18.Parent = Model4
  1575. Part18.CFrame = CFrame.new(-65.7943954, 3.14950728, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1576. Part18.Orientation = Vector3.new(5, -90, 90)
  1577. Part18.Position = Vector3.new(-65.794395446777, 3.1495072841644, -54.175998687744)
  1578. Part18.Rotation = Vector3.new(90, -85, -180)
  1579. Part18.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1580. Part18.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1581. Part18.BottomSurface = Enum.SurfaceType.Smooth
  1582. Part18.BrickColor = BrickColor.new("Sand green")
  1583. Part18.CanCollide = false
  1584. Part18.Material = Enum.Material.Metal
  1585. Part18.TopSurface = Enum.SurfaceType.Smooth
  1586. Part18.brickColor = BrickColor.new("Sand green")
  1587. Part19.Parent = Model4
  1588. Part19.CFrame = CFrame.new(-65.7543945, 3.14950943, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1589. Part19.Orientation = Vector3.new(5, -90, 90)
  1590. Part19.Position = Vector3.new(-65.75439453125, 3.1495094299316, -54.175998687744)
  1591. Part19.Rotation = Vector3.new(90, -85, -180)
  1592. Part19.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1593. Part19.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1594. Part19.BottomSurface = Enum.SurfaceType.Smooth
  1595. Part19.BrickColor = BrickColor.new("Sand green")
  1596. Part19.CanCollide = false
  1597. Part19.Material = Enum.Material.Metal
  1598. Part19.TopSurface = Enum.SurfaceType.Smooth
  1599. Part19.brickColor = BrickColor.new("Sand green")
  1600. Part20.Parent = Model4
  1601. Part20.CFrame = CFrame.new(-65.7143936, 3.14950633, -54.1759987, -0.087155655, 0, -0.996194541, 0.996194541, 0, -0.087155655, 0, -1, 0)
  1602. Part20.Orientation = Vector3.new(5, -90, 90)
  1603. Part20.Position = Vector3.new(-65.714393615723, 3.1495063304901, -54.175998687744)
  1604. Part20.Rotation = Vector3.new(90, -85, -180)
  1605. Part20.Color = Color3.new(0.458824, 0.462745, 0.494118)
  1606. Part20.Size = Vector3.new(0.14300000667572, 0.15500001609325, 0.024999996647239)
  1607. Part20.BottomSurface = Enum.SurfaceType.Smooth
  1608. Part20.BrickColor = BrickColor.new("Sand green")
  1609. Part20.CanCollide = false
  1610. Part20.Material = Enum.Material.Metal
  1611. Part20.TopSurface = Enum.SurfaceType.Smooth
  1612. Part20.brickColor = BrickColor.new("Sand green")
  1613. Part21.Name = "mainpart"
  1614. Part21.Parent = Model4
  1615. Part21.CFrame = CFrame.new(-64.7627029, 3.23814321, -54.1506386, 0.99999994, 0, 0, 0, 0, 0.99999994, 0, -1, 0)
  1616. Part21.Orientation = Vector3.new(-89.980003356934, 0, 0)
  1617. Part21.Position = Vector3.new(-64.762702941895, 3.2381432056427, -54.150638580322)
  1618. Part21.Rotation = Vector3.new(-90, 0, 0)
  1619. Part21.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1620. Part21.Size = Vector3.new(1.2745997905731, 0.15000000596046, 0.375)
  1621. Part21.BottomSurface = Enum.SurfaceType.Smooth
  1622. Part21.BrickColor = BrickColor.new("Smoky grey")
  1623. Part21.CanCollide = false
  1624. Part21.Material = Enum.Material.Metal
  1625. Part21.TopSurface = Enum.SurfaceType.Smooth
  1626. Part21.brickColor = BrickColor.new("Smoky grey")
  1627. Weld22.Name = "boltweld"
  1628. Weld22.Parent = Part21
  1629. Weld22.C0 = CFrame.new(-0.299995422, 0.105003357, 0.0450000763, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1630. Weld22.Part0 = Part21
  1631. Weld22.Part1 = Part27
  1632. Weld22.part1 = Part27
  1633. Weld23.Name = "magweld"
  1634. Weld23.Parent = Part21
  1635. Weld23.C0 = CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773)
  1636. Weld23.Part0 = Part21
  1637. Weld23.Part1 = Part100
  1638. Weld23.part1 = Part100
  1639. Weld24.Name = "triggerweld"
  1640. Weld24.Parent = Part21
  1641. Weld24.C0 = CFrame.new(0.32093811, 0.0250015259, -0.240855455, 0.98480773, 0, 0.173648179, 0, 1, 0, -0.173648179, 0, 0.98480773)
  1642. Weld24.Part0 = Part21
  1643. Weld24.Part1 = Part77
  1644. Weld24.part1 = Part77
  1645. Part25.Parent = Model4
  1646. Part25.CFrame = CFrame.new(-67.7499924, 3.20064163, -54.2356377, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1647. Part25.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1648. Part25.Position = Vector3.new(-67.749992370605, 3.2006416320801, -54.235637664795)
  1649. Part25.Rotation = Vector3.new(-90, 0, 0)
  1650. Part25.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1651. Part25.Size = Vector3.new(0.29999947547913, 0.027600016444921, 0.1499999910593)
  1652. Part25.BottomSurface = Enum.SurfaceType.Smooth
  1653. Part25.BrickColor = BrickColor.new("Smoky grey")
  1654. Part25.CanCollide = false
  1655. Part25.Material = Enum.Material.Metal
  1656. Part25.TopSurface = Enum.SurfaceType.Smooth
  1657. Part25.brickColor = BrickColor.new("Smoky grey")
  1658. Model26.Name = "bolt"
  1659. Model26.Parent = Model4
  1660. Part27.Name = "boltpart"
  1661. Part27.Parent = Model26
  1662. Part27.CFrame = CFrame.new(-65.0626984, 3.28314328, -54.2556419, 0.99999994, 0, 0, 0, 0, 0.99999994, 0, -1, 0)
  1663. Part27.Orientation = Vector3.new(-89.980003356934, 0, 0)
  1664. Part27.Position = Vector3.new(-65.062698364258, 3.2831432819366, -54.255641937256)
  1665. Part27.Rotation = Vector3.new(-90, 0, 0)
  1666. Part27.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1667. Part27.Size = Vector3.new(0.42459961771965, 0.010000000707805, 0.13499999046326)
  1668. Part27.BottomSurface = Enum.SurfaceType.Smooth
  1669. Part27.BrickColor = BrickColor.new("Smoky grey")
  1670. Part27.CanCollide = false
  1671. Part27.Material = Enum.Material.Metal
  1672. Part27.TopSurface = Enum.SurfaceType.Smooth
  1673. Part27.brickColor = BrickColor.new("Smoky grey")
  1674. Weld28.Parent = Part27
  1675. Weld28.C0 = CFrame.new(-0.1875, 0.0862464905, -0.0325000286, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1676. Weld28.Part0 = Part27
  1677. Weld28.Part1 = Part29
  1678. Weld28.part1 = Part29
  1679. Part29.Parent = Model26
  1680. Part29.CFrame = CFrame.new(-65.2501984, 3.25064325, -54.3418884, 0.99999994, 0, 0, 0, 0, 0.99999994, 0, -1, 0)
  1681. Part29.Orientation = Vector3.new(-89.980003356934, 0, 0)
  1682. Part29.Position = Vector3.new(-65.250198364258, 3.2506432533264, -54.341888427734)
  1683. Part29.Rotation = Vector3.new(-90, 0, 0)
  1684. Part29.Color = Color3.new(0.623529, 0.631373, 0.67451)
  1685. Part29.Size = Vector3.new(0.04959961771965, 0.18249997496605, 0.044999994337559)
  1686. Part29.BottomSurface = Enum.SurfaceType.Smooth
  1687. Part29.BrickColor = BrickColor.new("Fossil")
  1688. Part29.CanCollide = false
  1689. Part29.Material = Enum.Material.Metal
  1690. Part29.TopSurface = Enum.SurfaceType.Smooth
  1691. Part29.brickColor = BrickColor.new("Fossil")
  1692. Part30.Parent = Model4
  1693. Part30.CFrame = CFrame.new(-64.6436996, 3.31314158, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1694. Part30.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1695. Part30.Position = Vector3.new(-64.643699645996, 3.3131415843964, -54.26314163208)
  1696. Part30.Rotation = Vector3.new(-90, 0, 0)
  1697. Part30.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1698. Part30.Size = Vector3.new(0.4125996530056, 0.025000000372529, 0.074999988079071)
  1699. Part30.BottomSurface = Enum.SurfaceType.Smooth
  1700. Part30.BrickColor = BrickColor.new("Smoky grey")
  1701. Part30.CanCollide = false
  1702. Part30.Material = Enum.Material.Metal
  1703. Part30.TopSurface = Enum.SurfaceType.Smooth
  1704. Part30.brickColor = BrickColor.new("Smoky grey")
  1705. Part31.Parent = Model4
  1706. Part31.CFrame = CFrame.new(-64.8686981, 3.38814044, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1707. Part31.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1708. Part31.Position = Vector3.new(-64.868698120117, 3.3881404399872, -54.26314163208)
  1709. Part31.Rotation = Vector3.new(-90, 0, 0)
  1710. Part31.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1711. Part31.Size = Vector3.new(0.86259967088699, 0.025000000372529, 0.074999988079071)
  1712. Part31.BottomSurface = Enum.SurfaceType.Smooth
  1713. Part31.BrickColor = BrickColor.new("Smoky grey")
  1714. Part31.CanCollide = false
  1715. Part31.Material = Enum.Material.Metal
  1716. Part31.TopSurface = Enum.SurfaceType.Smooth
  1717. Part31.brickColor = BrickColor.new("Smoky grey")
  1718. Part32.Parent = Model4
  1719. Part32.CFrame = CFrame.new(-65.3377075, 3.31314278, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1720. Part32.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1721. Part32.Position = Vector3.new(-65.337707519531, 3.3131427764893, -54.26314163208)
  1722. Part32.Rotation = Vector3.new(-90, 0, 0)
  1723. Part32.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1724. Part32.Size = Vector3.new(0.12459974735975, 0.025000000372529, 0.22499999403954)
  1725. Part32.BottomSurface = Enum.SurfaceType.Smooth
  1726. Part32.BrickColor = BrickColor.new("Smoky grey")
  1727. Part32.CanCollide = false
  1728. Part32.Material = Enum.Material.Metal
  1729. Part32.TopSurface = Enum.SurfaceType.Smooth
  1730. Part32.brickColor = BrickColor.new("Smoky grey")
  1731. Part33.Parent = Model4
  1732. Part33.CFrame = CFrame.new(-64.2877045, 3.32563996, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1733. Part33.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1734. Part33.Position = Vector3.new(-64.287704467773, 3.32563996315, -54.26314163208)
  1735. Part33.Rotation = Vector3.new(-90, 0, 0)
  1736. Part33.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1737. Part33.Size = Vector3.new(0.32459983229637, 0.025000000372529, 0.19999998807907)
  1738. Part33.BottomSurface = Enum.SurfaceType.Smooth
  1739. Part33.BrickColor = BrickColor.new("Smoky grey")
  1740. Part33.CanCollide = false
  1741. Part33.Material = Enum.Material.Metal
  1742. Part33.TopSurface = Enum.SurfaceType.Smooth
  1743. Part33.brickColor = BrickColor.new("Smoky grey")
  1744. Part34.Parent = Model4
  1745. Part34.CFrame = CFrame.new(-64.7627029, 3.25063992, -54.2381401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1746. Part34.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1747. Part34.Position = Vector3.new(-64.762702941895, 3.2506399154663, -54.238140106201)
  1748. Part34.Rotation = Vector3.new(-90, 0, 0)
  1749. Part34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1750. Part34.Size = Vector3.new(1.2745997905731, 0.025000000372529, 0.34999999403954)
  1751. Part34.BottomSurface = Enum.SurfaceType.Smooth
  1752. Part34.BrickColor = BrickColor.new("Really black")
  1753. Part34.CanCollide = false
  1754. Part34.Material = Enum.Material.SmoothPlastic
  1755. Part34.TopSurface = Enum.SurfaceType.Smooth
  1756. Part34.brickColor = BrickColor.new("Really black")
  1757. Part35.Parent = Model4
  1758. Part35.CFrame = CFrame.new(-64.7627029, 3.13814306, -54.2631416, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1759. Part35.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1760. Part35.Position = Vector3.new(-64.762702941895, 3.1381430625916, -54.26314163208)
  1761. Part35.Rotation = Vector3.new(-90, 0, 0)
  1762. Part35.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1763. Part35.Size = Vector3.new(1.2740000486374, 0.025000000372529, 0.17499999701977)
  1764. Part35.BottomSurface = Enum.SurfaceType.Smooth
  1765. Part35.BrickColor = BrickColor.new("Smoky grey")
  1766. Part35.CanCollide = false
  1767. Part35.Material = Enum.Material.Metal
  1768. Part35.TopSurface = Enum.SurfaceType.Smooth
  1769. Part35.brickColor = BrickColor.new("Smoky grey")
  1770. Part36.Parent = Model4
  1771. Part36.CFrame = CFrame.new(-63.7749939, 3.05064106, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1772. Part36.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1773. Part36.Position = Vector3.new(-63.774993896484, 3.0506410598755, -54.175640106201)
  1774. Part36.Rotation = Vector3.new(-90, 0, 0)
  1775. Part36.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1776. Part36.Size = Vector3.new(0.049999713897705, 0.10000000149012, 0.050000000745058)
  1777. Part36.BottomSurface = Enum.SurfaceType.Smooth
  1778. Part36.BrickColor = BrickColor.new("Smoky grey")
  1779. Part36.CanCollide = false
  1780. Part36.Material = Enum.Material.Metal
  1781. Part36.TopSurface = Enum.SurfaceType.Smooth
  1782. Part36.brickColor = BrickColor.new("Smoky grey")
  1783. Part37.Parent = Model4
  1784. Part37.CFrame = CFrame.new(-66.9375, 3.13814116, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1785. Part37.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1786. Part37.Position = Vector3.new(-66.9375, 3.1381411552429, -54.175640106201)
  1787. Part37.Rotation = Vector3.new(-90, 0, 0)
  1788. Part37.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1789. Part37.Size = Vector3.new(1.3249995708466, 0.046800013631582, 0.024999991059303)
  1790. Part37.BottomSurface = Enum.SurfaceType.Smooth
  1791. Part37.BrickColor = BrickColor.new("Smoky grey")
  1792. Part37.CanCollide = false
  1793. Part37.Material = Enum.Material.Metal
  1794. Part37.TopSurface = Enum.SurfaceType.Smooth
  1795. Part37.brickColor = BrickColor.new("Smoky grey")
  1796. Part38.Parent = Model4
  1797. Part38.CFrame = CFrame.new(-65.8375015, 3.07564139, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1798. Part38.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1799. Part38.Position = Vector3.new(-65.837501525879, 3.0756413936615, -54.175640106201)
  1800. Part38.Rotation = Vector3.new(-90, 0, 0)
  1801. Part38.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1802. Part38.Size = Vector3.new(0.87499964237213, 0.099200017750263, 0.049999982118607)
  1803. Part38.BottomSurface = Enum.SurfaceType.Smooth
  1804. Part38.BrickColor = BrickColor.new("Smoky grey")
  1805. Part38.CanCollide = false
  1806. Part38.Material = Enum.Material.Metal
  1807. Part38.TopSurface = Enum.SurfaceType.Smooth
  1808. Part38.brickColor = BrickColor.new("Smoky grey")
  1809. Part39.Parent = Model4
  1810. Part39.CFrame = CFrame.new(-64.7627029, 3.05063748, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1811. Part39.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1812. Part39.Position = Vector3.new(-64.762702941895, 3.0506374835968, -54.175640106201)
  1813. Part39.Rotation = Vector3.new(-90, 0, 0)
  1814. Part39.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1815. Part39.Size = Vector3.new(1.2745997905731, 0.15000000596046, 0.050000000745058)
  1816. Part39.BottomSurface = Enum.SurfaceType.Smooth
  1817. Part39.BrickColor = BrickColor.new("Smoky grey")
  1818. Part39.CanCollide = false
  1819. Part39.Material = Enum.Material.Metal
  1820. Part39.TopSurface = Enum.SurfaceType.Smooth
  1821. Part39.brickColor = BrickColor.new("Smoky grey")
  1822. Part40.Parent = Model4
  1823. Part40.CFrame = CFrame.new(-65.9375, 3.43814278, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1824. Part40.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1825. Part40.Position = Vector3.new(-65.9375, 3.4381427764893, -54.175640106201)
  1826. Part40.Rotation = Vector3.new(-90, 0, 0)
  1827. Part40.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1828. Part40.Size = Vector3.new(0.67499965429306, 0.099200017750263, 0.025000000372529)
  1829. Part40.BottomSurface = Enum.SurfaceType.Smooth
  1830. Part40.BrickColor = BrickColor.new("Smoky grey")
  1831. Part40.CanCollide = false
  1832. Part40.Material = Enum.Material.Metal
  1833. Part40.TopSurface = Enum.SurfaceType.Smooth
  1834. Part40.brickColor = BrickColor.new("Smoky grey")
  1835. Part41.Parent = Model4
  1836. Part41.CFrame = CFrame.new(-67.5855026, 3.20064139, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1837. Part41.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1838. Part41.Position = Vector3.new(-67.585502624512, 3.2006413936615, -54.175640106201)
  1839. Part41.Rotation = Vector3.new(-90, 0, 0)
  1840. Part41.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1841. Part41.Size = Vector3.new(0.028999615460634, 0.14399999380112, 0.14800000190735)
  1842. Part41.BottomSurface = Enum.SurfaceType.Smooth
  1843. Part41.BrickColor = BrickColor.new("Smoky grey")
  1844. Part41.CanCollide = false
  1845. Part41.Material = Enum.Material.Metal
  1846. Part41.TopSurface = Enum.SurfaceType.Smooth
  1847. Part41.brickColor = BrickColor.new("Smoky grey")
  1848. Part42.Parent = Model4
  1849. Part42.CFrame = CFrame.new(-64.654686, 2.74782705, -54.1756401, -0.965925694, 0, 0.258818984, -0.258818984, 0, -0.965925694, 0, -1, -0)
  1850. Part42.Orientation = Vector3.new(75, 90, -90)
  1851. Part42.Position = Vector3.new(-64.654685974121, 2.7478270530701, -54.175640106201)
  1852. Part42.Rotation = Vector3.new(90, 15, -180)
  1853. Part42.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1854. Part42.Size = Vector3.new(0.025000002235174, 0.079999998211861, 0.064999982714653)
  1855. Part42.BottomSurface = Enum.SurfaceType.Smooth
  1856. Part42.BrickColor = BrickColor.new("Smoky grey")
  1857. Part42.CanCollide = false
  1858. Part42.Material = Enum.Material.Metal
  1859. Part42.TopSurface = Enum.SurfaceType.Smooth
  1860. Part42.brickColor = BrickColor.new("Smoky grey")
  1861. Part43.Parent = Model4
  1862. Part43.CFrame = CFrame.new(-64.6740875, 2.8202734, -54.1756401, -0.965925694, 0, 0.258818984, -0.258818984, 0, -0.965925694, 0, -1, -0)
  1863. Part43.Orientation = Vector3.new(75, 90, -90)
  1864. Part43.Position = Vector3.new(-64.674087524414, 2.820273399353, -54.175640106201)
  1865. Part43.Rotation = Vector3.new(90, 15, -180)
  1866. Part43.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1867. Part43.Size = Vector3.new(0.024999998509884, 0.049999997019768, 0.094999998807907)
  1868. Part43.BottomSurface = Enum.SurfaceType.Smooth
  1869. Part43.BrickColor = BrickColor.new("Smoky grey")
  1870. Part43.CanCollide = false
  1871. Part43.Material = Enum.Material.Metal
  1872. Part43.TopSurface = Enum.SurfaceType.Smooth
  1873. Part43.brickColor = BrickColor.new("Smoky grey")
  1874. Part44.Parent = Model4
  1875. Part44.CFrame = CFrame.new(-64.6813354, 2.94583082, -54.1756401, -0.999999881, 0, -2.98023224e-08, 2.98023224e-08, 0, -0.999999881, 0, -1, -0)
  1876. Part44.Orientation = Vector3.new(89.970001220703, -90, 90)
  1877. Part44.Position = Vector3.new(-64.681335449219, 2.945830821991, -54.175640106201)
  1878. Part44.Rotation = Vector3.new(90, 0, -180)
  1879. Part44.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1880. Part44.Size = Vector3.new(0.099999994039536, 0.049999997019768, 0.17000000178814)
  1881. Part44.BottomSurface = Enum.SurfaceType.Smooth
  1882. Part44.BrickColor = BrickColor.new("Smoky grey")
  1883. Part44.CanCollide = false
  1884. Part44.Material = Enum.Material.Metal
  1885. Part44.TopSurface = Enum.SurfaceType.Smooth
  1886. Part44.brickColor = BrickColor.new("Smoky grey")
  1887. Part45.Parent = Model4
  1888. Part45.CFrame = CFrame.new(-64.1649628, 2.4899807, -54.1756401, 0.939692438, 0, -0.342020065, 0.342020065, 0, 0.939692438, 0, -1, 0)
  1889. Part45.Orientation = Vector3.new(-70, -90, 90)
  1890. Part45.Position = Vector3.new(-64.164962768555, 2.4899806976318, -54.175640106201)
  1891. Part45.Rotation = Vector3.new(-90, -20, 0)
  1892. Part45.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1893. Part45.Size = Vector3.new(0.02499983087182, 0.1484000235796, 0.039999980479479)
  1894. Part45.BottomSurface = Enum.SurfaceType.Smooth
  1895. Part45.BrickColor = BrickColor.new("Smoky grey")
  1896. Part45.CanCollide = false
  1897. Part45.Material = Enum.Material.Metal
  1898. Part45.TopSurface = Enum.SurfaceType.Smooth
  1899. Part45.brickColor = BrickColor.new("Smoky grey")
  1900. Part46.Parent = Model4
  1901. Part46.CFrame = CFrame.new(-67.2972183, 3.33950281, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  1902. Part46.Orientation = Vector3.new(-85, -90, 90)
  1903. Part46.Position = Vector3.new(-67.297218322754, 3.3395028114319, -54.175640106201)
  1904. Part46.Rotation = Vector3.new(-90, -5, 0)
  1905. Part46.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1906. Part46.Size = Vector3.new(0.079999521374702, 0.022000014781952, 0.039599999785423)
  1907. Part46.BottomSurface = Enum.SurfaceType.Smooth
  1908. Part46.BrickColor = BrickColor.new("Smoky grey")
  1909. Part46.CanCollide = false
  1910. Part46.Material = Enum.Material.Metal
  1911. Part46.TopSurface = Enum.SurfaceType.Smooth
  1912. Part46.brickColor = BrickColor.new("Smoky grey")
  1913. Part47.Parent = Model4
  1914. Part47.CFrame = CFrame.new(-67.3073044, 3.36873698, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  1915. Part47.Orientation = Vector3.new(-85, -90, 90)
  1916. Part47.Position = Vector3.new(-67.307304382324, 3.3687369823456, -54.175640106201)
  1917. Part47.Rotation = Vector3.new(-90, -5, 0)
  1918. Part47.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1919. Part47.Size = Vector3.new(0.064999520778656, 0.022000014781952, 0.039599999785423)
  1920. Part47.BottomSurface = Enum.SurfaceType.Smooth
  1921. Part47.BrickColor = BrickColor.new("Smoky grey")
  1922. Part47.CanCollide = false
  1923. Part47.Material = Enum.Material.Metal
  1924. Part47.TopSurface = Enum.SurfaceType.Smooth
  1925. Part47.brickColor = BrickColor.new("Smoky grey")
  1926. Part48.Parent = Model4
  1927. Part48.CFrame = CFrame.new(-67.2871323, 3.31027198, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  1928. Part48.Orientation = Vector3.new(-85, -90, 90)
  1929. Part48.Position = Vector3.new(-67.287132263184, 3.3102719783783, -54.175640106201)
  1930. Part48.Rotation = Vector3.new(-90, -5, 0)
  1931. Part48.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1932. Part48.Size = Vector3.new(0.094999521970749, 0.022000014781952, 0.039599999785423)
  1933. Part48.BottomSurface = Enum.SurfaceType.Smooth
  1934. Part48.BrickColor = BrickColor.new("Smoky grey")
  1935. Part48.CanCollide = false
  1936. Part48.Material = Enum.Material.Metal
  1937. Part48.TopSurface = Enum.SurfaceType.Smooth
  1938. Part48.brickColor = BrickColor.new("Smoky grey")
  1939. Part49.Parent = Model4
  1940. Part49.CFrame = CFrame.new(-67.2770462, 3.28103924, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  1941. Part49.Orientation = Vector3.new(-85, -90, 90)
  1942. Part49.Position = Vector3.new(-67.277046203613, 3.2810392379761, -54.175640106201)
  1943. Part49.Rotation = Vector3.new(-90, -5, 0)
  1944. Part49.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1945. Part49.Size = Vector3.new(0.1099995225668, 0.022000014781952, 0.039599999785423)
  1946. Part49.BottomSurface = Enum.SurfaceType.Smooth
  1947. Part49.BrickColor = BrickColor.new("Smoky grey")
  1948. Part49.CanCollide = false
  1949. Part49.Material = Enum.Material.Metal
  1950. Part49.TopSurface = Enum.SurfaceType.Smooth
  1951. Part49.brickColor = BrickColor.new("Smoky grey")
  1952. Part50.Parent = Model4
  1953. Part50.CFrame = CFrame.new(-66.5024948, 3.35563946, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1954. Part50.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1955. Part50.Position = Vector3.new(-66.502494812012, 3.3556394577026, -54.175640106201)
  1956. Part50.Rotation = Vector3.new(-90, 0, 0)
  1957. Part50.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1958. Part50.Size = Vector3.new(0.45499962568283, 0.09680001437664, 0.03999999538064)
  1959. Part50.BottomSurface = Enum.SurfaceType.Smooth
  1960. Part50.BrickColor = BrickColor.new("Smoky grey")
  1961. Part50.CanCollide = false
  1962. Part50.Material = Enum.Material.Metal
  1963. Part50.TopSurface = Enum.SurfaceType.Smooth
  1964. Part50.brickColor = BrickColor.new("Smoky grey")
  1965. Part51.Parent = Model4
  1966. Part51.CFrame = CFrame.new(-66.7409439, 3.29016089, -54.1756401, 0.642787457, 0, -0.766044497, 0.766044497, 0, 0.642787457, 0, -1, 0)
  1967. Part51.Orientation = Vector3.new(-40, -90, 90)
  1968. Part51.Position = Vector3.new(-66.740943908691, 3.2901608943939, -54.175640106201)
  1969. Part51.Rotation = Vector3.new(-90, -50, 0)
  1970. Part51.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1971. Part51.Size = Vector3.new(0.064799681305885, 0.09680001437664, 0.049199990928173)
  1972. Part51.BottomSurface = Enum.SurfaceType.Smooth
  1973. Part51.BrickColor = BrickColor.new("Smoky grey")
  1974. Part51.CanCollide = false
  1975. Part51.Material = Enum.Material.Metal
  1976. Part51.TopSurface = Enum.SurfaceType.Smooth
  1977. Part51.brickColor = BrickColor.new("Smoky grey")
  1978. Part52.Parent = Model4
  1979. Part52.CFrame = CFrame.new(-64.2546921, 3.02224207, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  1980. Part52.Orientation = Vector3.new(-89.970001220703, 0, 0)
  1981. Part52.Position = Vector3.new(-64.254692077637, 3.0222420692444, -54.175640106201)
  1982. Part52.Rotation = Vector3.new(-90, 0, 0)
  1983. Part52.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1984. Part52.Size = Vector3.new(0.25859981775284, 0.20000000298023, 0.094800017774105)
  1985. Part52.BottomSurface = Enum.SurfaceType.Smooth
  1986. Part52.BrickColor = BrickColor.new("Smoky grey")
  1987. Part52.CanCollide = false
  1988. Part52.Material = Enum.Material.Metal
  1989. Part52.TopSurface = Enum.SurfaceType.Smooth
  1990. Part52.brickColor = BrickColor.new("Smoky grey")
  1991. Part53.Parent = Model4
  1992. Part53.CFrame = CFrame.new(-64.3236923, 2.97183061, -54.1756401, -0.996191263, 0, -0.0871554017, 0.0871554017, 0, -0.996191263, 0, -1, -0)
  1993. Part53.Orientation = Vector3.new(85, -90, 90)
  1994. Part53.Position = Vector3.new(-64.323692321777, 2.9718306064606, -54.175640106201)
  1995. Part53.Rotation = Vector3.new(90, -5, -180)
  1996. Part53.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1997. Part53.Size = Vector3.new(0.12660045921803, 0.1484000235796, 0.12380000948906)
  1998. Part53.BottomSurface = Enum.SurfaceType.Smooth
  1999. Part53.BrickColor = BrickColor.new("Smoky grey")
  2000. Part53.CanCollide = false
  2001. Part53.Material = Enum.Material.Metal
  2002. Part53.TopSurface = Enum.SurfaceType.Smooth
  2003. Part53.brickColor = BrickColor.new("Smoky grey")
  2004. Part54.Parent = Model4
  2005. Part54.CFrame = CFrame.new(-66.7537994, 3.27483892, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2006. Part54.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2007. Part54.Position = Vector3.new(-66.753799438477, 3.274838924408, -54.175640106201)
  2008. Part54.Rotation = Vector3.new(-90, 0, 0)
  2009. Part54.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2010. Part54.Size = Vector3.new(0.14479967951775, 0.09680001437664, 0.049199990928173)
  2011. Part54.BottomSurface = Enum.SurfaceType.Smooth
  2012. Part54.BrickColor = BrickColor.new("Smoky grey")
  2013. Part54.CanCollide = false
  2014. Part54.Material = Enum.Material.Metal
  2015. Part54.TopSurface = Enum.SurfaceType.Smooth
  2016. Part54.brickColor = BrickColor.new("Smoky grey")
  2017. Part55.Parent = Model4
  2018. Part55.CFrame = CFrame.new(-65.1515045, 3.47564292, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2019. Part55.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2020. Part55.Position = Vector3.new(-65.151504516602, 3.4756429195404, -54.175640106201)
  2021. Part55.Rotation = Vector3.new(-90, 0, 0)
  2022. Part55.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2023. Part55.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2024. Part55.BottomSurface = Enum.SurfaceType.Smooth
  2025. Part55.BrickColor = BrickColor.new("Smoky grey")
  2026. Part55.CanCollide = false
  2027. Part55.Material = Enum.Material.Metal
  2028. Part55.TopSurface = Enum.SurfaceType.Smooth
  2029. Part55.brickColor = BrickColor.new("Smoky grey")
  2030. Part56.Parent = Model4
  2031. Part56.CFrame = CFrame.new(-65.100708, 3.47564411, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2032. Part56.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2033. Part56.Position = Vector3.new(-65.100708007813, 3.4756441116333, -54.175640106201)
  2034. Part56.Rotation = Vector3.new(-90, 0, 0)
  2035. Part56.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2036. Part56.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2037. Part56.BottomSurface = Enum.SurfaceType.Smooth
  2038. Part56.BrickColor = BrickColor.new("Smoky grey")
  2039. Part56.CanCollide = false
  2040. Part56.Material = Enum.Material.Metal
  2041. Part56.TopSurface = Enum.SurfaceType.Smooth
  2042. Part56.brickColor = BrickColor.new("Smoky grey")
  2043. Part57.Parent = Model4
  2044. Part57.CFrame = CFrame.new(-64.9483109, 3.47564363, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2045. Part57.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2046. Part57.Position = Vector3.new(-64.948310852051, 3.4756436347961, -54.175640106201)
  2047. Part57.Rotation = Vector3.new(-90, 0, 0)
  2048. Part57.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2049. Part57.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2050. Part57.BottomSurface = Enum.SurfaceType.Smooth
  2051. Part57.BrickColor = BrickColor.new("Smoky grey")
  2052. Part57.CanCollide = false
  2053. Part57.Material = Enum.Material.Metal
  2054. Part57.TopSurface = Enum.SurfaceType.Smooth
  2055. Part57.brickColor = BrickColor.new("Smoky grey")
  2056. Part58.Parent = Model4
  2057. Part58.CFrame = CFrame.new(-65.0007019, 3.47564554, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2058. Part58.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2059. Part58.Position = Vector3.new(-65.000701904297, 3.4756455421448, -54.175640106201)
  2060. Part58.Rotation = Vector3.new(-90, 0, 0)
  2061. Part58.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2062. Part58.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2063. Part58.BottomSurface = Enum.SurfaceType.Smooth
  2064. Part58.BrickColor = BrickColor.new("Smoky grey")
  2065. Part58.CanCollide = false
  2066. Part58.Material = Enum.Material.Metal
  2067. Part58.TopSurface = Enum.SurfaceType.Smooth
  2068. Part58.brickColor = BrickColor.new("Smoky grey")
  2069. Part59.Parent = Model4
  2070. Part59.CFrame = CFrame.new(-65.0499115, 3.47564554, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2071. Part59.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2072. Part59.Position = Vector3.new(-65.049911499023, 3.4756455421448, -54.175640106201)
  2073. Part59.Rotation = Vector3.new(-90, 0, 0)
  2074. Part59.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2075. Part59.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2076. Part59.BottomSurface = Enum.SurfaceType.Smooth
  2077. Part59.BrickColor = BrickColor.new("Smoky grey")
  2078. Part59.CanCollide = false
  2079. Part59.Material = Enum.Material.Metal
  2080. Part59.TopSurface = Enum.SurfaceType.Smooth
  2081. Part59.brickColor = BrickColor.new("Smoky grey")
  2082. Part60.Parent = Model4
  2083. Part60.CFrame = CFrame.new(-64.8975143, 3.47564483, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2084. Part60.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2085. Part60.Position = Vector3.new(-64.897514343262, 3.475644826889, -54.175640106201)
  2086. Part60.Rotation = Vector3.new(-90, 0, 0)
  2087. Part60.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2088. Part60.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2089. Part60.BottomSurface = Enum.SurfaceType.Smooth
  2090. Part60.BrickColor = BrickColor.new("Smoky grey")
  2091. Part60.CanCollide = false
  2092. Part60.Material = Enum.Material.Metal
  2093. Part60.TopSurface = Enum.SurfaceType.Smooth
  2094. Part60.brickColor = BrickColor.new("Smoky grey")
  2095. Part61.Parent = Model4
  2096. Part61.CFrame = CFrame.new(-64.8483047, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2097. Part61.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2098. Part61.Position = Vector3.new(-64.848304748535, 3.4756450653076, -54.175640106201)
  2099. Part61.Rotation = Vector3.new(-90, 0, 0)
  2100. Part61.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2101. Part61.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2102. Part61.BottomSurface = Enum.SurfaceType.Smooth
  2103. Part61.BrickColor = BrickColor.new("Smoky grey")
  2104. Part61.CanCollide = false
  2105. Part61.Material = Enum.Material.Metal
  2106. Part61.TopSurface = Enum.SurfaceType.Smooth
  2107. Part61.brickColor = BrickColor.new("Smoky grey")
  2108. Part62.Parent = Model4
  2109. Part62.CFrame = CFrame.new(-64.7959137, 3.4756465, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2110. Part62.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2111. Part62.Position = Vector3.new(-64.795913696289, 3.4756464958191, -54.175640106201)
  2112. Part62.Rotation = Vector3.new(-90, 0, 0)
  2113. Part62.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2114. Part62.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2115. Part62.BottomSurface = Enum.SurfaceType.Smooth
  2116. Part62.BrickColor = BrickColor.new("Smoky grey")
  2117. Part62.CanCollide = false
  2118. Part62.Material = Enum.Material.Metal
  2119. Part62.TopSurface = Enum.SurfaceType.Smooth
  2120. Part62.brickColor = BrickColor.new("Smoky grey")
  2121. Part63.Parent = Model4
  2122. Part63.CFrame = CFrame.new(-64.7467041, 3.4756465, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2123. Part63.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2124. Part63.Position = Vector3.new(-64.746704101563, 3.4756464958191, -54.175640106201)
  2125. Part63.Rotation = Vector3.new(-90, 0, 0)
  2126. Part63.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2127. Part63.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2128. Part63.BottomSurface = Enum.SurfaceType.Smooth
  2129. Part63.BrickColor = BrickColor.new("Smoky grey")
  2130. Part63.CanCollide = false
  2131. Part63.Material = Enum.Material.Metal
  2132. Part63.TopSurface = Enum.SurfaceType.Smooth
  2133. Part63.brickColor = BrickColor.new("Smoky grey")
  2134. Part64.Parent = Model4
  2135. Part64.CFrame = CFrame.new(-64.694313, 3.47564459, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2136. Part64.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2137. Part64.Position = Vector3.new(-64.694313049316, 3.4756445884705, -54.175640106201)
  2138. Part64.Rotation = Vector3.new(-90, 0, 0)
  2139. Part64.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2140. Part64.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2141. Part64.BottomSurface = Enum.SurfaceType.Smooth
  2142. Part64.BrickColor = BrickColor.new("Smoky grey")
  2143. Part64.CanCollide = false
  2144. Part64.Material = Enum.Material.Metal
  2145. Part64.TopSurface = Enum.SurfaceType.Smooth
  2146. Part64.brickColor = BrickColor.new("Smoky grey")
  2147. Part65.Parent = Model4
  2148. Part65.CFrame = CFrame.new(-64.6451035, 3.47564459, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2149. Part65.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2150. Part65.Position = Vector3.new(-64.64510345459, 3.4756445884705, -54.175640106201)
  2151. Part65.Rotation = Vector3.new(-90, 0, 0)
  2152. Part65.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2153. Part65.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2154. Part65.BottomSurface = Enum.SurfaceType.Smooth
  2155. Part65.BrickColor = BrickColor.new("Smoky grey")
  2156. Part65.CanCollide = false
  2157. Part65.Material = Enum.Material.Metal
  2158. Part65.TopSurface = Enum.SurfaceType.Smooth
  2159. Part65.brickColor = BrickColor.new("Smoky grey")
  2160. Part66.Parent = Model4
  2161. Part66.CFrame = CFrame.new(-64.5927124, 3.47564483, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2162. Part66.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2163. Part66.Position = Vector3.new(-64.592712402344, 3.475644826889, -54.175640106201)
  2164. Part66.Rotation = Vector3.new(-90, 0, 0)
  2165. Part66.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2166. Part66.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2167. Part66.BottomSurface = Enum.SurfaceType.Smooth
  2168. Part66.BrickColor = BrickColor.new("Smoky grey")
  2169. Part66.CanCollide = false
  2170. Part66.Material = Enum.Material.Metal
  2171. Part66.TopSurface = Enum.SurfaceType.Smooth
  2172. Part66.brickColor = BrickColor.new("Smoky grey")
  2173. Part67.Parent = Model4
  2174. Part67.CFrame = CFrame.new(-64.5435028, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2175. Part67.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2176. Part67.Position = Vector3.new(-64.543502807617, 3.4756450653076, -54.175640106201)
  2177. Part67.Rotation = Vector3.new(-90, 0, 0)
  2178. Part67.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2179. Part67.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2180. Part67.BottomSurface = Enum.SurfaceType.Smooth
  2181. Part67.BrickColor = BrickColor.new("Smoky grey")
  2182. Part67.CanCollide = false
  2183. Part67.Material = Enum.Material.Metal
  2184. Part67.TopSurface = Enum.SurfaceType.Smooth
  2185. Part67.brickColor = BrickColor.new("Smoky grey")
  2186. Part68.Parent = Model4
  2187. Part68.CFrame = CFrame.new(-64.3895187, 3.4756453, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2188. Part68.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2189. Part68.Position = Vector3.new(-64.389518737793, 3.4756453037262, -54.175640106201)
  2190. Part68.Rotation = Vector3.new(-90, 0, 0)
  2191. Part68.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2192. Part68.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2193. Part68.BottomSurface = Enum.SurfaceType.Smooth
  2194. Part68.BrickColor = BrickColor.new("Smoky grey")
  2195. Part68.CanCollide = false
  2196. Part68.Material = Enum.Material.Metal
  2197. Part68.TopSurface = Enum.SurfaceType.Smooth
  2198. Part68.brickColor = BrickColor.new("Smoky grey")
  2199. Part69.Parent = Model4
  2200. Part69.CFrame = CFrame.new(-64.3403091, 3.47564554, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2201. Part69.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2202. Part69.Position = Vector3.new(-64.340309143066, 3.4756455421448, -54.175640106201)
  2203. Part69.Rotation = Vector3.new(-90, 0, 0)
  2204. Part69.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2205. Part69.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2206. Part69.BottomSurface = Enum.SurfaceType.Smooth
  2207. Part69.BrickColor = BrickColor.new("Smoky grey")
  2208. Part69.CanCollide = false
  2209. Part69.Material = Enum.Material.Metal
  2210. Part69.TopSurface = Enum.SurfaceType.Smooth
  2211. Part69.brickColor = BrickColor.new("Smoky grey")
  2212. Part70.Parent = Model4
  2213. Part70.CFrame = CFrame.new(-64.4419098, 3.47564387, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2214. Part70.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2215. Part70.Position = Vector3.new(-64.441909790039, 3.4756438732147, -54.175640106201)
  2216. Part70.Rotation = Vector3.new(-90, 0, 0)
  2217. Part70.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2218. Part70.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2219. Part70.BottomSurface = Enum.SurfaceType.Smooth
  2220. Part70.BrickColor = BrickColor.new("Smoky grey")
  2221. Part70.CanCollide = false
  2222. Part70.Material = Enum.Material.Metal
  2223. Part70.TopSurface = Enum.SurfaceType.Smooth
  2224. Part70.brickColor = BrickColor.new("Smoky grey")
  2225. Part71.Parent = Model4
  2226. Part71.CFrame = CFrame.new(-64.4911194, 3.47564363, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2227. Part71.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2228. Part71.Position = Vector3.new(-64.491119384766, 3.4756436347961, -54.175640106201)
  2229. Part71.Rotation = Vector3.new(-90, 0, 0)
  2230. Part71.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2231. Part71.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2232. Part71.BottomSurface = Enum.SurfaceType.Smooth
  2233. Part71.BrickColor = BrickColor.new("Smoky grey")
  2234. Part71.CanCollide = false
  2235. Part71.Material = Enum.Material.Metal
  2236. Part71.TopSurface = Enum.SurfaceType.Smooth
  2237. Part71.brickColor = BrickColor.new("Smoky grey")
  2238. Part72.Parent = Model4
  2239. Part72.CFrame = CFrame.new(-64.2387085, 3.47564697, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2240. Part72.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2241. Part72.Position = Vector3.new(-64.238708496094, 3.4756469726563, -54.175640106201)
  2242. Part72.Rotation = Vector3.new(-90, 0, 0)
  2243. Part72.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2244. Part72.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2245. Part72.BottomSurface = Enum.SurfaceType.Smooth
  2246. Part72.BrickColor = BrickColor.new("Smoky grey")
  2247. Part72.CanCollide = false
  2248. Part72.Material = Enum.Material.Metal
  2249. Part72.TopSurface = Enum.SurfaceType.Smooth
  2250. Part72.brickColor = BrickColor.new("Smoky grey")
  2251. Part73.Parent = Model4
  2252. Part73.CFrame = CFrame.new(-64.2879181, 3.47564697, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2253. Part73.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2254. Part73.Position = Vector3.new(-64.28791809082, 3.4756469726563, -54.175640106201)
  2255. Part73.Rotation = Vector3.new(-90, 0, 0)
  2256. Part73.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2257. Part73.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2258. Part73.BottomSurface = Enum.SurfaceType.Smooth
  2259. Part73.BrickColor = BrickColor.new("Smoky grey")
  2260. Part73.CanCollide = false
  2261. Part73.Material = Enum.Material.Metal
  2262. Part73.TopSurface = Enum.SurfaceType.Smooth
  2263. Part73.brickColor = BrickColor.new("Smoky grey")
  2264. Part74.Parent = Model4
  2265. Part74.CFrame = CFrame.new(-65.4890976, 3.43814278, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2266. Part74.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2267. Part74.Position = Vector3.new(-65.489097595215, 3.4381427764893, -54.175640106201)
  2268. Part74.Rotation = Vector3.new(-90, 0, 0)
  2269. Part74.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2270. Part74.Size = Vector3.new(0.2225998044014, 0.14920002222061, 0.025000000372529)
  2271. Part74.BottomSurface = Enum.SurfaceType.Smooth
  2272. Part74.BrickColor = BrickColor.new("Smoky grey")
  2273. Part74.CanCollide = false
  2274. Part74.Material = Enum.Material.Metal
  2275. Part74.TopSurface = Enum.SurfaceType.Smooth
  2276. Part74.brickColor = BrickColor.new("Smoky grey")
  2277. Model75.Name = "trigger"
  2278. Model75.Parent = Model4
  2279. Part76.Parent = Model75
  2280. Part76.CFrame = CFrame.new(-64.4763718, 2.9172678, -54.1756401, 0.766044319, 0, 0.642787576, -0.642787576, 0, 0.766044319, 0, -1, 0)
  2281. Part76.Orientation = Vector3.new(-50, 90, -90)
  2282. Part76.Position = Vector3.new(-64.476371765137, 2.9172677993774, -54.175640106201)
  2283. Part76.Rotation = Vector3.new(-90, 40, 0)
  2284. Part76.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2285. Part76.Size = Vector3.new(0.024999864399433, 0.049999978393316, 0.08500000834465)
  2286. Part76.BottomSurface = Enum.SurfaceType.Smooth
  2287. Part76.BrickColor = BrickColor.new("Smoky grey")
  2288. Part76.CanCollide = false
  2289. Part76.Material = Enum.Material.Metal
  2290. Part76.TopSurface = Enum.SurfaceType.Smooth
  2291. Part76.brickColor = BrickColor.new("Smoky grey")
  2292. Part77.Name = "triggerpart"
  2293. Part77.Parent = Model75
  2294. Part77.CFrame = CFrame.new(-64.4417648, 2.99728775, -54.1756401, 0.98480767, 0, 0.173648164, -0.173648164, 0, 0.98480767, 0, -1, 0)
  2295. Part77.Orientation = Vector3.new(-80, 90, -90)
  2296. Part77.Position = Vector3.new(-64.441764831543, 2.9972877502441, -54.175640106201)
  2297. Part77.Rotation = Vector3.new(-90, 10, 0)
  2298. Part77.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2299. Part77.Size = Vector3.new(0.024999855086207, 0.049999974668026, 0.10487762093544)
  2300. Part77.BottomSurface = Enum.SurfaceType.Smooth
  2301. Part77.BrickColor = BrickColor.new("Smoky grey")
  2302. Part77.CanCollide = false
  2303. Part77.Material = Enum.Material.Metal
  2304. Part77.TopSurface = Enum.SurfaceType.Smooth
  2305. Part77.brickColor = BrickColor.new("Smoky grey")
  2306. Weld78.Parent = Part77
  2307. Weld78.C0 = CFrame.new(-0.0201873779, 0, -0.0848140717, 0.866025329, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025329)
  2308. Weld78.Part0 = Part77
  2309. Weld78.Part1 = Part76
  2310. Weld78.part1 = Part76
  2311. Part79.Parent = Model4
  2312. Part79.CFrame = CFrame.new(-64.3820419, 2.88769794, -54.1756439, -0.996191263, 0, -0.0871554017, 0.0871554017, 0, -0.996191263, 0, -1, -0)
  2313. Part79.Orientation = Vector3.new(85, -90, 90)
  2314. Part79.Position = Vector3.new(-64.382041931152, 2.8876979351044, -54.175643920898)
  2315. Part79.Rotation = Vector3.new(90, -5, -180)
  2316. Part79.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2317. Part79.Size = Vector3.new(0.025000000372529, 0.04840000718832, 0.098399996757507)
  2318. Part79.BottomSurface = Enum.SurfaceType.Smooth
  2319. Part79.BrickColor = BrickColor.new("Smoky grey")
  2320. Part79.CanCollide = false
  2321. Part79.Material = Enum.Material.Metal
  2322. Part79.TopSurface = Enum.SurfaceType.Smooth
  2323. Part79.brickColor = BrickColor.new("Smoky grey")
  2324. Part80.Parent = Model4
  2325. Part80.CFrame = CFrame.new(-64.6288452, 2.93083215, -54.1756401, -0.999999881, 0, -2.98023224e-08, 2.98023224e-08, 0, -0.999999881, 0, -1, -0)
  2326. Part80.Orientation = Vector3.new(89.970001220703, -90, 90)
  2327. Part80.Position = Vector3.new(-64.628845214844, 2.9308321475983, -54.175640106201)
  2328. Part80.Rotation = Vector3.new(90, 0, -180)
  2329. Part80.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2330. Part80.Size = Vector3.new(0.025000000372529, 0.049999997019768, 0.20000000298023)
  2331. Part80.BottomSurface = Enum.SurfaceType.Smooth
  2332. Part80.BrickColor = BrickColor.new("Smoky grey")
  2333. Part80.CanCollide = false
  2334. Part80.Material = Enum.Material.Metal
  2335. Part80.TopSurface = Enum.SurfaceType.Smooth
  2336. Part80.brickColor = BrickColor.new("Smoky grey")
  2337. Part81.Parent = Model4
  2338. Part81.CFrame = CFrame.new(-67.75, 3.14064121, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2339. Part81.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2340. Part81.Position = Vector3.new(-67.75, 3.1406412124634, -54.175640106201)
  2341. Part81.Rotation = Vector3.new(-90, 0, 0)
  2342. Part81.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2343. Part81.Size = Vector3.new(0.29999947547913, 0.14760001003742, 0.029999997466803)
  2344. Part81.BottomSurface = Enum.SurfaceType.Smooth
  2345. Part81.BrickColor = BrickColor.new("Smoky grey")
  2346. Part81.CanCollide = false
  2347. Part81.Material = Enum.Material.Metal
  2348. Part81.TopSurface = Enum.SurfaceType.Smooth
  2349. Part81.brickColor = BrickColor.new("Smoky grey")
  2350. Part82.Parent = Model4
  2351. Part82.CFrame = CFrame.new(-64.1863174, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2352. Part82.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2353. Part82.Position = Vector3.new(-64.186317443848, 3.4756450653076, -54.175640106201)
  2354. Part82.Rotation = Vector3.new(-90, 0, 0)
  2355. Part82.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2356. Part82.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2357. Part82.BottomSurface = Enum.SurfaceType.Smooth
  2358. Part82.BrickColor = BrickColor.new("Smoky grey")
  2359. Part82.CanCollide = false
  2360. Part82.Material = Enum.Material.Metal
  2361. Part82.TopSurface = Enum.SurfaceType.Smooth
  2362. Part82.brickColor = BrickColor.new("Smoky grey")
  2363. Part83.Parent = Model4
  2364. Part83.CFrame = CFrame.new(-64.1371078, 3.47564507, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2365. Part83.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2366. Part83.Position = Vector3.new(-64.137107849121, 3.4756450653076, -54.175640106201)
  2367. Part83.Rotation = Vector3.new(-90, 0, 0)
  2368. Part83.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2369. Part83.Size = Vector3.new(0.024199809879065, 0.14760001003742, 0.050000000745058)
  2370. Part83.BottomSurface = Enum.SurfaceType.Smooth
  2371. Part83.BrickColor = BrickColor.new("Smoky grey")
  2372. Part83.CanCollide = false
  2373. Part83.Material = Enum.Material.Metal
  2374. Part83.TopSurface = Enum.SurfaceType.Smooth
  2375. Part83.brickColor = BrickColor.new("Smoky grey")
  2376. Part84.Name = "lufa"
  2377. Part84.Parent = Model4
  2378. Part84.CFrame = CFrame.new(-67.6095047, 3.20064092, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2379. Part84.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2380. Part84.Position = Vector3.new(-67.609504699707, 3.2006409168243, -54.175640106201)
  2381. Part84.Rotation = Vector3.new(-90, 0, 0)
  2382. Part84.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2383. Part84.Size = Vector3.new(0.028999615460634, 0.11999998986721, 0.12399999797344)
  2384. Part84.BottomSurface = Enum.SurfaceType.Smooth
  2385. Part84.BrickColor = BrickColor.new("Really black")
  2386. Part84.CanCollide = false
  2387. Part84.Material = Enum.Material.Metal
  2388. Part84.TopSurface = Enum.SurfaceType.Smooth
  2389. Part84.brickColor = BrickColor.new("Really black")
  2390. Part85.Parent = Model4
  2391. Part85.CFrame = CFrame.new(-63.5874939, 3.00063848, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2392. Part85.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2393. Part85.Position = Vector3.new(-63.587493896484, 3.0006384849548, -54.175640106201)
  2394. Part85.Rotation = Vector3.new(-90, 0, 0)
  2395. Part85.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2396. Part85.Size = Vector3.new(0.42499971389771, 0.10000000149012, 0.049999997019768)
  2397. Part85.BottomSurface = Enum.SurfaceType.Smooth
  2398. Part85.BrickColor = BrickColor.new("Smoky grey")
  2399. Part85.CanCollide = false
  2400. Part85.Material = Enum.Material.Metal
  2401. Part85.TopSurface = Enum.SurfaceType.Smooth
  2402. Part85.brickColor = BrickColor.new("Smoky grey")
  2403. Part86.Parent = Model4
  2404. Part86.CFrame = CFrame.new(-63.219429, 2.84079576, -54.1756401, 0.766044378, 0, 0.642787457, -0.642787457, 0, 0.766044378, 0, -1, 0)
  2405. Part86.Orientation = Vector3.new(-50, 90, -90)
  2406. Part86.Position = Vector3.new(-63.219429016113, 2.8407957553864, -54.175640106201)
  2407. Part86.Rotation = Vector3.new(-90, 40, 0)
  2408. Part86.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2409. Part86.Size = Vector3.new(0.49999976158142, 0.10000000149012, 0.075000002980232)
  2410. Part86.BottomSurface = Enum.SurfaceType.Smooth
  2411. Part86.BrickColor = BrickColor.new("Smoky grey")
  2412. Part86.CanCollide = false
  2413. Part86.Material = Enum.Material.Metal
  2414. Part86.TopSurface = Enum.SurfaceType.Smooth
  2415. Part86.brickColor = BrickColor.new("Smoky grey")
  2416. Part87.Parent = Model4
  2417. Part87.CFrame = CFrame.new(-63.0124969, 2.68813419, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2418. Part87.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2419. Part87.Position = Vector3.new(-63.012496948242, 2.6881341934204, -54.175640106201)
  2420. Part87.Rotation = Vector3.new(-90, 0, 0)
  2421. Part87.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2422. Part87.Size = Vector3.new(0.07499971985817, 0.10000000149012, 0.074999988079071)
  2423. Part87.BottomSurface = Enum.SurfaceType.Smooth
  2424. Part87.BrickColor = BrickColor.new("Smoky grey")
  2425. Part87.CanCollide = false
  2426. Part87.Material = Enum.Material.Metal
  2427. Part87.TopSurface = Enum.SurfaceType.Smooth
  2428. Part87.brickColor = BrickColor.new("Smoky grey")
  2429. Part88.Parent = Model4
  2430. Part88.CFrame = CFrame.new(-62.8874969, 2.87563467, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2431. Part88.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2432. Part88.Position = Vector3.new(-62.887496948242, 2.8756346702576, -54.175640106201)
  2433. Part88.Rotation = Vector3.new(-90, 0, 0)
  2434. Part88.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2435. Part88.Size = Vector3.new(0.17499972879887, 0.10000000149012, 0.39999997615814)
  2436. Part88.BottomSurface = Enum.SurfaceType.Smooth
  2437. Part88.BrickColor = BrickColor.new("Smoky grey")
  2438. Part88.CanCollide = false
  2439. Part88.Material = Enum.Material.Metal
  2440. Part88.TopSurface = Enum.SurfaceType.Smooth
  2441. Part88.brickColor = BrickColor.new("Smoky grey")
  2442. Part89.Parent = Model4
  2443. Part89.CFrame = CFrame.new(-62.8999939, 3.13814068, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2444. Part89.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2445. Part89.Position = Vector3.new(-62.899993896484, 3.1381406784058, -54.175640106201)
  2446. Part89.Rotation = Vector3.new(-90, 0, 0)
  2447. Part89.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2448. Part89.Size = Vector3.new(0.1499997228384, 0.10000000149012, 0.024999994784594)
  2449. Part89.BottomSurface = Enum.SurfaceType.Smooth
  2450. Part89.BrickColor = BrickColor.new("Smoky grey")
  2451. Part89.CanCollide = false
  2452. Part89.Material = Enum.Material.Metal
  2453. Part89.TopSurface = Enum.SurfaceType.Smooth
  2454. Part89.brickColor = BrickColor.new("Smoky grey")
  2455. Part90.Parent = Model4
  2456. Part90.CFrame = CFrame.new(-62.8999939, 3.10063934, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2457. Part90.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2458. Part90.Position = Vector3.new(-62.899993896484, 3.1006393432617, -54.175640106201)
  2459. Part90.Rotation = Vector3.new(-90, 0, 0)
  2460. Part90.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2461. Part90.Size = Vector3.new(0.1499997228384, 0.10000000149012, 0.049999997019768)
  2462. Part90.BottomSurface = Enum.SurfaceType.Smooth
  2463. Part90.BrickColor = BrickColor.new("Smoky grey")
  2464. Part90.CanCollide = false
  2465. Part90.Material = Enum.Material.Metal
  2466. Part90.TopSurface = Enum.SurfaceType.Smooth
  2467. Part90.brickColor = BrickColor.new("Smoky grey")
  2468. Part91.Parent = Model4
  2469. Part91.CFrame = CFrame.new(-63.3874931, 3.10063958, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2470. Part91.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2471. Part91.Position = Vector3.new(-63.387493133545, 3.1006395816803, -54.175640106201)
  2472. Part91.Rotation = Vector3.new(-90, 0, 0)
  2473. Part91.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2474. Part91.Size = Vector3.new(0.82499969005585, 0.10000000149012, 0.049999997019768)
  2475. Part91.BottomSurface = Enum.SurfaceType.Smooth
  2476. Part91.BrickColor = BrickColor.new("Smoky grey")
  2477. Part91.CanCollide = false
  2478. Part91.Material = Enum.Material.Metal
  2479. Part91.TopSurface = Enum.SurfaceType.Smooth
  2480. Part91.brickColor = BrickColor.new("Smoky grey")
  2481. Part92.Parent = Model4
  2482. Part92.CFrame = CFrame.new(-66.1044922, 3.26399612, -54.1759987, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2483. Part92.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2484. Part92.Position = Vector3.new(-66.1044921875, 3.2639961242676, -54.175998687744)
  2485. Part92.Rotation = Vector3.new(-90, 0, 0)
  2486. Part92.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2487. Part92.Size = Vector3.new(0.25999999046326, 0.15500001609325, 0.024999996647239)
  2488. Part92.BottomSurface = Enum.SurfaceType.Smooth
  2489. Part92.BrickColor = BrickColor.new("Really black")
  2490. Part92.CanCollide = false
  2491. Part92.Material = Enum.Material.SmoothPlastic
  2492. Part92.TopSurface = Enum.SurfaceType.Smooth
  2493. Part92.brickColor = BrickColor.new("Really black")
  2494. Part93.Parent = Model4
  2495. Part93.CFrame = CFrame.new(-65.7924957, 3.26399708, -54.1759987, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2496. Part93.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2497. Part93.Position = Vector3.new(-65.792495727539, 3.2639970779419, -54.175998687744)
  2498. Part93.Rotation = Vector3.new(-90, 0, 0)
  2499. Part93.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2500. Part93.Size = Vector3.new(0.25999999046326, 0.15500001609325, 0.024999996647239)
  2501. Part93.BottomSurface = Enum.SurfaceType.Smooth
  2502. Part93.BrickColor = BrickColor.new("Really black")
  2503. Part93.CanCollide = false
  2504. Part93.Material = Enum.Material.SmoothPlastic
  2505. Part93.TopSurface = Enum.SurfaceType.Smooth
  2506. Part93.brickColor = BrickColor.new("Really black")
  2507. Part94.Parent = Model4
  2508. Part94.CFrame = CFrame.new(-65.9419937, 3.25099945, -54.1759987, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2509. Part94.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2510. Part94.Position = Vector3.new(-65.941993713379, 3.2509994506836, -54.175998687744)
  2511. Part94.Rotation = Vector3.new(-90, 0, 0)
  2512. Part94.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2513. Part94.Size = Vector3.new(0.6370000243187, 0.15500001609325, 0.024999996647239)
  2514. Part94.BottomSurface = Enum.SurfaceType.Smooth
  2515. Part94.BrickColor = BrickColor.new("Really black")
  2516. Part94.CanCollide = false
  2517. Part94.Material = Enum.Material.SmoothPlastic
  2518. Part94.TopSurface = Enum.SurfaceType.Smooth
  2519. Part94.brickColor = BrickColor.new("Really black")
  2520. Part95.Parent = Model4
  2521. Part95.CFrame = CFrame.new(-64.6495895, 3.45064497, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2522. Part95.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2523. Part95.Position = Vector3.new(-64.649589538574, 3.4506449699402, -54.175640106201)
  2524. Part95.Rotation = Vector3.new(-90, 0, 0)
  2525. Part95.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2526. Part95.Size = Vector3.new(1.1000000238419, 0.14920002222061, 0.050000000745058)
  2527. Part95.BottomSurface = Enum.SurfaceType.Smooth
  2528. Part95.BrickColor = BrickColor.new("Smoky grey")
  2529. Part95.CanCollide = false
  2530. Part95.Material = Enum.Material.Metal
  2531. Part95.TopSurface = Enum.SurfaceType.Smooth
  2532. Part95.brickColor = BrickColor.new("Smoky grey")
  2533. Part96.Parent = Model4
  2534. Part96.CFrame = CFrame.new(-65.2861023, 3.44564176, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2535. Part96.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2536. Part96.Position = Vector3.new(-65.286102294922, 3.4456417560577, -54.175640106201)
  2537. Part96.Rotation = Vector3.new(-90, 0, 0)
  2538. Part96.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2539. Part96.Size = Vector3.new(0.22219982743263, 0.14920002222061, 0.03999999910593)
  2540. Part96.BottomSurface = Enum.SurfaceType.Smooth
  2541. Part96.BrickColor = BrickColor.new("Smoky grey")
  2542. Part96.CanCollide = false
  2543. Part96.Material = Enum.Material.Metal
  2544. Part96.TopSurface = Enum.SurfaceType.Smooth
  2545. Part96.brickColor = BrickColor.new("Smoky grey")
  2546. Part97.Parent = Model4
  2547. Part97.CFrame = CFrame.new(-64.5024948, 2.83813596, -54.1756401, -2.98023224e-08, 0, 0.999999821, -0.999999821, 0, -2.98023224e-08, -0, -1, 0)
  2548. Part97.Orientation = Vector3.new(0, 90, -90)
  2549. Part97.Position = Vector3.new(-64.502494812012, 2.8381359577179, -54.175640106201)
  2550. Part97.Rotation = Vector3.new(90, 89.970001220703, -180)
  2551. Part97.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2552. Part97.Size = Vector3.new(0.024999896064401, 0.049999967217445, 0.25499999523163)
  2553. Part97.BottomSurface = Enum.SurfaceType.Smooth
  2554. Part97.BrickColor = BrickColor.new("Smoky grey")
  2555. Part97.CanCollide = false
  2556. Part97.Material = Enum.Material.Metal
  2557. Part97.TopSurface = Enum.SurfaceType.Smooth
  2558. Part97.brickColor = BrickColor.new("Smoky grey")
  2559. Model98.Name = "mag"
  2560. Model98.Parent = Model4
  2561. Part99.Parent = Model98
  2562. Part99.CFrame = CFrame.new(-65.1491699, 2.66158533, -54.1756401, 0.98480767, 0, 0.173648179, -0.173648179, 0, 0.98480767, 0, -1, 0)
  2563. Part99.Orientation = Vector3.new(-80, 90, -90)
  2564. Part99.Position = Vector3.new(-65.149169921875, 2.6615853309631, -54.175640106201)
  2565. Part99.Rotation = Vector3.new(-90, 10, 0)
  2566. Part99.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2567. Part99.Size = Vector3.new(0.049999862909317, 0.097600013017654, 0.93659996986389)
  2568. Part99.BottomSurface = Enum.SurfaceType.Smooth
  2569. Part99.BrickColor = BrickColor.new("Smoky grey")
  2570. Part99.CanCollide = false
  2571. Part99.Material = Enum.Material.SmoothPlastic
  2572. Part99.TopSurface = Enum.SurfaceType.Smooth
  2573. Part99.brickColor = BrickColor.new("Smoky grey")
  2574. Part100.Name = "magpart"
  2575. Part100.Parent = Model98
  2576. Part100.CFrame = CFrame.new(-64.9891357, 2.63336635, -54.1756401, 0.98480773, 0, 0.173648193, -0.173648193, 0, 0.98480773, 0, -1, 0)
  2577. Part100.Orientation = Vector3.new(-80, 90, -90)
  2578. Part100.Position = Vector3.new(-64.989135742188, 2.6333663463593, -54.175640106201)
  2579. Part100.Rotation = Vector3.new(-90, 10, 0)
  2580. Part100.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2581. Part100.Size = Vector3.new(0.27499985694885, 0.14760001003742, 0.93659996986389)
  2582. Part100.BottomSurface = Enum.SurfaceType.Smooth
  2583. Part100.BrickColor = BrickColor.new("Smoky grey")
  2584. Part100.CanCollide = false
  2585. Part100.Material = Enum.Material.SmoothPlastic
  2586. Part100.TopSurface = Enum.SurfaceType.Smooth
  2587. Part100.brickColor = BrickColor.new("Smoky grey")
  2588. Weld101.Parent = Part100
  2589. Weld101.C0 = CFrame.new(-0.162506104, 0, 0, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
  2590. Weld101.Part0 = Part100
  2591. Weld101.Part1 = Part99
  2592. Weld101.part1 = Part99
  2593. Weld102.Parent = Part100
  2594. Weld102.C0 = CFrame.new(-0.162513733, 0, -0.475002289, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
  2595. Weld102.Part0 = Part100
  2596. Weld102.Part1 = Part105
  2597. Weld102.part1 = Part105
  2598. Weld103.Parent = Part100
  2599. Weld103.C0 = CFrame.new(0.00598907471, 0, -0.475001335, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
  2600. Weld103.Part0 = Part100
  2601. Weld103.Part1 = Part104
  2602. Weld103.part1 = Part104
  2603. Part104.Parent = Model98
  2604. Part104.CFrame = CFrame.new(-65.0657196, 2.16454124, -54.1756401, 0.98480767, 0, 0.173648179, -0.173648179, 0, 0.98480767, 0, -1, 0)
  2605. Part104.Orientation = Vector3.new(-80, 90, -90)
  2606. Part104.Position = Vector3.new(-65.065719604492, 2.1645412445068, -54.175640106201)
  2607. Part104.Rotation = Vector3.new(-90, 10, 0)
  2608. Part104.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2609. Part104.Size = Vector3.new(0.28699985146523, 0.14760001003742, 0.035999998450279)
  2610. Part104.BottomSurface = Enum.SurfaceType.Smooth
  2611. Part104.BrickColor = BrickColor.new("Smoky grey")
  2612. Part104.CanCollide = false
  2613. Part104.Material = Enum.Material.SmoothPlastic
  2614. Part104.TopSurface = Enum.SurfaceType.Smooth
  2615. Part104.brickColor = BrickColor.new("Smoky grey")
  2616. Part105.Parent = Model98
  2617. Part105.CFrame = CFrame.new(-65.2316666, 2.19380069, -54.1756401, 0.98480767, 0, 0.173648179, -0.173648179, 0, 0.98480767, 0, -1, 0)
  2618. Part105.Orientation = Vector3.new(-80, 90, -90)
  2619. Part105.Position = Vector3.new(-65.231666564941, 2.1938006877899, -54.175640106201)
  2620. Part105.Rotation = Vector3.new(-90, 10, 0)
  2621. Part105.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2622. Part105.Size = Vector3.new(0.049999862909317, 0.097600013017654, 0.036599934101105)
  2623. Part105.BottomSurface = Enum.SurfaceType.Smooth
  2624. Part105.BrickColor = BrickColor.new("Smoky grey")
  2625. Part105.CanCollide = false
  2626. Part105.Material = Enum.Material.SmoothPlastic
  2627. Part105.TopSurface = Enum.SurfaceType.Smooth
  2628. Part105.brickColor = BrickColor.new("Smoky grey")
  2629. Part106.Parent = Model4
  2630. Part106.CFrame = CFrame.new(-62.8999939, 2.67563486, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2631. Part106.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2632. Part106.Position = Vector3.new(-62.899993896484, 2.6756348609924, -54.175640106201)
  2633. Part106.Rotation = Vector3.new(-90, 0, 0)
  2634. Part106.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2635. Part106.Size = Vector3.new(0.1499997228384, 0.10000000149012, 0.049999982118607)
  2636. Part106.BottomSurface = Enum.SurfaceType.Smooth
  2637. Part106.BrickColor = BrickColor.new("Smoky grey")
  2638. Part106.CanCollide = false
  2639. Part106.Material = Enum.Material.Metal
  2640. Part106.TopSurface = Enum.SurfaceType.Smooth
  2641. Part106.brickColor = BrickColor.new("Smoky grey")
  2642. Part107.Parent = Model4
  2643. Part107.CFrame = CFrame.new(-65.8375015, 3.25064254, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2644. Part107.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2645. Part107.Position = Vector3.new(-65.837501525879, 3.2506425380707, -54.175640106201)
  2646. Part107.Rotation = Vector3.new(-90, 0, 0)
  2647. Part107.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2648. Part107.Size = Vector3.new(0.87499964237213, 0.14920002222061, 0.34999999403954)
  2649. Part107.BottomSurface = Enum.SurfaceType.Smooth
  2650. Part107.BrickColor = BrickColor.new("Smoky grey")
  2651. Part107.CanCollide = false
  2652. Part107.Material = Enum.Material.Metal
  2653. Part107.TopSurface = Enum.SurfaceType.Smooth
  2654. Part107.brickColor = BrickColor.new("Smoky grey")
  2655. Part108.Parent = Model4
  2656. Part108.CFrame = CFrame.new(-66.5124969, 3.31564188, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2657. Part108.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2658. Part108.Position = Vector3.new(-66.512496948242, 3.3156418800354, -54.175640106201)
  2659. Part108.Rotation = Vector3.new(-90, 0, 0)
  2660. Part108.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2661. Part108.Size = Vector3.new(0.47499963641167, 0.09680001437664, 0.079999998211861)
  2662. Part108.BottomSurface = Enum.SurfaceType.Smooth
  2663. Part108.BrickColor = BrickColor.new("Smoky grey")
  2664. Part108.CanCollide = false
  2665. Part108.Material = Enum.Material.Metal
  2666. Part108.TopSurface = Enum.SurfaceType.Smooth
  2667. Part108.brickColor = BrickColor.new("Smoky grey")
  2668. Part109.Parent = Model4
  2669. Part109.CFrame = CFrame.new(-66.9375, 3.20063877, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2670. Part109.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2671. Part109.Position = Vector3.new(-66.9375, 3.2006387710571, -54.175640106201)
  2672. Part109.Rotation = Vector3.new(-90, 0, 0)
  2673. Part109.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2674. Part109.Size = Vector3.new(1.3249995708466, 0.09680001437664, 0.099999994039536)
  2675. Part109.BottomSurface = Enum.SurfaceType.Smooth
  2676. Part109.BrickColor = BrickColor.new("Smoky grey")
  2677. Part109.CanCollide = false
  2678. Part109.Material = Enum.Material.Metal
  2679. Part109.TopSurface = Enum.SurfaceType.Smooth
  2680. Part109.brickColor = BrickColor.new("Smoky grey")
  2681. Part110.Parent = Model4
  2682. Part110.CFrame = CFrame.new(-67.7499924, 3.20064163, -54.1156425, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2683. Part110.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2684. Part110.Position = Vector3.new(-67.749992370605, 3.2006416320801, -54.115642547607)
  2685. Part110.Rotation = Vector3.new(-90, 0, 0)
  2686. Part110.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2687. Part110.Size = Vector3.new(0.29999947547913, 0.027600016444921, 0.1499999910593)
  2688. Part110.BottomSurface = Enum.SurfaceType.Smooth
  2689. Part110.BrickColor = BrickColor.new("Smoky grey")
  2690. Part110.CanCollide = false
  2691. Part110.Material = Enum.Material.Metal
  2692. Part110.TopSurface = Enum.SurfaceType.Smooth
  2693. Part110.brickColor = BrickColor.new("Smoky grey")
  2694. Part111.Parent = Model4
  2695. Part111.CFrame = CFrame.new(-67.2666092, 3.24776053, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  2696. Part111.Orientation = Vector3.new(-85, -90, 90)
  2697. Part111.Position = Vector3.new(-67.266609191895, 3.2477605342865, -54.175640106201)
  2698. Part111.Rotation = Vector3.new(-90, -5, 0)
  2699. Part111.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2700. Part111.Size = Vector3.new(0.12499952316284, 0.022000014781952, 0.044599998742342)
  2701. Part111.BottomSurface = Enum.SurfaceType.Smooth
  2702. Part111.BrickColor = BrickColor.new("Smoky grey")
  2703. Part111.CanCollide = false
  2704. Part111.Material = Enum.Material.Metal
  2705. Part111.TopSurface = Enum.SurfaceType.Smooth
  2706. Part111.brickColor = BrickColor.new("Smoky grey")
  2707. Part112.Name = "Handle"
  2708. Part112.Parent = Model4
  2709. Part112.CFrame = CFrame.new(-64.1584702, 2.78644061, -54.1756401, 0.939692557, 0, -0.342020094, 0.342020094, 0, 0.939692557, 0, -1, 0)
  2710. Part112.Orientation = Vector3.new(-70, -90, 90)
  2711. Part112.Position = Vector3.new(-64.158470153809, 2.7864406108856, -54.175640106201)
  2712. Part112.Rotation = Vector3.new(-90, -20, 0)
  2713. Part112.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2714. Part112.Size = Vector3.new(0.1999998241663, 0.1484000235796, 0.57459998130798)
  2715. Part112.BottomSurface = Enum.SurfaceType.Smooth
  2716. Part112.BrickColor = BrickColor.new("Smoky grey")
  2717. Part112.CanCollide = false
  2718. Part112.Material = Enum.Material.Metal
  2719. Part112.TopSurface = Enum.SurfaceType.Smooth
  2720. Part112.brickColor = BrickColor.new("Smoky grey""Smoky grey")
  2721. Part207.CanCollide = false
  2722. Part207.Material = Enum.Material.Metal
  2723. Part207.TopSurface = Enum.SurfaceType.Smooth
  2724. Part207.brickColor = BrickColor.new("Smoky grey")
  2725. Part208.Parent = Model4
  2726. Part208.CFrame = CFrame.new(-64.0217514, 3.36447239, -54.1756401, 0.642787397, 0, -0.766044617, 0.766044617, 0, 0.642787397, 0, -1, 0)
  2727. Part208.Orientation = Vector3.new(-40, -90, 90)
  2728. Part208.Position = Vector3.new(-64.021751403809, 3.3644723892212, -54.175640106201)
  2729. Part208.Rotation = Vector3.new(-90, -50, 0)
  2730. Part208.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2731. Part208.Size = Vector3.new(0.054999709129333, 0.15200001001358, 0.17720001935959)
  2732. Part208.BottomSurface = Enum.SurfaceType.Smooth
  2733. Part208.BrickColor = BrickColor.new("Really black")
  2734. Part208.CanCollide = false
  2735. Part208.Material = Enum.Material.Metal
  2736. Part208.TopSurface = Enum.SurfaceType.Smooth
  2737. Part208.brickColor = BrickColor.new("Really black")
  2738. Part209.Parent = Model4
  2739. Part209.CFrame = CFrame.new(-64.0746155, 2.48295736, -54.1756401, 0.939692438, 0, -0.342020065, 0.342020065, 0, 0.939692438, 0, -1, 0)
  2740. Part209.Orientation = Vector3.new(-70, -90, 90)
  2741. Part209.Position = Vector3.new(-64.074615478516, 2.4829573631287, -54.175640106201)
  2742. Part209.Rotation = Vector3.new(-90, -20, 0)
  2743. Part209.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2744. Part209.Size = Vector3.new(0.24999982118607, 0.1484000235796, 0.054999981075525)
  2745. Part209.BottomSurface = Enum.SurfaceType.Smooth
  2746. Part209.BrickColor = BrickColor.new("Smoky grey")
  2747. Part209.CanCollide = false
  2748. Part209.Material = Enum.Material.Metal
  2749. Part209.TopSurface = Enum.SurfaceType.Smooth
  2750. Part209.brickColor = BrickColor.new("Smoky grey")
  2751. Part210.Parent = Model4
  2752. Part210.CFrame = CFrame.new(-63.8624992, 3.26314044, -54.1756401, 0.999999881, 0, 0, 0, 0, 0.999999881, 0, -1, 0)
  2753. Part210.Orientation = Vector3.new(-89.970001220703, 0, 0)
  2754. Part210.Position = Vector3.new(-63.862499237061, 3.2631404399872, -54.175640106201)
  2755. Part210.Rotation = Vector3.new(-90, 0, 0)
  2756. Part210.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2757. Part210.Size = Vector3.new(0.12499971687794, 0.20000000298023, 0.075000002980232)
  2758. Part210.BottomSurface = Enum.SurfaceType.Smooth
  2759. Part210.BrickColor = BrickColor.new("Smoky grey")
  2760. Part210.CanCollide = false
  2761. Part210.Material = Enum.Material.Metal
  2762. Part210.TopSurface = Enum.SurfaceType.Smooth
  2763. Part210.brickColor = BrickColor.new("Smoky grey")
  2764. Part211.Parent = Model4
  2765. Part211.CFrame = CFrame.new(-67.3173981, 3.39796901, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  2766. Part211.Orientation = Vector3.new(-85, -90, 90)
  2767. Part211.Position = Vector3.new(-67.317398071289, 3.3979690074921, -54.175640106201)
  2768. Part211.Rotation = Vector3.new(-90, -5, 0)
  2769. Part211.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2770. Part211.Size = Vector3.new(0.04999952018261, 0.022000014781952, 0.039599999785423)
  2771. Part211.BottomSurface = Enum.SurfaceType.Smooth
  2772. Part211.BrickColor = BrickColor.new("Smoky grey")
  2773. Part211.CanCollide = false
  2774. Part211.Material = Enum.Material.Metal
  2775. Part211.TopSurface = Enum.SurfaceType.Smooth
  2776. Part211.brickColor = BrickColor.new("Smoky grey")
  2777. Part212.Parent = Model4
  2778. Part212.CFrame = CFrame.new(-67.3274689, 3.42720032, -54.1756401, 0.996194601, 0, -0.0871557146, 0.0871557146, 0, 0.996194601, 0, -1, 0)
  2779. Part212.Orientation = Vector3.new(-85, -90, 90)
  2780. Part212.Position = Vector3.new(-67.32746887207, 3.4272003173828, -54.175640106201)
  2781. Part212.Rotation = Vector3.new(-90, -5, 0)
  2782. Part212.Color = Color3.new(0.356863, 0.364706, 0.411765)
  2783. Part212.Size = Vector3.new(0.034999519586563, 0.022000014781952, 0.039599999785423)
  2784. Part212.BottomSurface = Enum.SurfaceType.Smooth
  2785. Part212.BrickColor = BrickColor.new("Smoky grey")
  2786. Part212.CanCollide = false
  2787. Part212.Material = Enum.Material.Metal
  2788. Part212.TopSurface = Enum.SurfaceType.Smooth
  2789. Part212.brickColor = BrickColor.new("Smoky grey")
  2790. Folder213.Name = "settings"
  2791. Folder213.Parent = Tool0
  2792. NumberValue214.Name = "bchambered"
  2793. NumberValue214.Parent = Folder213
  2794. NumberValue215.Name = "magleft"
  2795. NumberValue215.Parent = Folder213
  2796. NumberValue215.Value = 100
  2797. NumberValue216.Name = "bspeed"
  2798. NumberValue216.Parent = Folder213
  2799. NumberValue216.Value = 50.7
  2800. NumberValue217.Name = "inmag"
  2801. NumberValue217.Parent = Folder213
  2802. NumberValue217.Value = 30
  2803. NumberValue218.Name = "maxwpenetration"
  2804. NumberValue218.Parent = Folder213
  2805. NumberValue218.Value = 1
  2806. StringValue219.Name = "mode"
  2807. StringValue219.Parent = Folder213
  2808. StringValue219.Value = "auto"
  2809. NumberValue220.Name = "speed"
  2810. NumberValue220.Parent = Folder213
  2811. NumberValue220.Value = 0.086
  2812. NumberValue221.Name = "maxmagcapacity"
  2813. NumberValue221.Parent = Folder213
  2814. NumberValue221.Value = 30
  2815. ScreenGui222.Name = "gui"
  2816. ScreenGui222.Parent = Tool0
  2817. ScreenGui222.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  2818. TextLabel223.Name = "ammo"
  2819. TextLabel223.Parent = ScreenGui222
  2820. TextLabel223.Position = UDim2.new(1, -220, 1, -100)
  2821. TextLabel223.Size = UDim2.new(0, 150, 0, 60)
  2822. TextLabel223.AnchorPoint = Vector2.new(0.5, 0.5)
  2823. TextLabel223.BackgroundColor = BrickColor.new("Really black")
  2824. TextLabel223.BackgroundColor3 = Color3.new(0, 0, 0)
  2825. TextLabel223.BackgroundTransparency = 0.64999997615814
  2826. TextLabel223.Font = Enum.Font.SourceSans
  2827. TextLabel223.FontSize = Enum.FontSize.Size14
  2828. TextLabel223.Text = "ammo"
  2829. TextLabel223.TextColor = BrickColor.new("Institutional white")
  2830. TextLabel223.TextColor3 = Color3.new(1, 1, 1)
  2831. TextLabel223.TextScaled = true
  2832. TextLabel223.TextSize = 14
  2833. TextLabel223.TextWrap = true
  2834. TextLabel223.TextWrapped = true
  2835. TextLabel224.Name = "mag"
  2836. TextLabel224.Parent = TextLabel223
  2837. TextLabel224.Position = UDim2.new(0, 190, 0, 30)
  2838. TextLabel224.Size = UDim2.new(0, 60, 0, 60)
  2839. TextLabel224.AnchorPoint = Vector2.new(0.5, 0.5)
  2840. TextLabel224.BackgroundColor = BrickColor.new("Really black")
  2841. TextLabel224.BackgroundColor3 = Color3.new(0, 0, 0)
  2842. TextLabel224.BackgroundTransparency = 0.64999997615814
  2843. TextLabel224.Font = Enum.Font.SourceSans
  2844. TextLabel224.FontSize = Enum.FontSize.Size14
  2845. TextLabel224.Text = "mag"
  2846. TextLabel224.TextColor = BrickColor.new("Institutional white")
  2847. TextLabel224.TextColor3 = Color3.new(1, 1, 1)
  2848. TextLabel224.TextScaled = true
  2849. TextLabel224.TextSize = 14
  2850. TextLabel224.TextWrap = true
  2851. TextLabel224.TextWrapped = true
  2852. TextLabel225.Name = "chambered"
  2853. TextLabel225.Parent = TextLabel223
  2854. TextLabel225.Position = UDim2.new(0, 35, 0, 20)
  2855. TextLabel225.Size = UDim2.new(0, 30, 0, 30)
  2856. TextLabel225.AnchorPoint = Vector2.new(0.5, 0.5)
  2857. TextLabel225.BackgroundColor = BrickColor.new("Really black")
  2858. TextLabel225.BackgroundColor3 = Color3.new(0, 0, 0)
  2859. TextLabel225.BackgroundTransparency = 1
  2860. TextLabel225.Font = Enum.Font.SourceSans
  2861. TextLabel225.FontSize = Enum.FontSize.Size14
  2862. TextLabel225.Text = "c"
  2863. TextLabel225.TextColor = BrickColor.new("Institutional white")
  2864. TextLabel225.TextColor3 = Color3.new(1, 1, 1)
  2865. TextLabel225.TextScaled = true
  2866. TextLabel225.TextSize = 14
  2867. TextLabel225.TextWrap = true
  2868. TextLabel225.TextWrapped = true
  2869. for i,v in pairs(mas:GetChildren()) do
  2870.     v.Parent = owner:FindFirstChildOfClass("Backpack")
  2871.     pcall(function() v:MakeJoints() end)
  2872. end
  2873. mas:Destroy()
  2874. for i,v in pairs(cors) do
  2875.     spawn(function()
  2876.         pcall(v)
  2877.     end)
  2878. end
  2879. NLS([[local players = game:GetService("Players")
  2880. local runservice = game:GetService("RunService")
  2881. local tweenservice = game:GetService("TweenService")
  2882. local debris = game:GetService("Debris")
  2883. local easingstyles = Enum.EasingStyle
  2884. local easingdirs = Enum.EasingDirection
  2885.  
  2886. --stuff
  2887. local tool = script.Parent
  2888. local remote = tool:WaitForChild("gunremote")
  2889. local gunmodel = tool.GunModel
  2890. local handle = gunmodel:FindFirstChild("Handle")
  2891. local mainpart = gunmodel:FindFirstChild("mainpart")
  2892. local owner = players.LocalPlayer
  2893. local ownergui = owner:FindFirstChildOfClass("PlayerGui")
  2894. local cam = workspace.CurrentCamera
  2895. local mouse = owner:GetMouse()
  2896. local character
  2897. local humanoid
  2898. local head
  2899. local hrp
  2900. local larmcweld
  2901. local rarmcweld
  2902. local guncweld
  2903. local guncmodel
  2904. local maincpart
  2905. local boltcweld
  2906. local boltcmainpart
  2907. local gunclufa
  2908. local magcmodel
  2909. local reloadmagcmodel
  2910. local reloadmagcpart
  2911. local reloadmagcweld
  2912. local viewmodel
  2913.  
  2914. --vars
  2915. local state = "unequipped"
  2916. local adsing = false
  2917. local rstepgun
  2918. local savedfov
  2919. local currentlyfps = false
  2920. offset = CFrame.new()
  2921.  
  2922. --ticks
  2923. local equiptick
  2924. local shoottick
  2925. local delta
  2926. local frametick = tick()
  2927.  
  2928. --bullet data
  2929. local settingfolder = tool:WaitForChild("settings")
  2930. local bchambered = settingfolder:WaitForChild("bchambered")
  2931. local binmag = settingfolder:WaitForChild("inmag")
  2932. local gunspeed = settingfolder:WaitForChild("speed")
  2933. local magleft = settingfolder:WaitForChild("magleft")
  2934.  
  2935. --gui data
  2936. local gui = tool:WaitForChild("gui")
  2937. local ammogui = gui:WaitForChild("ammo")
  2938. local maggui = ammogui:WaitForChild("mag")
  2939. local chamberedgui = ammogui:WaitForChild("chambered")
  2940.  
  2941. magleft.Changed:Connect(function(new)
  2942.     maggui.Text = tostring(new)
  2943. end)
  2944. binmag.Changed:Connect(function(new)
  2945.     ammogui.Text = tostring(new)
  2946. end)
  2947. bchambered.Changed:Connect(function(new)
  2948.     chamberedgui.Text = tostring(new)
  2949. end)
  2950.  
  2951. --recoil data
  2952. local currentcspeed = 1.5
  2953. local recmult = 1
  2954. local rectime = 0.1
  2955. local recdampmult = 3
  2956. local recxamount = 10
  2957. local recyamount = 4
  2958. local reczamount = 15
  2959. local recoilcf = CFrame.new()
  2960. local frametick = tick()
  2961. local recoiltick = tick()
  2962.  
  2963. --
  2964. local shellfallspeed = 60
  2965. local shellflytime = 1
  2966.  
  2967. --gun parts
  2968. local gunparts = {}
  2969.  
  2970. for i,v in pairs(gunmodel:GetDescendants()) do
  2971.     if v:IsA("BasePart") then
  2972.         table.insert(gunparts, v)
  2973.     end
  2974. end
  2975.  
  2976. function guntransparency(tr)
  2977.     for i,v in pairs(gunparts) do --looping through an already made table alone is faster than getdescendants and then looping
  2978.         v.LocalTransparencyModifier = tr
  2979.     end
  2980. end
  2981.  
  2982. function modeltransparency(m, tr) -- this is for stuff like fps mags
  2983.     for i,v in pairs(m:GetDescendants()) do
  2984.         if v:IsA("BasePart") then
  2985.             v.LocalTransparencyModifier = tr
  2986.         end
  2987.     end
  2988. end
  2989.  
  2990. --pose data
  2991. poses = {
  2992.     equip = {
  2993.         [1] = {
  2994.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  2995.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  2996.             hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023483, -0.133021921, 0.631326377, 0.0301536229, 0.984807849, 0.17100969, -0.644483387, -0.111618645, 0.756427288), easingstyles.Sine, easingdirs.In},
  2997.             gw = {CFrame.new(-0.459022522, 0.0749015808, 0.17483139, 2.98023224e-08, 0.999999404, 5.58793545e-08, 0.939692438, -2.68220901e-07, -0.342020184, -0.342019945, 0, -0.939691842), easingstyles.Sine, easingdirs.InOut},
  2998.             tw = {CFrame.new(0, 0, 0, 0.642787516, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787516), easingstyles.Sine, easingdirs.In},
  2999.             raw = {CFrame.new(0.832485199, -0.995883942, -0.72026825, 0.986079514, -0.00105690956, 0.166270182, 0.166003779, -0.0506849214, -0.984821558, 0.00946819782, 0.998714149, -0.0498039126), easingstyles.Sine, easingdirs.InOut},
  3000.             law = {CFrame.new(0.0268783569, -1.61439657, -2.11585999, -0.222152725, -0.453005493, 0.863385201, 0.810823023, -0.57762152, -0.0944410712, 0.541492224, 0.67907244, 0.495627582), easingstyles.Sine, easingdirs.InOut},
  3001.         },
  3002.         [2] = {
  3003.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3004.             bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Linear, easingdirs.InOut},
  3005.             hw = {CFrame.new(-0.0665130615, 0, -0.0558013916, 0.764023662, -0.133021936, 0.631326437, 0.0301536229, 0.984807849, 0.17100969, -0.644483507, -0.111618653, 0.756427407), easingstyles.Linear, easingdirs.InOut},
  3006.             gw = {CFrame.new(-0.459018707, -0.325099945, 0.174833298, 2.98023224e-08, 0.999998987, 1.04308128e-07, 0.939692378, -3.87430191e-07, -0.342020214, -0.342019826, 1.49011612e-08, -0.939691484), easingstyles.Linear, easingdirs.InOut},
  3007.             raw = {CFrame.new(0.810245514, -1.00666809, -0.31388092, 0.978280365, 2.5331974e-06, 0.2072853, 0.206869617, -0.0633132458, -0.976317585, 0.0131213665, 0.997993708, -0.0619386435), easingstyles.Sine, easingdirs.InOut},
  3008.             law = {CFrame.new(0.0326385498, -1.61523056, -2.11762619, -0.256376684, -0.429218709, 0.866049647, 0.79393369, -0.604562879, -0.0645961761, 0.55130744, 0.671025276, 0.495767117), easingstyles.Sine, easingdirs.InOut},
  3009.         },
  3010.         [3] = {
  3011.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3012.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
  3013.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
  3014.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
  3015.             raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Sine, easingdirs.Out},
  3016.             law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Sine, easingdirs.Out},
  3017.         }
  3018.     },
  3019.     shoot = {
  3020.         [1] = {
  3021.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3022.             bw = {CFrame.new(0.0999984741, 0.104999542, 0.0449981689, 0.99999404, -1.41561031e-06, -1.00024045e-06, -1.41561031e-06, 0.999997914, -2.98023224e-08, -1.00024045e-06, -2.98023224e-08, 0.999999702), easingstyles.Back, easingdirs.Out},
  3023.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
  3024.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
  3025.             raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Back, easingdirs.Out},
  3026.             law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Back, easingdirs.Out},
  3027.         },
  3028.         [2] = {
  3029.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3030.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
  3031.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Back, easingdirs.Out},
  3032.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Back, easingdirs.Out},
  3033.             raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Back, easingdirs.Out},
  3034.             law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Back, easingdirs.Out},
  3035.         }
  3036.     },
  3037.     reload = {
  3038.         [1] = {
  3039.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3040.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.InOut},
  3041.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.766044319, -0.11161875, 0.633022487, -3.7252903e-08, 0.984807789, 0.17364797, -0.642787755, -0.133022055, 0.754406393), easingstyles.Sine, easingdirs.InOut},
  3042.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.InOut},
  3043.             raw = {CFrame.new(1.26604462, -0.913009644, -0.537094116, 0.999999821, -3.57627869e-07, 6.27093755e-08, 4.48221016e-10, -0.173648104, -0.984807611, 3.85997794e-07, 0.984807551, -0.173648149) * CFrame.new(0,0,0.5), easingstyles.Sine, easingdirs.InOut},
  3044.             law = {CFrame.new(-1.08869362, -1.33496189, -1.19934082, 0.766044259, 4.22527791e-10, -0.642787695, -0.111618742, 0.98480767, -0.133021995, 0.633022428, 0.17364791, 0.754406333) * CFrame.new(0,0,0.5) * CFrame.new(0,-0.8,0), easingstyles.Sine, easingdirs.InOut},
  3045.         },
  3046.         [2] = {
  3047.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3048.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  3049.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.864329457, -0.11161875, 0.490383387, 0.03015358, 0.984807789, 0.171009868, -0.502021194, -0.133022055, 0.854564071), easingstyles.Sine, easingdirs.In},
  3050.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
  3051.             raw = {CFrame.new(1.11267471, -0.963647842, -0.780944824, 0.96286577, 0.230811596, -0.140053496, -0.10095071, -0.173324212, -0.979677141, -0.250395477, 0.957436204, -0.143587425) * CFrame.new(0.2,0,0) * CFrame.new(0,0,0.5) * CFrame.Angles(0,-0.05,0), easingstyles.Sine, easingdirs.In},
  3052.             law = {CFrame.new(-0.289166451, -0.800122261, -1.59056854, 0.533511698, -0.820919991, -0.203605846, -0.0797704309, 0.190816656, -0.978378952, 0.842022419, 0.53821826, 0.0363177806) * CFrame.new(0,0,0.5) * CFrame.new(0,0,0), easingstyles.Sine, easingdirs.In},
  3053.         },
  3054.         [3] = {
  3055.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3056.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.Out},
  3057.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.Out},
  3058.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.Out},
  3059.             raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442) * CFrame.new(0.3,0,0) * CFrame.new(0,0,0.5) * CFrame.Angles(0,-0.1,0), easingstyles.Sine, easingdirs.Out},
  3060.             law = {CFrame.new(-0.798740387, -0.729963303, -1.94239807, 0.788041711, -0.601489127, -0.131151706, -0.0967602059, 0.0893746093, -0.991286814, 0.60796994, 0.793865442, 0.0122306943) * CFrame.new(0,0,0.5) * CFrame.new(0.5,0,-0.4), easingstyles.Sine, easingdirs.Out},
  3061.         },
  3062.         [4] = {
  3063.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3064.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.In},
  3065.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.In},
  3066.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.In},
  3067.             raw = {CFrame.new(0.951341629, -1.00614738, -0.96661377, 0.887119889, 0.393562078, -0.241094485, -0.185951054, -0.173324212, -0.967150807, -0.422421396, 0.902810454, -0.0805761442) * CFrame.Angles(0,-0.45,0) * CFrame.new(0,0,0.5) * CFrame.Angles(0,-0.15,0), easingstyles.Sine, easingdirs.In},
  3068.             law = {CFrame.new(-0.733897209, -0.698638916, -1.94715118, 0.733374, -0.676505506, -0.0670995787, -0.0810378194, 0.0110032074, -0.996650279, 0.67497766, 0.736355007, -0.0467530787) * CFrame.new(0,0,0.5) * CFrame.Angles(0.15,0,0) * CFrame.new(-0.1,0,0), easingstyles.Sine, easingdirs.In},
  3069.         },
  3070.         [5] = {
  3071.             --mw = {CFrame.new(-0.2264328, 0.0250015259, -0.604776859, 0.98480773, 0, 0.173648193, 0, 1, 0, -0.173648193, 0, 0.98480773), easingstyles.Sine, easingdirs.In},
  3072.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Sine, easingdirs.Out},
  3073.             hw = {CFrame.new(-0.055809021, 0, -0.0665130615, 0.936352491, -0.11161875, 0.332844049, 0.0593910292, 0.984807789, 0.163175717, -0.34600088, -0.133022055, 0.928756297), easingstyles.Sine, easingdirs.Out},
  3074.             gw = {CFrame.new(-0.0572328568, -0.980491638, -0.278923035, 0.0310192183, 0.998318493, 0.0487680063, 0.937351048, -0.0121154999, -0.34816578, -0.346991748, 0.0565129519, -0.936161935), easingstyles.Sine, easingdirs.Out},
  3075.             raw = {CFrame.new(0.956790924, -0.985137939, -0.964424133, 0.887119889, 0.382671088, -0.258031964, -0.185951054, -0.215345785, -0.95867002, -0.422421396, 0.898436666, -0.119879492) * CFrame.Angles(0,-0.55,0) * CFrame.new(0,0,0.4) * CFrame.Angles(0,-0.1,0), easingstyles.Sine, easingdirs.Out},
  3076.             law = {CFrame.new(-0.702912331, -0.529985428, -1.91860962, 0.691018224, -0.696123064, -0.194694132, -0.3362284, -0.0711144507, -0.939091682, 0.639877796, 0.714391232, -0.28319779) * CFrame.new(0,0,0.5) * CFrame.new(0.1,0,0), easingstyles.Sine, easingdirs.Out},
  3077.         }
  3078.     },
  3079.     aim = {
  3080.         [1] = {
  3081.             bw = {CFrame.new(-0.299999237, 0.104995728, 0.0449981689, 1, 3.33557523e-06, 2.00149793e-06, -3.33557591e-06, 1, 3.57635798e-07, -2.0014968e-06, -3.57642477e-07, 1), easingstyles.Back, easingdirs.Out},
  3082.             hw = {CFrame.new(0, 0, 0, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), easingstyles.Sine, easingdirs.Out},
  3083.             gw = {CFrame.new(-0.209030151, -1.02510452, -0.225169182, 9.54675698e-08, 0.99999994, 8.86497986e-10, 0.939692557, -1.49011612e-07, -0.342020124, -0.342020124, 3.348487e-08, -0.939692557), easingstyles.Sine, easingdirs.Out},
  3084.             raw = {CFrame.new(0.659713745, -1.45935869, 0.354370117, 0.99999994, -2.98023224e-08, 3.35276127e-08, 3.53902578e-08, -3.21306288e-08, -0.999999881, -2.98023224e-08, 1, -3.0035153e-08), easingstyles.Sine, easingdirs.Out},
  3085.             law = {CFrame.new(-0.000568389893, -1.6040411, -2.10723114, -0.0793336332, -0.53615725, 0.840381742, 0.862421989, -0.459712416, -0.211878672, 0.499934286, 0.707954705, 0.498864472), easingstyles.Sine, easingdirs.Out},
  3086.         }
  3087.     },
  3088.     --individual poses
  3089.     reloadmag = {
  3090.         [1] = {
  3091.             mag = {CFrame.new(0.383216858, 0.00605773926, -0.895876884, 0.982579589, -0.0196594987, -0.184799746, 0.0194191728, 0.999806643, -0.00311047747, 0.184825167, -0.000532366452, 0.982771337), easingstyles.Sine, easingdirs.In}
  3092.         },
  3093.         [2] = {
  3094.             mag = {CFrame.new(-0.341659546, -0.00597381592, -0.82459569, 0.943051159, -0.0805884004, 0.32273832, 0.108094886, 0.99179846, -0.0682025552, -0.314594954, 0.0992048606, 0.944027781) * CFrame.new(-0.2,0.1,0), easingstyles.Sine, easingdirs.Out}
  3095.         },
  3096.         [3] = {
  3097.             mag = {CFrame.new(-0.343078613, 0.033826828, -0.555139065, 0.931312561, -0.056615673, 0.359807789, 0.0651112646, 0.997804642, -0.0115158707, -0.358372539, 0.0341522247, 0.932950974) * CFrame.Angles(0,0.3,0) * CFrame.new(-0.3,0.2,0), easingstyles.Sine, easingdirs.In}
  3098.         },
  3099.         [4] = {
  3100.             mag = {CFrame.new(-0.226425171, 0.0250015259, -0.604773998, 0.984800279, 1.56462193e-06, 0.173645124, 1.68196857e-06, 0.999979436, -5.66244125e-07, -0.173649177, -8.04662704e-07, 0.984803438), easingstyles.Sine, easingdirs.Out}
  3101.         }
  3102.     }
  3103. }
  3104.  
  3105. function clonemag(parent, name)
  3106.     local clonedmag = magcmodel:Clone()
  3107.     local clonedmagpart = clonedmag:WaitForChild("magpart")
  3108.     clonedmag.Name = name
  3109.     clonedmag.Parent = parent
  3110.     return clonedmag, clonedmagpart
  3111. end
  3112.  
  3113. function tween(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime, WHAT, goal)
  3114.     local info = TweenInfo.new(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime)
  3115.     local goals = goal
  3116.     local anim = tweenservice:Create(WHAT, info, goals)
  3117.     anim:Play()
  3118. end
  3119.  
  3120. function linearlerp(a,b,t)
  3121.     return a+(b-a)*t
  3122. end
  3123.  
  3124. function clientdropshell()
  3125.     local shell = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
  3126.     shell.Enabled = false
  3127.     shell.Name = "shell;"
  3128.     shell.Shape = "Cylinder"
  3129.     shell.Size = Vector3.new(0.25,0.1,0.1)
  3130.     shell.BrickColor = BrickColor.new("New Yeller")
  3131.     shell.Material = "Glass"
  3132.     shell.Anchored = true
  3133.     shell.CanCollide = false
  3134.     shell.CFrame = boltcweld.Part1.CFrame * CFrame.new(0.1,0,0)
  3135.     shell:BreakJoints()
  3136.     local shellfunc
  3137.     local shelltimepassed = 0
  3138.     local playedshells = false
  3139.     local currentshelly = math.random(1,10)/5
  3140.     local currentshellx = math.random(8,15)
  3141.     local ejectlookv = boltcweld.Part1.CFrame.upVector
  3142.     local ejectrightv = boltcweld.Part1.CFrame.rightVector
  3143.     shellfunc = runservice.Stepped:Connect(function(_, delta)
  3144.         shelltimepassed = shelltimepassed + delta
  3145.         shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectlookv)
  3146.             * CFrame.new(0,currentshelly*delta,-currentshellx*delta)
  3147.         shell.CFrame = CFrame.new(shell.Position, shell.Position+ejectrightv)
  3148.             * CFrame.Angles(0,math.pi/2,0)
  3149.         currentshelly = currentshelly - delta*shellfallspeed
  3150.         if shelltimepassed > shellflytime then
  3151.             shell:Destroy()
  3152.             shellfunc:Disconnect()
  3153.         end
  3154.     end)
  3155. end
  3156.  
  3157. function pemit(part, color, minsize, maxsize, minlift, maxlift, speed, direction, lifetime)
  3158.     pcall(function() --tusk has a particle emitter limit thats why im pcalling
  3159.         local em = Instance.new("ParticleEmitter", part)
  3160.         em.Color = ColorSequence.new(color)
  3161.         em.Texture = "rbxassetid://375847957"
  3162.         em.Name = "gemit"
  3163.         em.Drag = 10
  3164.         em.EmissionDirection = direction
  3165.         em.Speed = NumberRange.new(speed)
  3166.         em.Rate = 500
  3167.         em.Lifetime = NumberRange.new(minlift,maxlift)
  3168.         em.SpreadAngle = Vector2.new(-20,20)
  3169.         em.Transparency = NumberSequence.new(0.75, 1)
  3170.         em.Size = NumberSequence.new(minsize, maxsize)
  3171.         task.spawn(function()
  3172.             task.wait(lifetime)
  3173.             em.Enabled = false
  3174.             debris:AddItem(em, 0.5)
  3175.         end)
  3176.     end)
  3177. end
  3178.  
  3179. function muzzleflash(size, transparency)
  3180.     local e = Instance.new("SpawnLocation", gunmodel) --spawnlocation because its one of the only baseparts that dont go under tusks basepart limit
  3181.     e.Enabled = false
  3182.     Instance.new("SpecialMesh", e).MeshType = Enum.MeshType.Sphere
  3183.     local lig = Instance.new("PointLight", e)
  3184.     lig.Brightness = 1-transparency
  3185.     e.Size = size
  3186.     e.Transparency = transparency
  3187.     e.CanCollide = false
  3188.     e.Anchored = true
  3189.     e.Material = Enum.Material.Neon
  3190.     e.CFrame = gunclufa.CFrame * CFrame.new((-size.x/2)-0.3,0,0)
  3191.     pemit(gunclufa, Color3.fromRGB(255,255,255), 0.15, 0.35, 0.1, 0.2, 10, "Left", 0.1)
  3192.     debris:AddItem(e, 0.025)
  3193. end
  3194.  
  3195. function cpose(posname, posnumb, speed, backupt)
  3196.     if equiptick == backupt then
  3197.         if currentlyfps then
  3198.             if posname == "shoot" and posnumb == 1 then
  3199.                 clientdropshell()
  3200.                 muzzleflash(Vector3.new(2,0.6,0.6), math.random(1,15)/10)
  3201.                 if adsing then
  3202.                     offset = offset * CFrame.new(0,0,0.05) * CFrame.Angles(0,0,0.015)
  3203.                 else
  3204.                     offset = offset * CFrame.new(0,0,0.1) * CFrame.Angles(0,0,0.03)
  3205.                 end
  3206.             elseif posname == "equip" and posnumb == 2 then
  3207.                 recoiltick = tick()
  3208.                 recoilup(0, -0.35, 1, 0.3, recoiltick)
  3209.                 if bchambered.Value > 0 then
  3210.                     clientdropshell()
  3211.                 end
  3212.             elseif posname == "reload" then
  3213.                 if posnumb == 1 then
  3214.                     recoilup(-0.7, 0.3, -1, 0.4, recoiltick)
  3215.                 end
  3216.             end
  3217.         end
  3218.         tween(speed, poses[posname][posnumb].raw[2], poses[posname][posnumb].raw[3], 0, false, 0, rarmcweld, {C0 = poses[posname][posnumb].raw[1]})
  3219.         tween(speed, poses[posname][posnumb].law[2], poses[posname][posnumb].law[3], 0, false, 0, larmcweld, {C0 = poses[posname][posnumb].law[1]})
  3220.         tween(speed, poses[posname][posnumb].gw[2], poses[posname][posnumb].gw[3], 0, false, 0, guncweld, {C0 = poses[posname][posnumb].gw[1]})
  3221.         tween(speed, poses[posname][posnumb].bw[2], poses[posname][posnumb].bw[3], 0, false, 0, boltcweld, {C0 = poses[posname][posnumb].bw[1]})
  3222.     end
  3223. end
  3224.  
  3225. function ciposeconvert(posname, posnumb, posdir, speed, backupt)
  3226.     if equiptick == backupt then
  3227.         if posname == "reloadmag" then
  3228.             if posnumb == 1 then
  3229.                 reloadmagcmodel, reloadmagcpart = clonemag(guncmodel, "mag")
  3230.                 reloadmagcweld = Instance.new("Weld", reloadmagcmodel)
  3231.                 reloadmagcweld.Name = "handmagweld"
  3232.                 reloadmagcweld.Part0 = maincpart
  3233.                 reloadmagcweld.Part1 = reloadmagcpart
  3234.                 reloadmagcweld.C0 = CFrame.new(0.771263123, -2.07442856, -2.45114708, 0.108410954, 0.822345078, -0.558561325, -0.0455624163, 0.565389991, 0.823553741, 0.993062019, -0.0638353601, 0.0987635553)
  3235.                 if not currentlyfps then
  3236.                     modeltransparency(reloadmagcmodel, 1)
  3237.                 end
  3238.             elseif posnumb == 3 then
  3239.                 local flingmagm, flingmagp = clonemag(guncmodel, "throw")
  3240.                 local magv = Instance.new("BodyVelocity", flingmagp)
  3241.                 magv.MaxForce = Vector3.new(1/0,1/0,1/0)
  3242.                 magv.Velocity = (mainpart.CFrame.lookVector*-math.random(5,10)) + (mainpart.CFrame.rightVector*-math.random(10,20)) + (mainpart.CFrame.upVector*-math.random(10,20))
  3243.                 local magav = Instance.new("BodyAngularVelocity", flingmagp)
  3244.                 magav.MaxTorque = Vector3.new(1/0,1/0,1/0)
  3245.                 magav.AngularVelocity = hrp.CFrame.rightVector*math.random(15,20)
  3246.                 debris:AddItem(magv, 0.1)
  3247.                 debris:AddItem(flingmagp, 0.5)
  3248.                 if not currentlyfps then
  3249.                     modeltransparency(flingmagm, 1)
  3250.                 end
  3251.                 modeltransparency(magcmodel, 1)
  3252.             elseif posnumb == 4 then
  3253.                 task.spawn(function()
  3254.                     task.wait(0.2)
  3255.                     reloadmagcmodel:Destroy()
  3256.                     if currentlyfps then
  3257.                         modeltransparency(magcmodel, 0)
  3258.                     end
  3259.                 end)
  3260.             end
  3261.         end
  3262.         tween(speed, poses[posname][posnumb][posdir][2], poses[posname][posnumb][posdir][3], 0, false, 0, reloadmagcweld, {C0 = poses[posname][posnumb][posdir][1]})
  3263.     end
  3264. end
  3265.  
  3266. function movec(cf)
  3267.     cam.CFrame = cam.CFrame * cf
  3268. end
  3269.  
  3270. function recoilup(xm, ym, zm, t, tic)
  3271.     local firsttick = tick()
  3272.     task.spawn(function()
  3273.         while runservice.RenderStepped:wait() and tick() < firsttick + t and recoiltick == tic do
  3274.             movec(recoilcf:Inverse())
  3275.             recoilcf = recoilcf * CFrame.Angles(
  3276.                 (xm*delta*(recmult/recdampmult))*((t+firsttick)-tick()), --x
  3277.                 (ym*delta*(recmult/recdampmult))*((t+firsttick)-tick()), --y
  3278.                 (zm*delta*(recmult/recdampmult))*((t+firsttick)-tick())  --z
  3279.             )
  3280.             movec(recoilcf)
  3281.         end
  3282.     end)
  3283. end
  3284.  
  3285. remote.OnClientEvent:Connect(function(WHAT, param, param2, param3, param4)
  3286.     if state ~= "unequipped" then
  3287.         if WHAT == "recoil" then
  3288.             recoiltick = tick()
  3289.             recoilup(recxamount, (math.random(-10,10)/10)*recyamount, (math.random(-10,10)/10)*reczamount, rectime, recoiltick)
  3290.         elseif WHAT == "fromserverpose" then
  3291.             cpose(param, param2, param3, equiptick)
  3292.         elseif WHAT == "fromserverindividualpose" then
  3293.             ciposeconvert(param, param2, param3, param4, equiptick)
  3294.         end
  3295.     end
  3296. end)
  3297.  
  3298. function ads(enable)
  3299.     if enable and not adsing and hrp.Velocity.Magnitude < 17 and (head.CFrame.p - cam.CFrame.p).Magnitude < 1.7 then
  3300.         adsing = true
  3301.         recmult = recmult/2
  3302.         remote:FireServer("5", true)
  3303.     elseif not enable and adsing then
  3304.         adsing = false
  3305.         recmult = recmult*2
  3306.         remote:FireServer("5", false)
  3307.     end
  3308. end
  3309.  
  3310. function makefpsviewmodel()
  3311.     viewmodel = Instance.new("Model", cam)
  3312.     viewmodel.Name = "gunviewmodel"
  3313.     Instance.new("Humanoid", viewmodel)
  3314.     local mainpart = Instance.new("Part", viewmodel)
  3315.     mainpart.Anchored = true
  3316.     mainpart.CanCollide = false
  3317.     mainpart.Transparency = 1
  3318.     mainpart.Size = Vector3.new()
  3319.     --
  3320.     local rarm = Instance.new("Part", viewmodel)
  3321.     rarm.Size = Vector3.new(0.7,2,0.7)
  3322.     rarm.Color = character["Right Arm"].Color
  3323.     rarm.CanCollide = false
  3324.     rarm.Name = "Right Arm"
  3325.     local larm = Instance.new("Part", viewmodel)
  3326.     larm.Size = Vector3.new(0.7,2,0.7)
  3327.     larm.Color = character["Left Arm"].Color
  3328.     larm.CanCollide = false
  3329.     larm.Name = "Left Arm"
  3330.     local gunclone = gunmodel:Clone()
  3331.     local gunchandle = gunclone:WaitForChild("Handle")
  3332.     local guncmainpart = gunclone:WaitForChild("mainpart")
  3333.     gunclufa = gunclone:WaitForChild("lufa")
  3334.     maincpart = guncmainpart
  3335.     guncmodel = gunclone
  3336.     boltcweld = guncmainpart:WaitForChild("boltweld")
  3337.     magcmodel = gunclone:WaitForChild("mag")
  3338.     gunclone.Parent = viewmodel
  3339.     for i,v in pairs(gunclone:GetDescendants()) do
  3340.         if v:IsA("BasePart") then
  3341.             v.CanCollide = false
  3342.             v.Anchored = false
  3343.         end
  3344.     end
  3345.     --
  3346.     larmcweld = Instance.new("Weld", mainpart)
  3347.     larmcweld.Part0 = mainpart
  3348.     larmcweld.Part1 = larm
  3349.     larmcweld.C0 = CFrame.new(1,-2.5,0)
  3350.     rarmcweld = Instance.new("Weld", mainpart)
  3351.     rarmcweld.Part0 = mainpart
  3352.     rarmcweld.Part1 = rarm
  3353.     rarmcweld.C0 = CFrame.new(1,-2.5,0)
  3354.     guncweld = Instance.new("Weld", mainpart)
  3355.     guncweld.Part0 = rarm
  3356.     guncweld.Part1 = gunchandle
  3357.     guncweld.C0 = CFrame.new(1,-2.5,0)
  3358.     pcall(function()
  3359.         character["Shirt"]:Clone().Parent = viewmodel
  3360.     end)
  3361.     gunmodel.DescendantAdded:Connect(function(WHAT)
  3362.         if (cam.CFrame.p - head.Position).magnitude < 1.3 then
  3363.             if WHAT.Name == "throwserver" or WHAT.Name == "reloadserver" then
  3364.                 WHAT:WaitForChild("Part")
  3365.                 modeltransparency(WHAT, 1)
  3366.             elseif WHAT:IsA("ParticleEmitter") and WHAT.Name == "gemit" then
  3367.                 WHAT.Transparency = NumberSequence.new(1)
  3368.             elseif WHAT:IsA("BasePart") and WHAT.Name == "muzzleflash" or WHAT.Name == "shell;" then
  3369.                 WHAT.Transparency = 1
  3370.             elseif WHAT:IsA("PointLight") and WHAT.Name == "mflash" then
  3371.                 WHAT.Brightness = 0
  3372.             end
  3373.         end
  3374.     end)
  3375.     modeltransparency(viewmodel, 1)
  3376.     return mainpart
  3377. end
  3378.  
  3379. tool.Equipped:Connect(function()
  3380.     state = "equipped"
  3381.     equiptick = tick()
  3382.     local backuptick = equiptick
  3383.     local ticktofireserver = 0
  3384.     local lastcameracf = cam.CFrame
  3385.     savedfov = cam.FieldOfView
  3386.     offset = CFrame.new()
  3387.     character = owner.Character
  3388.     gui.Parent = ownergui
  3389.     local mpart = makefpsviewmodel()
  3390.     mouse.TargetFilter = mpart.Parent
  3391.     chamberedgui.Text = tostring(bchambered.Value)
  3392.     ammogui.Text = tostring(binmag.Value)
  3393.     maggui.Text = tostring(magleft.Value)
  3394.     humanoid = character:FindFirstChildOfClass("Humanoid")
  3395.     head = character.Head
  3396.     hrp = character.HumanoidRootPart
  3397.     humanoid.AutoRotate = false
  3398.     rstepgun = runservice.RenderStepped:Connect(function()
  3399.         if state ~= "unequipped" and humanoid.Health > 0 and equiptick == backuptick then
  3400.             delta = tick() - frametick
  3401.             movec(recoilcf:Inverse())
  3402.             hrp.CFrame = hrp.CFrame:lerp(CFrame.new(hrp.Position, Vector3.new(mouse.Hit.p.x,hrp.Position.y,mouse.Hit.p.z)),delta*15)
  3403.             recoilcf = recoilcf:lerp(CFrame.new(),delta*currentcspeed)
  3404.             movec(recoilcf)
  3405.             humanoid.CameraOffset = Vector3.new()
  3406.             if (cam.CFrame.p - head.Position).magnitude < 1.3 and not currentlyfps then
  3407.                 humanoid.CameraOffset = Vector3.new(0,0.4,0)
  3408.                 guntransparency(1)
  3409.                 modeltransparency(viewmodel, 0)
  3410.                 currentlyfps = true
  3411.             elseif (cam.CFrame.p - head.Position).magnitude > 1.3 and currentlyfps then
  3412.                 guntransparency(0)
  3413.                 modeltransparency(viewmodel, 1)
  3414.                 if adsing then
  3415.                     ads(false)
  3416.                 end
  3417.                 currentlyfps = false
  3418.             end
  3419.             local relative = cam.CFrame:ToObjectSpace(lastcameracf)
  3420.             local camx,camy,camz = relative:ToOrientation()
  3421.             local relativevel = cam.CFrame:vectorToObjectSpace(hrp.Velocity)
  3422.             local clampvelx, clampvelz, clampvely = math.clamp(relativevel.x, -35, 35), math.clamp(relativevel.z, -35, 35), math.clamp(relativevel.y, -50, 50)
  3423.             local crelativevel = Vector3.new(clampvelx, 0, clampvelz)
  3424.             if adsing then
  3425.                 offset = offset:lerp(CFrame.Angles(camx/2, camy/2, -camy/2) * CFrame.new(-0.45,0.4,0.25), delta*5)
  3426.                 cam.FieldOfView = linearlerp(cam.FieldOfView, 35, delta*4)
  3427.             else
  3428.                 offset = offset:lerp(CFrame.Angles(camx/2, camy/2, -camy/2), delta*10)
  3429.                 cam.FieldOfView = linearlerp(cam.FieldOfView, 70+(Vector3.new(hrp.Velocity.x,0,hrp.Velocity.z).Magnitude/5), delta*5)
  3430.             end
  3431.             if crelativevel.Magnitude > 0.1 then
  3432.                 if crelativevel.Magnitude < 19 or state == "shooting" then
  3433.                     offset = offset:lerp(CFrame.Angles(
  3434.                         (camx/2),
  3435.                         camy/2-math.cos(tick()*7)*(crelativevel.Magnitude/350),
  3436.                         (-camy/2)+math.sin(tick()*7)*(crelativevel.Magnitude/120)-(clampvelx/60))
  3437.                             * CFrame.new(
  3438.                                 math.sin(tick()*7)*(crelativevel.Magnitude/250),
  3439.                                 -math.cos(tick()*14)*(crelativevel.Magnitude/250),
  3440.                                 0), delta*5)
  3441.                 elseif state ~= "shooting" and humanoid.FloorMaterial ~= Enum.Material.Air then
  3442.                     if adsing then
  3443.                         ads(false)
  3444.                     end
  3445.                     offset = offset:lerp(CFrame.Angles(
  3446.                         camx/2,
  3447.                         camy/2-math.cos(tick()*10)*(crelativevel.Magnitude/250),
  3448.                         (-camy/2)+math.sin(tick()*10)*(crelativevel.Magnitude/70)-(clampvelx/60))
  3449.                             * CFrame.new(
  3450.                                 1+math.sin(tick()*10)*(crelativevel.Magnitude/150),
  3451.                                 -0.4-math.cos(tick()*20)*(crelativevel.Magnitude/150),
  3452.                                 0)
  3453.                             * CFrame.Angles(
  3454.                                 math.rad(-20),
  3455.                                 (math.pi/2),
  3456.                                 0), delta*10)
  3457.                 end
  3458.             end
  3459.             mpart.CFrame = cam.CFrame * offset
  3460.             lastcameracf = cam.CFrame
  3461.             ticktofireserver = ticktofireserver + delta
  3462.             if ticktofireserver > 0.1 then
  3463.                 remote:FireServer("1", (mouse.Hit.p-head.CFrame.p).unit.y)
  3464.                 ticktofireserver = 0
  3465.             end
  3466.         else
  3467.             rstepgun:Disconnect()
  3468.         end
  3469.         frametick = tick()
  3470.     end)
  3471. end)
  3472. mouse.KeyDown:Connect(function(key)
  3473.     if state == "equipped" then
  3474.         key = key:lower()
  3475.         if key == "f" then
  3476.             remote:FireServer("3")
  3477.         elseif key == "r" then
  3478.             remote:FireServer("4")
  3479.         elseif key:byte() == 48 then
  3480.             remote:FireServer("6", true)
  3481.         end
  3482.     end
  3483. end)
  3484. mouse.KeyUp:Connect(function(key)
  3485.     if state == "equipped" then
  3486.         key = key:lower()
  3487.         if key:byte() == 48 then
  3488.             remote:FireServer("6", false)
  3489.         end
  3490.     end
  3491. end)
  3492. mouse.Button2Down:Connect(function()
  3493.     if state ~= "unequipped" then
  3494.         ads(true)
  3495.     end
  3496. end)
  3497. mouse.Button2Up:Connect(function()
  3498.     if state ~= "unequipped" then
  3499.         ads(false)
  3500.     end
  3501. end)
  3502. tool.Activated:Connect(function()
  3503.     if state == "equipped" then
  3504.         shoottick = tick()
  3505.         state = "shooting"
  3506.         local btick = shoottick
  3507.         while shoottick == btick and state == "shooting" and humanoid.Health > 0 do
  3508.             if binmag.Value > 0 or bchambered.Value > 0 then
  3509.                 remote:FireServer("2", mouse.Hit.p)
  3510.                 task.wait(gunspeed.Value)
  3511.             else break end
  3512.         end
  3513.         if state == "shooting" then
  3514.             state = "equipped"
  3515.         end
  3516.     end
  3517. end)
  3518. tool.Deactivated:Connect(function()
  3519.     if state == "shooting" then
  3520.         state = "equipped"
  3521.     end
  3522. end)
  3523. tool.Unequipped:Connect(function()
  3524.     state = "unequipped"
  3525.     gui.Parent = tool
  3526.     viewmodel:Destroy()
  3527.     guntransparency(0)
  3528.     if adsing then
  3529.         ads(false)
  3530.     end
  3531.     cam.FieldOfView = savedfov
  3532.     currentlyfps = false
  3533.     recoilcf = CFrame.new()
  3534.     humanoid.AutoRotate = true
  3535. end)]], Tool0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement