Advertisement
billwa

SA7 Sterla

Aug 19th, 2015
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.60 KB | None | 0 0
  1. sterla = Instance.new("Tool",game.Workspace)
  2. sterla.GripPos = Vector3.new(1,-2,-0.10000000149012)
  3. sterla.Grip = CFrame.new(1,-2,-0.10000000149012) * CFrame.Angles(1.5759936571121, -0.12995918095112, 1.6045351028442)
  4. sterla.GripForward = Vector3.new(0.12959367036819,0.99155384302139,0.0051534478552639)
  5. sterla.Name = "sterla"
  6. sterla.GripRight = Vector3.new(-0.033447932451963,-0.00082287273835391,0.99944013357162)
  7. sterla.GripUp = Vector3.new(-0.99100297689438,0.12969349324703,-0.033058784902096)
  8.  
  9. part = Instance.new("Part",sterla)
  10. part.FormFactor = Enum.FormFactor.Plate
  11. part.CanCollide = false
  12. part.TopSurface = Enum.SurfaceType.Smooth
  13. part.Size = Vector3.new(1,0.40000000596046,1)
  14. part.CFrame = CFrame.new(8.8885822296143,1.1532900333405,-15.490003585815) * CFrame.Angles(3.0276160240173, -0.094406887888908, 1.5622065067291)
  15. part.BrickColor = BrickColor.new("Really black")
  16. part.Friction = 0.30000001192093
  17. part.BottomSurface = Enum.SurfaceType.Smooth
  18.  
  19. mesh = Instance.new("CylinderMesh",part)
  20. mesh.Scale = Vector3.new(0.21600000560284,0.15600000321865,0.23999999463558)
  21.  
  22. weld = Instance.new("Weld",part)
  23. weld.Part1 = Part
  24. weld.Part0 = Part
  25. weld.C1 = CFrame.new(-2.5670537948608,-15.66695690155,10.519409179688) * CFrame.Angles(1.4753459692001, -0.11316314339638, -1.5794092416763)
  26. weld.C0 = CFrame.new(2.8190128803253,10.311949729919,-14.352493286133) * CFrame.Angles(-3.04621052742, 0.11316272616386, 1.5621896982193)
  27.  
  28. part = Instance.new("Part",sterla)
  29. part.FormFactor = Enum.FormFactor.Plate
  30. part.CanCollide = false
  31. part.TopSurface = Enum.SurfaceType.Smooth
  32. part.Size = Vector3.new(1,0.40000000596046,1)
  33. part.CFrame = CFrame.new(8.9722204208374,0.75363999605179,-16.781913757324) * CFrame.Angles(-0.023102466017008, -1.4759329557419, 1.6612657308578)
  34. part.BrickColor = BrickColor.new("Dark stone grey")
  35. part.Friction = 0.30000001192093
  36. part.BottomSurface = Enum.SurfaceType.Smooth
  37.  
  38. mesh = Instance.new("SpecialMesh",part)
  39. mesh.Scale = Vector3.new(0.096000000834465,0.038400001823902,0.096000000834465)
  40. mesh.MeshId = "http://www.roblox.com/Asset/?id=10207677"
  41. mesh.MeshType = Enum.MeshType.FileMesh
  42.  
  43. weld = Instance.new("Weld",part)
  44. weld.Part1 = Part
  45. weld.Part0 = Part
  46. weld.C1 = CFrame.new(2.8429727554321,-14.260561943054,-10.447306632996) * CFrame.Angles(1.6662466526031, 0.11316314339638, 1.5621836185455)
  47. weld.C0 = CFrame.new(-2.5670537948608,-15.66695690155,10.519409179688) * CFrame.Angles(1.4753459692001, -0.11316314339638, -1.5794092416763)
  48.  
  49. part = Instance.new("Part",sterla)
  50. part.FormFactor = Enum.FormFactor.Plate
  51. part.CanCollide = false
  52. part.TopSurface = Enum.SurfaceType.Smooth
  53. part.Size = Vector3.new(1,0.80000001192093,1)
  54. part.CFrame = CFrame.new(9.0307512283325,1.1871784925461,-15.415201187134) * CFrame.Angles(3.1184885501862, 1.4759323596954, 1.4803285598755)
  55. part.BrickColor = BrickColor.new("Dark stone grey")
  56. part.Friction = 0.30000001192093
  57. part.BottomSurface = Enum.SurfaceType.Smooth
  58.  
  59. mesh = Instance.new("BlockMesh",part)
  60. mesh.Scale = Vector3.new(0.40799999237061,0.85199993848801,0.23999999463558)
  61.  
  62. weld = Instance.new("Weld",part)
  63. weld.Part1 = Part
  64. weld.Part0 = Part
  65. weld.C1 = CFrame.new(3.1069307327271,-15.719751358032,-10.543374061584) * CFrame.Angles(1.6662466526031, 0.11316506564617, 1.5621838569641)
  66. weld.C0 = CFrame.new(2.8429727554321,-14.260561943054,-10.447306632996) * CFrame.Angles(1.6662466526031, 0.11316314339638, 1.5621836185455)
  67.  
  68. part = Instance.new("Part",sterla)
  69. part.FormFactor = Enum.FormFactor.Plate
  70. part.CanCollide = false
  71. part.TopSurface = Enum.SurfaceType.Smooth
  72. part.Size = Vector3.new(1,0.40000000596046,1)
  73. part.CFrame = CFrame.new(8.9864778518677,1.2839779853821,-16.897365570068) * CFrame.Angles(3.1184840202332, 1.4759329557419, 1.4803311824799)
  74. part.BrickColor = BrickColor.new("Dark stone grey")
  75. part.Friction = 0.30000001192093
  76. part.BottomSurface = Enum.SurfaceType.Smooth
  77.  
  78. mesh = Instance.new("CylinderMesh",part)
  79. mesh.Scale = Vector3.new(0.55199998617172,0.29999998211861,0.57599997520447)
  80.  
  81. weld = Instance.new("Weld",part)
  82. weld.Part1 = Part
  83. weld.Part0 = Part
  84. weld.C1 = CFrame.new(3.1189274787903,-16.295724868774,-10.543435096741) * CFrame.Angles(1.6662466526031, 0.11316506564617, 1.5621838569641)
  85. weld.C0 = CFrame.new(3.1069307327271,-15.719751358032,-10.543374061584) * CFrame.Angles(1.6662466526031, 0.11316506564617, 1.5621838569641)
  86.  
  87. part = Instance.new("Part",sterla)
  88. part.FormFactor = Enum.FormFactor.Plate
  89. part.CanCollide = false
  90. part.TopSurface = Enum.SurfaceType.Smooth
  91. part.Size = Vector3.new(1,0.40000000596046,1)
  92. part.CFrame = CFrame.new(8.9321022033691,1.230682015419,-17.468410491943) * CFrame.Angles(3.1184840202332, 1.4759329557419, 1.4803311824799)
  93. part.BrickColor = BrickColor.new("Dark stone grey")
  94. part.Friction = 0.30000001192093
  95. part.BottomSurface = Enum.SurfaceType.Smooth
  96.  
  97. mesh = Instance.new("CylinderMesh",part)
  98. mesh.Scale = Vector3.new(0.76800000667572,0.29999998211861,0.76800000667572)
  99.  
  100. weld = Instance.new("Weld",part)
  101. weld.Part1 = Part
  102. weld.Part0 = Part
  103. weld.C1 = CFrame.new(2.9629034996033,-9.9934644699097,-10.528594970703) * CFrame.Angles(1.6662466526031, 0.11316578835249, 1.5621837377548)
  104. weld.C0 = CFrame.new(3.1189274787903,-16.295724868774,-10.543435096741) * CFrame.Angles(1.6662466526031, 0.11316506564617, 1.5621838569641)
  105.  
  106. part = Instance.new("Part",sterla)
  107. part.FormFactor = Enum.FormFactor.Plate
  108. part.CanCollide = false
  109. part.TopSurface = Enum.SurfaceType.Smooth
  110. part.Size = Vector3.new(1,0.40000000596046,1)
  111. part.CFrame = CFrame.new(9.5131797790527,1.7892689704895,-11.215942382813) * CFrame.Angles(3.1184847354889, 1.4759329557419, 1.4803297519684)
  112. part.BrickColor = BrickColor.new("Dark stone grey")
  113. part.Friction = 0.30000001192093
  114. part.BottomSurface = Enum.SurfaceType.Smooth
  115.  
  116. mesh = Instance.new("BlockMesh",part)
  117. mesh.Scale = Vector3.new(0.26399999856949,0.6240000128746,0.3120000064373)
  118.  
  119. weld = Instance.new("Weld",part)
  120. weld.Part1 = Handle
  121. weld.Part0 = Part
  122. weld.C1 = CFrame.new(3.118869304657,-16.617362976074,-10.543445587158) * CFrame.Angles(1.6662466526031, 0.11316084861755, 1.5621852874756)
  123. weld.C0 = CFrame.new(2.9629034996033,-9.9934644699097,-10.528594970703) * CFrame.Angles(1.6662466526031, 0.11316578835249, 1.5621837377548)
  124.  
  125. handle = Instance.new("Part",sterla)
  126. handle.FormFactor = Enum.FormFactor.Plate
  127. handle.TopSurface = Enum.SurfaceType.Smooth
  128. handle.Size = Vector3.new(1,1.2000000476837,1)
  129. handle.Name = "Handle"
  130. handle.CFrame = CFrame.new(8.9017744064331,1.1942689418793,-17.786525726318) * CFrame.Angles(3.1184737682343, 1.4759329557419, 1.4803457260132)
  131. handle.BrickColor = BrickColor.new("Dark stone grey")
  132. handle.Friction = 0.30000001192093
  133. handle.BottomSurface = Enum.SurfaceType.Smooth
  134.  
  135. mesh = Instance.new("CylinderMesh",handle)
  136. mesh.Scale = Vector3.new(0.81599998474121,0.42799997329712,0.86400002241135)
  137.  
  138. fail = Instance.new("Sound",handle)
  139. fail.Name = "Fail"
  140. fail.Volume = 1
  141. fail.SoundId = "rbxasset://sounds/switch.wav"
  142. fail.PlayOnRemove = true
  143.  
  144. recoil = Instance.new("BodyThrust",handle)
  145. recoil.Name = "recoil"
  146. recoil.force = Vector3.new(0,2,0)
  147.  
  148. weld = Instance.new("Weld",handle)
  149. weld.C1 = CFrame.new(-0.011995315551758,1.2815856933594,-1.52587890625e-005) * CFrame.Angles(1.5707963705063, -4.8875840548135e-006, 1.5707944631577)
  150. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.5707964897156, -5.2005120778631e-006, 1.5707952976227)
  151.  
  152. weld = Instance.new("Weld",handle)
  153. weld.C1 = CFrame.new(-0.011989593505859,4.7135772705078,-1.52587890625e-005) * CFrame.Angles(1.5707963705063, -1.803052100513e-006, 1.570795416832)
  154. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.5707964897156, -7.0483338276972e-006, 1.5707949399948)
  155.  
  156. shot = Instance.new("Sound",handle)
  157. shot.Pitch = 7
  158. shot.Name = "Shot"
  159. shot.Volume = 1
  160. shot.SoundId = "rbxasset://sounds/Rocket shot.wav"
  161. shot.PlayOnRemove = true
  162.  
  163. weld = Instance.new("Weld",handle)
  164. weld.Part1 = Part
  165. weld.Part0 = Handle
  166. weld.C1 = CFrame.new(2.6509759426117,10.407903671265,-12.691704750061) * CFrame.Angles(-3.04621052742, 0.11316236108541, 1.5621908903122)
  167. weld.C0 = CFrame.new(3.118869304657,-16.617362976074,-10.543445587158) * CFrame.Angles(1.6662466526031, 0.11316084861755, 1.5621852874756)
  168.  
  169. part = Instance.new("Part",sterla)
  170. part.FormFactor = Enum.FormFactor.Plate
  171. part.TopSurface = Enum.SurfaceType.Smooth
  172. part.Size = Vector3.new(1,0.40000000596046,1)
  173. part.CFrame = CFrame.new(9.1421022415161,1.1741590499878,-13.837442398071) * CFrame.Angles(3.0276165008545, -0.094406954944134, 1.562207698822)
  174. part.BrickColor = BrickColor.new("Really black")
  175. part.Friction = 0.30000001192093
  176. part.BottomSurface = Enum.SurfaceType.Smooth
  177.  
  178. mesh = Instance.new("CylinderMesh",part)
  179. mesh.Scale = Vector3.new(0.21600000560284,0.15600000321865,0.23999999463558)
  180.  
  181. weld = Instance.new("Weld",part)
  182. weld.Part1 = Part
  183. weld.Part0 = Part
  184. weld.C1 = CFrame.new(3.1068518161774,-9.7438011169434,-10.542981147766) * CFrame.Angles(1.6662466526031, 0.11316262185574, 1.5621848106384)
  185. weld.C0 = CFrame.new(2.6509759426117,10.407903671265,-12.691704750061) * CFrame.Angles(-3.04621052742, 0.11316236108541, 1.5621908903122)
  186.  
  187. part = Instance.new("Part",sterla)
  188. part.FormFactor = Enum.FormFactor.Plate
  189. part.CanCollide = false
  190. part.TopSurface = Enum.SurfaceType.Smooth
  191. part.Size = Vector3.new(1,0.40000000596046,1)
  192. part.CFrame = CFrame.new(9.5498237609863,1.9605530500412,-10.986616134644) * CFrame.Angles(3.1184766292572, 1.4759329557419, 1.4803410768509)
  193. part.BrickColor = BrickColor.new("Dark stone grey")
  194. part.Friction = 0.30000001192093
  195. part.BottomSurface = Enum.SurfaceType.Smooth
  196.  
  197. mesh = Instance.new("CylinderMesh",part)
  198. mesh.Scale = Vector3.new(0.55199998617172,0.29999998211861,0.57599997520447)
  199.  
  200. weld = Instance.new("Weld",part)
  201. weld.Part1 = Part
  202. weld.Part0 = Part
  203. weld.C1 = CFrame.new(3.1068949699402,-14.591723442078,-10.543342590332) * CFrame.Angles(1.6662491559982, 0.1131639033556, 1.5621845722198)
  204. weld.C0 = CFrame.new(3.1068518161774,-9.7438011169434,-10.542981147766) * CFrame.Angles(1.6662466526031, 0.11316262185574, 1.5621848106384)
  205.  
  206. part = Instance.new("Part",sterla)
  207. part.FormFactor = Enum.FormFactor.Plate
  208. part.CanCollide = false
  209. part.TopSurface = Enum.SurfaceType.Smooth
  210. part.Size = Vector3.new(1,0.40000000596046,1)
  211. part.CFrame = CFrame.new(9.0928201675415,1.4116740226746,-15.781669616699) * CFrame.Angles(3.1184756755829, 1.4759304523468, 1.480340719223)
  212. part.BrickColor = BrickColor.new("Dark stone grey")
  213. part.Friction = 0.30000001192093
  214. part.BottomSurface = Enum.SurfaceType.Smooth
  215.  
  216. mesh = Instance.new("CylinderMesh",part)
  217. mesh.Scale = Vector3.new(0.55199998617172,0.29999998211861,0.57599997520447)
  218.  
  219. weld = Instance.new("Weld",part)
  220. weld.Part1 = Part
  221. weld.Part0 = Part
  222. weld.C1 = CFrame.new(3.1069421768188,-11.904500007629,-10.54229927063) * CFrame.Angles(1.6661775112152, 0.11316189169884, 1.5621911287308)
  223. weld.C0 = CFrame.new(3.1068949699402,-14.591723442078,-10.543342590332) * CFrame.Angles(1.6662491559982, 0.1131639033556, 1.5621845722198)
  224.  
  225. part = Instance.new("Part",sterla)
  226. part.FormFactor = Enum.FormFactor.Plate
  227. part.CanCollide = false
  228. part.TopSurface = Enum.SurfaceType.Smooth
  229. part.Size = Vector3.new(1,8.4000005722046,1)
  230. part.CFrame = CFrame.new(9.3462142944336,1.7160322666168,-13.123024940491) * CFrame.Angles(3.1184771060944, 1.4760009050369, 1.4803419113159)
  231. part.BrickColor = BrickColor.new("Dark stone grey")
  232. part.Friction = 0.30000001192093
  233. part.BottomSurface = Enum.SurfaceType.Smooth
  234.  
  235. mesh = Instance.new("CylinderMesh",part)
  236. mesh.Scale = Vector3.new(0.52799999713898,0.50628566741943,0.47999998927116)
  237.  
  238. weld = Instance.new("Weld",part)
  239. weld.Part1 = Part
  240. weld.Part0 = Part
  241. weld.C1 = CFrame.new(3.1069898605347,-14.544447898865,-10.542278289795) * CFrame.Angles(1.6661782264709, 0.11316443234682, 1.5621918439865)
  242. weld.C0 = CFrame.new(3.1069421768188,-11.904500007629,-10.54229927063) * CFrame.Angles(1.6661775112152, 0.11316189169884, 1.5621911287308)
  243.  
  244. part = Instance.new("Part",sterla)
  245. part.FormFactor = Enum.FormFactor.Plate
  246. part.CanCollide = false
  247. part.TopSurface = Enum.SurfaceType.Smooth
  248. part.Size = Vector3.new(1,8.4000005722046,1)
  249. part.CFrame = CFrame.new(9.0973272323608,1.4171302318573,-15.734178543091) * CFrame.Angles(3.1184659004211, 1.4760009050369, 1.4803506135941)
  250. part.BrickColor = BrickColor.new("Dark stone grey")
  251. part.Friction = 0.30000001192093
  252. part.BottomSurface = Enum.SurfaceType.Smooth
  253.  
  254. mesh = Instance.new("CylinderMesh",part)
  255. mesh.Scale = Vector3.new(0.52799999713898,0.50628566741943,0.47999998927116)
  256.  
  257. weld = Instance.new("Weld",part)
  258. weld.Part1 = Part
  259. weld.Part0 = Part
  260. weld.C1 = CFrame.new(3.1069321632385,-15.33646774292,-10.542311668396) * CFrame.Angles(1.6661782264709, 0.11316212266684, 1.5621910095215)
  261. weld.C0 = CFrame.new(3.1069898605347,-14.544447898865,-10.542278289795) * CFrame.Angles(1.6661782264709, 0.11316443234682, 1.5621918439865)
  262.  
  263. part = Instance.new("Part",sterla)
  264. part.FormFactor = Enum.FormFactor.Plate
  265. part.CanCollide = false
  266. part.TopSurface = Enum.SurfaceType.Smooth
  267. part.Size = Vector3.new(1,0.40000000596046,1)
  268. part.CFrame = CFrame.new(9.0226984024048,1.3274430036545,-16.517549514771) * CFrame.Angles(3.1184775829315, 1.4760009050369, 1.4803411960602)
  269. part.BrickColor = BrickColor.new("Dark stone grey")
  270. part.Friction = 0.30000001192093
  271. part.BottomSurface = Enum.SurfaceType.Smooth
  272.  
  273. mesh = Instance.new("CylinderMesh",part)
  274. mesh.Scale = Vector3.new(0.55199998617172,0.29999998211861,0.57599997520447)
  275.  
  276. weld = Instance.new("Weld",part)
  277. weld.Part1 = Part
  278. weld.Part0 = Part
  279. weld.C1 = CFrame.new(3.1069006919861,-16.823760986328,-10.543445587158) * CFrame.Angles(1.6662466526031, 0.11316308379173, 1.5621846914291)
  280. weld.C0 = CFrame.new(3.1069321632385,-15.33646774292,-10.542311668396) * CFrame.Angles(1.6661782264709, 0.11316212266684, 1.5621910095215)
  281.  
  282. part = Instance.new("Part",sterla)
  283. part.FormFactor = Enum.FormFactor.Plate
  284. part.CanCollide = false
  285. part.TopSurface = Enum.SurfaceType.Smooth
  286. part.Size = Vector3.new(1,0.40000000596046,1)
  287. part.CFrame = CFrame.new(8.8824062347412,1.1589729785919,-17.989320755005) * CFrame.Angles(3.1184768676758, 1.4759329557419, 1.4803403615952)
  288. part.BrickColor = BrickColor.new("Really black")
  289. part.Friction = 0.30000001192093
  290. part.BottomSurface = Enum.SurfaceType.Smooth
  291.  
  292. mesh = Instance.new("CylinderMesh",part)
  293. mesh.Scale = Vector3.new(0.55199998617172,0.29999998211861,0.57599997520447)
  294.  
  295. weld = Instance.new("Weld",part)
  296. weld.Part1 = Part
  297. weld.Part0 = Part
  298. weld.C1 = CFrame.new(2.8189566135406,-14.981262207031,-10.518304824829) * CFrame.Angles(1.6661782264709, 0.11316212266684, 1.5621910095215)
  299. weld.C0 = CFrame.new(3.1069006919861,-16.823760986328,-10.543445587158) * CFrame.Angles(1.6662466526031, 0.11316308379173, 1.5621846914291)
  300.  
  301. part = Instance.new("Part",sterla)
  302. part.FormFactor = Enum.FormFactor.Plate
  303. part.CanCollide = false
  304. part.TopSurface = Enum.SurfaceType.Smooth
  305. part.Size = Vector3.new(1,0.80000001192093,1)
  306. part.CFrame = CFrame.new(9.0347452163696,1.0815893411636,-16.131427764893) * CFrame.Angles(3.1184775829315, 1.4760009050369, 1.4803411960602)
  307. part.BrickColor = BrickColor.new("Dark stone grey")
  308. part.Friction = 0.30000001192093
  309. part.BottomSurface = Enum.SurfaceType.Smooth
  310.  
  311. mesh = Instance.new("BlockMesh",part)
  312. mesh.Scale = Vector3.new(0.55199998617172,0.85199993848801,0.23999999463558)
  313.  
  314. weld = Instance.new("Weld",part)
  315. weld.Part1 = Part
  316. weld.Part0 = Part
  317. weld.C1 = CFrame.new(4.1362190246582,-14.198305130005,-10.519309997559) * CFrame.Angles(1.6683177947998, 0.23477448523045, 1.5502414703369)
  318. weld.C0 = CFrame.new(2.8189566135406,-14.981262207031,-10.518304824829) * CFrame.Angles(1.6661782264709, 0.11316212266684, 1.5621910095215)
  319.  
  320. part = Instance.new("Part",sterla)
  321. part.FormFactor = Enum.FormFactor.Plate
  322. part.CanCollide = false
  323. part.TopSurface = Enum.SurfaceType.Smooth
  324. part.Size = Vector3.new(1,0.40000000596046,1)
  325. part.CFrame = CFrame.new(9.0747404098511,0.68398100137711,-15.701505661011) * CFrame.Angles(3.1184768676758, 1.4759329557419, 1.3581621646881)
  326. part.BrickColor = BrickColor.new("Dark stone grey")
  327. part.Friction = 0.30000001192093
  328. part.BottomSurface = Enum.SurfaceType.Smooth
  329.  
  330. mesh = Instance.new("BlockMesh",part)
  331. mesh.Scale = Vector3.new(1.055999994278,0.98399996757507,0.23999999463558)
  332.  
  333. weld = Instance.new("Weld",part)
  334. weld.Part1 = Part
  335. weld.Part0 = Part
  336. weld.C1 = CFrame.new(2.5813858509064,-15.413291931152,-10.51829624176) * CFrame.Angles(1.6661782264709, 0.11316212266684, 1.5621910095215)
  337. weld.C0 = CFrame.new(4.1362190246582,-14.198305130005,-10.519309997559) * CFrame.Angles(1.6683177947998, 0.23477448523045, 1.5502414703369)
  338.  
  339. part = Instance.new("Part",sterla)
  340. part.FormFactor = Enum.FormFactor.Plate
  341. part.CanCollide = false
  342. part.TopSurface = Enum.SurfaceType.Smooth
  343. part.Size = Vector3.new(1,0.80000001192093,1)
  344. part.CFrame = CFrame.new(8.9960460662842,0.79663234949112,-16.531915664673) * CFrame.Angles(3.1184775829315, 1.4760009050369, 1.4803411960602)
  345. part.BrickColor = BrickColor.new("Dark stone grey")
  346. part.Friction = 0.30000001192093
  347. part.BottomSurface = Enum.SurfaceType.Smooth
  348.  
  349. mesh = Instance.new("BlockMesh",part)
  350. mesh.Scale = Vector3.new(0.40799999237061,0.85199993848801,0.23999999463558)
  351.  
  352. weld = Instance.new("Weld",part)
  353. weld.Part1 = Part
  354. weld.Part0 = Part
  355. weld.C1 = CFrame.new(2.5573661327362,-16.046173095703,-10.507410049438) * CFrame.Angles(1.6662466526031, 0.11316308379173, 1.5621846914291)
  356. weld.C0 = CFrame.new(2.5813858509064,-15.413291931152,-10.51829624176) * CFrame.Angles(1.6661782264709, 0.11316212266684, 1.5621910095215)
  357.  
  358. part = Instance.new("Part",sterla)
  359. part.FormFactor = Enum.FormFactor.Plate
  360. part.CanCollide = false
  361. part.TopSurface = Enum.SurfaceType.Smooth
  362. part.Size = Vector3.new(1,1.2000000476837,1)
  363. part.CFrame = CFrame.new(8.9245891571045,0.70109462738037,-17.154756546021) * CFrame.Angles(3.1184768676758, 1.4759329557419, 1.4803403615952)
  364. part.BrickColor = BrickColor.new("Dark stone grey")
  365. part.Friction = 0.30000001192093
  366. part.BottomSurface = Enum.SurfaceType.Smooth
  367.  
  368. mesh = Instance.new("BlockMesh",part)
  369. mesh.Scale = Vector3.new(0.024000000208616,1.1439999341965,0.16799999773502)
  370.  
  371. weld = Instance.new("Weld",part)
  372. weld.Part1 = Part
  373. weld.Part0 = Part
  374. weld.C1 = CFrame.new(2.5670003890991,-13.238898277283,-10.518322944641) * CFrame.Angles(1.6661782264709, 0.1131634414196, 1.5621908903122)
  375. weld.C0 = CFrame.new(2.5573661327362,-16.046173095703,-10.507410049438) * CFrame.Angles(1.6662466526031, 0.11316308379173, 1.5621846914291)
  376.  
  377. part = Instance.new("Part",sterla)
  378. part.FormFactor = Enum.FormFactor.Plate
  379. part.CanCollide = false
  380. part.TopSurface = Enum.SurfaceType.Smooth
  381. part.Size = Vector3.new(1,1.2000000476837,1)
  382. part.CFrame = CFrame.new(9.2011661529541,1.0285121202469,-14.379630088806) * CFrame.Angles(3.1184771060944, 1.4760009050369, 1.4803403615952)
  383. part.BrickColor = BrickColor.new("Dark stone grey")
  384. part.Friction = 0.30000001192093
  385. part.BottomSurface = Enum.SurfaceType.Smooth
  386.  
  387. mesh = Instance.new("BlockMesh",part)
  388. mesh.Scale = Vector3.new(0.72000002861023,1.1119999885559,0.23999999463558)
  389.  
  390. weld = Instance.new("Weld",part)
  391. weld.Part1 = Part
  392. weld.Part0 = Part
  393. weld.C1 = CFrame.new(2.50701212883,-16.703765869141,-10.507459640503) * CFrame.Angles(1.6662466526031, 0.11316404491663, 1.5621846914291)
  394. weld.C0 = CFrame.new(2.5670003890991,-13.238898277283,-10.518322944641) * CFrame.Angles(1.6661782264709, 0.1131634414196, 1.5621908903122)
  395.  
  396. part = Instance.new("Part",sterla)
  397. part.FormFactor = Enum.FormFactor.Plate
  398. part.CanCollide = false
  399. part.TopSurface = Enum.SurfaceType.Smooth
  400. part.Size = Vector3.new(1,0.40000000596046,1)
  401. part.CFrame = CFrame.new(8.8630342483521,0.57659202814102,-17.799488067627) * CFrame.Angles(3.1184766292572, 1.4759329557419, 1.4803396463394)
  402. part.BrickColor = BrickColor.new("Dark stone grey")
  403. part.Friction = 0.30000001192093
  404. part.BottomSurface = Enum.SurfaceType.Smooth
  405.  
  406. mesh = Instance.new("BlockMesh",part)
  407. mesh.Scale = Vector3.new(0.36000001430511,0.14400000870228,0.16799999773502)
  408.  
  409. weld = Instance.new("Weld",part)
  410. weld.Part1 = Part
  411. weld.Part0 = Part
  412. weld.C1 = CFrame.new(2.890971660614,-14.429301261902,-10.518301010132) * CFrame.Angles(1.6661782264709, 0.1131634414196, 1.5621908903122)
  413. weld.C0 = CFrame.new(2.50701212883,-16.703765869141,-10.507459640503) * CFrame.Angles(1.6662466526031, 0.11316404491663, 1.5621846914291)
  414.  
  415. part = Instance.new("Part",sterla)
  416. part.FormFactor = Enum.FormFactor.Plate
  417. part.CanCollide = false
  418. part.TopSurface = Enum.SurfaceType.Smooth
  419. part.Size = Vector3.new(1,0.80000001192093,1)
  420. part.CFrame = CFrame.new(9.0861577987671,1.2156168222427,-15.59362411499) * CFrame.Angles(3.1184771060944, 1.4760009050369, 1.4803403615952)
  421. part.BrickColor = BrickColor.new("Dark stone grey")
  422. part.Friction = 0.30000001192093
  423. part.BottomSurface = Enum.SurfaceType.Smooth
  424.  
  425. mesh = Instance.new("BlockMesh",part)
  426. mesh.Scale = Vector3.new(0.55199998617172,0.85199993848801,0.23999999463558)
  427. weld1=Instance.new"Weld"
  428. weld=Instance.new"Weld"
  429. local pl=game.Players.LocalPlayer
  430.  
  431. sterla.Equipped:connect(function()
  432. --if (sterla.Parent.Torso["Left Shoulder"]:isA("Motor") and sterla.Parent.Torso["Right Shoulder"]:isA("Motor")) then
  433. sterla.Parent.Torso["Left Shoulder"].Part1=nil
  434. sterla.Parent.Torso["Right Shoulder"].Part1=nil
  435. --end
  436. weld.Parent=sterla.Parent.Torso
  437. weld.Name="RightShoulder"
  438. weld.Part0=sterla.Parent.Torso
  439. weld.Part1=sterla.Parent["Right Arm"]
  440. weld.C1=CFrame.new(-1,-0.1,0.5)*CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-15),0)
  441. weld1.Parent=sterla.Parent.Torso
  442. weld1.Part0=sterla.Parent.Torso
  443. weld1.Part1=sterla.Parent["Left Arm"]
  444. weld1.Name="LeftShoulder"
  445. weld1.C1=CFrame.new(-0.6,1.1,0.4)*CFrame.fromEulerAnglesXYZ(-7.5,-0.2,4.5)
  446. end)
  447.  
  448. sterla.Unequipped:connect(function()
  449. pl.Character.Torso["Right Shoulder"].Part1=pl.Character["Right Arm"]
  450. pl.Character.Torso["Left Shoulder"].Part1=pl.Character["Left Arm"]
  451. weld1.Part1=nil
  452. weld1.Name="Unused"
  453. weld.Name="Unused"
  454. weld.Part1=nil
  455. end)
  456.  
  457. equip = Instance.new("BoolValue",game.Workspace.sterla)
  458. equip.Name = "Equip"
  459.  
  460. mesh = Instance.new("SpecialMesh",equip)
  461. mesh.TextureId = "http://www.roblox.com/asset/?id=35494606"
  462. mesh.MeshType = Enum.MeshType.FileMesh
  463.  
  464. local Tool = sterla;
  465.  
  466. function stick(x, y)
  467. weld = Instance.new("Weld")
  468. weld.Part0 = x
  469. weld.Part1 = y
  470. local HitPos = x.Position
  471. local CJ = CFrame.new(HitPos)
  472. local C0 = x.CFrame:inverse() *CJ
  473. local C1 = y.CFrame:inverse() * CJ
  474. weld.C0 = C0
  475. weld.C1 = C1
  476. weld.Parent = x
  477. end
  478.  
  479. enabled = true
  480. splat_id = "http://www.roblox.com/asset/?id=29350583"
  481. hole_id = "http://www.roblox.com/asset/?id=30217567"
  482. hitHum = false
  483.  
  484. function animate(ani)
  485. wait(3)
  486. shots = 1
  487. end
  488.  
  489. function relpos(x, y)
  490. local HitPos = x
  491. local CJ = CFrame.new(HitPos)
  492. local C0 = CFrame.new(-x) * CJ
  493. local C1 = y.CFrame:inverse() * CJ
  494. local ReturnCF = C0 * (C1:inverse())
  495. return ReturnCF:inverse().p
  496. end
  497.  
  498. function texture(part,pos,surface,id,size)
  499. if (part) then
  500. --Enum.NormalId.Top
  501. local p = Instance.new("Part")
  502. p.formFactor = 0
  503. p.Size = Vector3.new(1,1,1)
  504. p.CFrame = part.CFrame
  505. p.Anchored = true
  506. p.Transparency = 1
  507. p.CanCollide = false
  508. p.Parent = part.Parent
  509. local m = Instance.new("BlockMesh")
  510. m.Parent = p
  511. m.Offset = relpos(pos,part)
  512. local d = Instance.new("Decal")
  513. d.Face = surface
  514. d.Texture = id
  515. d.Parent = p
  516. game:GetService("Debris"):AddItem(p,1200)
  517. if (surface == Enum.NormalId.Top or surface == Enum.NormalId.Bottom) then
  518. m.Scale = Vector3.new(size,0,size)
  519. end
  520. if (surface == Enum.NormalId.Left or surface == Enum.NormalId.Right) then
  521. m.Scale = Vector3.new(0,size,size)
  522. end
  523. if (surface == Enum.NormalId.Front or surface == Enum.NormalId.Back) then
  524. m.Scale = Vector3.new(size,size,0)
  525. end
  526. if (not part.Anchored) then
  527. p.Anchored = false
  528. local w = Instance.new("Weld")
  529. w.Part0 = part
  530. w.Part1 = p
  531. w.Parent = part
  532. end
  533. end
  534. end
  535.  
  536. shots = 100
  537. maxshots = shots
  538. baseName = Tool.Name
  539.  
  540. function onButton1Down(mouse)
  541. local targ = mouse.Target
  542. if (targ == nil) then return end
  543. if (not enabled) then return end
  544. enabled = false
  545.  
  546. if (shots < 1) then
  547. enabled = true
  548. Tool.Handle.Fail:play()
  549. return
  550. end
  551.  
  552. shots = shots - 0
  553. Tool.Name = baseName
  554.  
  555. local shell = Instance.new("Part")
  556. shell.Name = "SHELL"
  557. shell.CFrame = sterla.Handle.CFrame
  558. shell.Parent = workspace
  559. shell.BrickColor = BrickColor.Yellow()
  560. shell.Reflectance = 0.5
  561. shell.Size = Vector3.new(1,1.2,2)
  562. shell.Velocity = Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  563. local mesh = Instance.new("BlockMesh")
  564. mesh.Scale = Vector3.new(0.05, 0.05, 0.1)
  565. mesh.Parent = shell
  566. shell:breakJoints()
  567. game:GetService("Debris"):AddItem(shell,10)
  568.  
  569. Tool.Handle.Shot:play()
  570. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  571. Tool.Parent.Torso["Right Shoulder"].CurrentAngle = Tool.Parent.Torso["Right Shoulder"].CurrentAngle + math.pi/3
  572.  
  573. local rocket = Instance.new("Part")
  574. rocket.Anchored = true
  575. rocket.Size = Vector3.new(1,1,4)
  576. Instance.new("Fire").Parent = rocket
  577. Instance.new("Smoke").Parent = rocket
  578. rocket.Parent = Tool
  579. rocket.CFrame = Tool.Handle.CFrame
  580.  
  581. while true do
  582. wait()
  583. rocket.CFrame = CFrame.new(rocket.Position,mouse.Hit.p)
  584. rocket.CFrame = rocket.CFrame * CFrame.new(0,0,-10)
  585. rocket.Velocity = rocket.CFrame.lookVector * 1800
  586. if ((rocket.Position - mouse.Hit.p).magnitude < 15) then
  587. local e = Instance.new("Explosion")
  588. e.Position = rocket.Position
  589. e.Parent = workspace
  590. e.BlastRadius = 30
  591. e.BlastPressure = 100000
  592. rocket.Parent = nil
  593. rocket = nil
  594. break
  595. end
  596. end
  597.  
  598. local a = targ.Parent:children()
  599. local b = 0
  600. hitHum = false
  601. for b = 1, #a do
  602. if (a[b]:IsA("Humanoid")) then
  603. hitHum = true
  604. local c = Instance.new("ObjectValue")
  605. c.Name = "creator"
  606. c.Value = game.Players.LocalPlayer
  607. c.Parent = a[b]
  608. end
  609. end
  610.  
  611. if (hitHum and targ.Parent ~= workspace) then
  612. local parent = targ.Parent.Parent
  613. targ.Parent.Parent = Tool.Parent
  614. local targ2 = mouse.Target
  615. local pos = mouse.Hit.p
  616. local surface = mouse.TargetSurface
  617. targ.Parent.Parent = parent
  618. texture(targ2,pos,surface,splat_id,2)
  619. texture(targ,mouse.Hit.p,mouse.TargetSurface,"http://www.roblox.com/asset/?id=29710350",5)
  620. else
  621. texture(targ,mouse.Hit.p,mouse.TargetSurface,"http://www.roblox.com/asset/?id=29710350",5)
  622. end
  623.  
  624. animate("shot")
  625. enabled = true
  626. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  627. end
  628.  
  629. moved = false
  630.  
  631. function onKey(key)
  632. key = tostring(key)
  633. key = key:lower()
  634. if (not enabled) then return end
  635. if (key == "r") then
  636. animate("reload")
  637. end
  638. end
  639.  
  640. function onEquippedLocal(mouse)
  641. if mouse == nil then
  642. print("Mouse not found")
  643. return
  644. end
  645. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  646. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  647. mouse.KeyDown:connect(onKey)
  648. Tool.Equip.Value = true
  649. moved = false
  650. end
  651.  
  652. function onUnS()
  653. Tool.Equip.Value = false
  654. if (moved) then
  655. ls = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]
  656. rs = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]
  657. ls.C0 = ls.C0 * CFrame.Angles(0,0,math.pi/2)
  658. ls.C0 = ls.C0 * CFrame.Angles(0,0.5,0)
  659. rs.C0 = rs.C0 * CFrame.Angles(0,-0.5,0)
  660. Tool.GripForward = Vector3.new(0,0,-1)
  661. Tool.GripPos = Vector3.new(0,0,0)
  662. end
  663. end
  664.  
  665. local prev
  666. local parts = sterla:GetChildren()
  667.  
  668. for i = 1,#parts do
  669. if (parts[i].className == "Part") then
  670. if (prev ~= nil)then
  671. local weld = Instance.new("Weld")
  672. weld.Part0 = prev
  673. weld.Part1 = parts[i]
  674. weld.C0 = prev.CFrame:inverse()
  675. weld.C1 = parts[i].CFrame:inverse()
  676. weld.Parent = prev
  677. end
  678. prev = parts[i]
  679. end
  680. end
  681.  
  682. Tool.Equipped:connect(onEquippedLocal)
  683. Tool.Unequipped:connect(onUnS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement