Advertisement
Dark_EccentricYT

Untitled

Jan 9th, 2017
1,772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.05 KB | None | 0 0
  1. --Tinker--
  2.  
  3. --GG Asriel, back at it again with dem decompiled scripts--
  4.  
  5. while not getmetatable(shared) do
  6. wait()
  7. end
  8. shared(script)
  9. v3 = Vector3.new
  10. cn = CFrame.new
  11. ca2 = CFrame.Angles
  12. mceil = math.ceil
  13. mc = mceil
  14. mran = math.random
  15. rn = mran
  16. mrad = math.rad
  17. rd = mrad
  18. mdeg = math.deg
  19. dg = mdeg
  20. mabs = math.abs
  21. abs = mabs
  22. ud = UDim2.new
  23. ca = function(x, y, z)
  24. return ca2(mrad(x), mrad(y), mrad(z))
  25. end
  26.  
  27. mran2 = function(a, b)
  28. return mran(a * 1000, b * 1000) / 1000
  29. end
  30.  
  31. bn = BrickColor.new
  32. bc = bn
  33. c3 = Color3.new
  34. deb = game:GetService("Debris")
  35. Player = game:service("Players").LocalPlayer
  36. Char = Player.Character
  37. Torso = Char.Torso
  38. Head = Char.Head
  39. Humanoid = Char.Humanoid
  40. RootPart = Char.HumanoidRootPart
  41. Root = RootPart.RootJoint
  42. Neck = Torso.Neck
  43. Mouse = Player:GetMouse()
  44. LA = Char["Left Arm"]
  45. RA = Char["Right Arm"]
  46. LL = Char["Left Leg"]
  47. RL = Char["Right Leg"]
  48. LAM = Torso["Left Shoulder"]
  49. RAM = Torso["Right Shoulder"]
  50. LLM = Torso["Left Hip"]
  51. RLM = Torso["Right Hip"]
  52. Neck.C0 = cn(0, 1.5, 0)
  53. Neck.C1 = cn(0, 0, 0)
  54. Root.C0 = cn(0, 0, 0)
  55. Root.C1 = cn(0, 0, 0)
  56. name = "Tinker"
  57. pcall(function()
  58. Char.Pack:Destroy()
  59. end
  60. )
  61. pcall(function()
  62. Char.Block:Destroy()
  63. end
  64. )
  65. pcall(function()
  66. Torso.BodyGyro:Destroy()
  67. end
  68. )
  69. pcall(function()
  70. Torso.BodyVelocity:Destroy()
  71. end
  72. )
  73. pcall(function()
  74. Torso.BodyPosition:Destroy()
  75. end
  76. )
  77. script.Name = name
  78. as = {}
  79. as.Cone = "http://www.roblox.com/asset/?id=1033714"
  80. as.Bevel = "rbxasset://fonts/leftarm.mesh"
  81. as.Block = "rbxasset://sounds\\metal.ogg"
  82. as.Hit = "http://www.roblox.com/asset/?id=10209583"
  83. as.QSphere = "http://www.roblox.com/asset/?id=9944765"
  84. as.Headphones = "http://www.roblox.com/asset/?id=1051545"
  85. as.Ring = "http://www.roblox.com/asset/?id=3270017"
  86. as.Rock = "http://www.roblox.com/asset/?id=1290033"
  87. as.RockT = "http://www.roblox.com/asset/?id=1290030"
  88. as.LWing = "http://www.roblox.com/asset/?id=90821133"
  89. as.RWing = "http://www.roblox.com/asset/?id=90821193"
  90. as.WingT = "http://www.roblox.com/asset/?id=92189351"
  91. as.HeatSeekingMissile = "http://www.roblox.com/asset/?id=137991337"
  92. as.TimbaLaugh = "http://www.roblox.com/asset/?id=181368017"
  93. for i,v in pairs(as) do
  94. game:GetService("ContentProvider"):Preload(as[i])
  95. end
  96. iNew = function(tab)
  97. local v = Instance.new(tab[1])
  98. for Ind,Val in pairs(tab) do
  99. if Ind ~= 1 and Ind ~= 2 then
  100. v[Ind] = Val
  101. end
  102. end
  103. do
  104. if tab[2] ~= 0 or not LastMade then
  105. v.Parent = tab[2]
  106. LastMade = v
  107. return v
  108. end
  109. end
  110. end
  111.  
  112. iPart = function(tab)
  113. local v = Instance.new(tab.type or "Part")
  114. if tab.type ~= "CornerWedgePart" then
  115. v.formFactor = "Custom"
  116. end
  117. v.CanCollide = false
  118. v.TopSurface = 10
  119. v.BottomSurface = 10
  120. v.RightSurface = 10
  121. v.LeftSurface = 10
  122. v.FrontSurface = 10
  123. v.BackSurface = 10
  124. v.Size = v3(tab[2], tab[3], tab[4])
  125. if tab.co then
  126. v.BrickColor = bn(tab.co)
  127. end
  128. if tab.tr then
  129. v.Transparency = tab.tr
  130. end
  131. if tab.rf then
  132. v.Reflectance = tab.rf
  133. end
  134. if tab.cf then
  135. v.CFrame = tab.cf
  136. end
  137. if tab.an then
  138. v.Anchored = tab.an
  139. end
  140. if tab.mt then
  141. v.Material = tab.mt
  142. end
  143. if tab.ca then
  144. v.CanCollide = tab.ca
  145. end
  146. v.Parent = tab[1]
  147. LastMade = v
  148. return v
  149. end
  150.  
  151. Raycast = function(Pos, Dir, Dist, tab)
  152. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * Dist), tab)
  153. end
  154.  
  155. GetNormal = function(part, position)
  156. local obj = part.CFrame:pointToObjectSpace(position)
  157. local siz = part.Size / 2
  158. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  159. local vec = Vector3.FromNormalId(v)
  160. local wvec = part.CFrame:vectorToWorldSpace(vec)
  161. local vz = obj / (siz * vec)
  162. if mabs(vz.X - 1) < 0.01 or mabs(vz.Y - 1) < 0.01 or mabs(vz.Z - 1) < 0.01 then
  163. return wvec, vec
  164. end
  165. end
  166. if part.className == "WedgePart" then
  167. local wy = part.Size.y ^ 0.5
  168. local wz = part.Size.z ^ 0.5
  169. return part.CFrame:vectorToWorldSpace(Vector3.new(0, wz, -wy)), Vector3.new(0, wz, -wy)
  170. end
  171. end
  172.  
  173. Block = iNew({"NumberValue", Char; Name = "Block", Value = 0})
  174. pcall(function()
  175. Torso.LAW:Remove()
  176. end
  177. )
  178. pcall(function()
  179. Torso.RAW:Remove()
  180. end
  181. )
  182. pcall(function()
  183. Torso.LLW:Remove()
  184. end
  185. )
  186. pcall(function()
  187. Torso.RLW:Remove()
  188. end
  189. )
  190. LAW = iNew({"Weld", Torso; Name = "LAW", Part0 = Torso, C0 = cn(-1.5, 0.5, 0), C1 = cn(0, 0.5, 0)})
  191. RAW = iNew({"Weld", Torso; Name = "RAW", Part0 = Torso, C0 = cn(1.5, 0.5, 0), C1 = cn(0, 0.5, 0)})
  192. LLW = iNew({"Weld", Torso; Name = "LLW", Part0 = Torso, C0 = cn(-0.5, -1, 0), C1 = cn(0, 1, 0)})
  193. RLW = iNew({"Weld", Torso; Name = "RLW", Part0 = Torso, C0 = cn(0.5, -1, 0), C1 = cn(0, 1, 0)})
  194. Arms = function(on)
  195. LAM.Parent = Torso
  196. LAM.Part0 = Torso
  197. RAM.Parent = Torso
  198. RAM.Part0 = Torso
  199. if on then
  200. LAM.Part1 = LA
  201. if on then
  202. RAM.Part1 = RA
  203. LAW.Part1 = on and LA or nil
  204. RAW.Part1 = on and RA or nil
  205. end
  206. end
  207. end
  208.  
  209. Legs = function(on)
  210. LLM.Parent = Torso
  211. LLM.Part0 = Torso
  212. RLM.Parent = Torso
  213. RLM.Part0 = Torso
  214. if on then
  215. LLM.Part1 = LL
  216. if on then
  217. RLM.Part1 = RL
  218. LLW.Part1 = on and LL or nil
  219. RLW.Part1 = on and RL or nil
  220. end
  221. end
  222. end
  223.  
  224. GetWeld = function(weld)
  225. if not weld:FindFirstChild("Angle") then
  226. local a = Instance.new("Vector3Value", weld)
  227. a.Name = "Angle"
  228. local x, y, z = weld.C0:toEulerAnglesXYZ()
  229. a.Value = v3(mdeg(x), mdeg(y), mdeg(z))
  230. end
  231. do
  232. return weld.C0.p, weld.Angle.Value
  233. end
  234. end
  235.  
  236. ClearWeld = function(weld)
  237. if weld:FindFirstChild("Angle") then
  238. weld.Angle:Remove()
  239. end
  240. end
  241.  
  242. SetWeld = function(weld, CC, i, loops, origpos, origangle, nextpos, nextangle, smooth)
  243. local CO = "C" .. CC
  244. if not smooth then
  245. smooth = 1
  246. end
  247. if not weld:FindFirstChild("Angle") then
  248. local a = Instance.new("Vector3Value", weld)
  249. a.Name = "Angle"
  250. local x, y, z = weld.C0:toEulerAnglesXYZ()
  251. a.Value = v3(mdeg(x), mdeg(y), mdeg(z))
  252. end
  253. do
  254. local perc = nil
  255. if smooth == 1 then
  256. perc = math.sin(math.pi / 2 / loops * i)
  257. else
  258. perc = i / loops
  259. end
  260. local tox, toy, toz = 0, 0, 0
  261. if nextangle.x < origangle.x then
  262. tox = -mabs(origangle.x - nextangle.x) * (perc)
  263. else
  264. tox = mabs(origangle.x - nextangle.x) * (perc)
  265. end
  266. if nextangle.y < origangle.y then
  267. toy = -mabs(origangle.y - nextangle.y) * (perc)
  268. else
  269. toy = mabs(origangle.y - nextangle.y) * (perc)
  270. end
  271. if nextangle.z < origangle.z then
  272. toz = -mabs(origangle.z - nextangle.z) * (perc)
  273. else
  274. toz = mabs(origangle.z - nextangle.z) * (perc)
  275. end
  276. local tox2, toy2, toz2 = 0, 0, 0
  277. if nextpos.x < origpos.x then
  278. tox2 = -mabs(origpos.x - nextpos.x) * (perc)
  279. else
  280. tox2 = mabs(origpos.x - nextpos.x) * (perc)
  281. end
  282. if nextpos.y < origpos.y then
  283. toy2 = -mabs(origpos.y - nextpos.y) * (perc)
  284. else
  285. toy2 = mabs(origpos.y - nextpos.y) * (perc)
  286. end
  287. if nextpos.z < origpos.z then
  288. toz2 = -mabs(origpos.z - nextpos.z) * (perc)
  289. else
  290. toz2 = mabs(origpos.z - nextpos.z) * (perc)
  291. end
  292. weld.Angle.Value = v3(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  293. weld[CO] = cn(origpos.x + tox2, origpos.y + toy2, origpos.z + toz2) * ca(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  294. end
  295. end
  296.  
  297. PlaySound = function(sound, pitch, volume, parent)
  298. local newSound = iNew({"Sound", parent or Torso; Pitch = pitch, Volume = volume, Name = sound, SoundId = sound})
  299. newSound:Play()
  300. deb:AddItem(newSound, 6)
  301. return newSound
  302. end
  303.  
  304. Trails = {}
  305. TrailPack = {}
  306. Traili = {}
  307. Trail = function(obj, ofs, col)
  308. Trails[obj] = true
  309. Traili[#Traili + 1] = {obj, ofs, col, obj.CFrame * ofs}
  310. end
  311.  
  312. GetHuman = function(model)
  313. local foundHum, foundTorso, foundHead = nil, nil, nil
  314. if #model:GetChildren() == 0 then
  315. return
  316. end
  317. for i,v in pairs(model:GetChildren()) do
  318. if v:IsA("Humanoid") then
  319. foundHum = v
  320. else
  321. if v.Name == "Torso" then
  322. foundTorso = v
  323. else
  324. if v.Name == "Head" then
  325. foundHead = v
  326. end
  327. end
  328. end
  329. end
  330. return foundHum, foundTorso, foundHead
  331. end
  332.  
  333. Pack = iNew({"Model", Char; Name = "Pack"})
  334. p = Pack
  335. cc = {"Bright blue", "Bright yellow", "Bright orange", "Brown", "Reddish brown", "", "Dark stone grey", "Black", "White", "Really black", "Brick yellow", "Bright green", "Br. yellowish green"}
  336. Main = iPart({p, 1.25, 0.5, 1.25; co = cc[2]})
  337. iNew({"Weld", p; Part0 = Torso, Part1 = Main, C0 = cn(0, 0, 0.75) * ca(90, 0, 0)})
  338. iNew({"CylinderMesh", Main})
  339. Bolt = iPart({p, 0.75, 0.2, 0.75; co = cc[6]})
  340. iNew({"Weld", p; Part0 = Main, Part1 = Bolt, C0 = cn(0, 0.3, 0)})
  341. iNew({"CylinderMesh", Bolt})
  342. Boltp = iPart({p, 0.75, 0.2, 0.2; co = cc[7]})
  343. iNew({"Weld", p; Part0 = Bolt, Part1 = Boltp, C0 = cn(0, 0.05, 0) * ca(0, -30, 0)})
  344. Start = iPart({p, 1.25, 0.5, 1.25; co = cc[2]})
  345. iNew({"Weld", p; Part0 = Main, Part1 = Start, C0 = cn(0, 0, -0.625)})
  346. Cyl = iPart({p, 1.1, 0.5, 1.1; co = cc[6]})
  347. iNew({"Weld", p; Part0 = Start, Part1 = Cyl, C0 = cn(0, 0, -0.5) * ca(-90, 0, 0)})
  348. iNew({"CylinderMesh", Cyl})
  349. Cylc = iPart({p, 1.1, 0.5, 1.1; co = cc[6]})
  350. iNew({"Weld", p; Part0 = Cyl, Part1 = Cylc, C0 = cn(0, -0.5, 0) * ca(180, 0, 0)})
  351. iNew({"SpecialMesh", Cylc; MeshId = as.Cone, Scale = v3(0.56, 0.7, 0.56)})
  352. Cylt1 = iPart({p, 1.4, 0.2, 1.4; co = cc[6]})
  353. iNew({"Weld", p; Part0 = Cyl, Part1 = Cylt1, C0 = cn(0, 0.2, 0)})
  354. iNew({"CylinderMesh", Cylt1; Scale = v3(1, 1, 1)})
  355. Cylt2 = iPart({p, 1.2, 0.2, 1.2; co = cc[6]})
  356. wCylt2 = iNew({"Weld", p; Part0 = Cylt1, Part1 = Cylt2, C0 = cn(0, 0.15, 0) * ca(0, 0, 0)})
  357. iNew({"CylinderMesh", Cylt2; Scale = v3(1, 1, 1)})
  358. Rotate = iPart({p, 0.35, 1.8, 0.35; co = cc[7]})
  359. wRotate = iNew({"Weld", p; Part0 = Cylt2, Part1 = Rotate, C0 = cn(0, 1, 0.1) * ca(-30, 0, 90)})
  360. iNew({"CylinderMesh", Rotate})
  361. for i = -1, 1, 2 do
  362. local tStart = iPart({p, 0.2, 0.3, 0.3; co = cc[2]})
  363. iNew({"Weld", p; Part0 = Cylt2, Part1 = tStart, C0 = cn(0.35 * i, 0.25, 0.1)})
  364. do
  365. if i == -1 then
  366. local Mid1 = iPart({p, 0.25, 1.3, 0.25; co = cc[6]})
  367. iNew({"Weld", p; Part0 = Cylt2, Part1 = Mid1, C0 = cn(0, 0.25, 0.1) * ca(0, 0, 90)})
  368. iNew({"CylinderMesh", Mid1})
  369. end
  370. local Wed1 = iPart({p, 0.3, 0.5, 0.2; co = cc[2]})
  371. iNew({"Weld", p; Part0 = tStart, Part1 = Wed1, C0 = cn(0, 0.4, 0) * ca(0, 90 * i, 0)})
  372. iNew({"SpecialMesh", Wed1; MeshType = "Wedge"})
  373. local Wed2 = iPart({p, 0.3, 0.3, 0.3; co = cc[2]})
  374. iNew({"Weld", p; Part0 = Wed1, Part1 = Wed2, C0 = cn(0, 0.1, 0.25) * ca(0, 180 * i, 180)})
  375. iNew({"SpecialMesh", Wed2; MeshType = "Wedge"})
  376. local Cylt = iPart({p, 0.4, 0.4, 0.4; co = cc[2]})
  377. iNew({"Weld", p; Part0 = Rotate, Part1 = Cylt, C0 = cn(0, 0.6 * i, 0)})
  378. iNew({"CylinderMesh", Cylt})
  379. local Rotp = iPart({p, 0.4, 0.5, 0.2; co = cc[2]})
  380. iNew({"Weld", p; Part0 = Cylt, Part1 = Rotp, C0 = cn(0.4, 0, 0) * ca(0, 0, -90)})
  381. local Rotp2 = iPart({p, 0.4, 0.5, 0.2; co = cc[2]})
  382. iNew({"Weld", p; Part0 = Rotp, Part1 = Rotp2, C0 = cn(0, 0.25, -0.1) * ca(30, 0, 0) * cn(0, 0.25, 0.1)})
  383. if i == -1 then
  384. MidPart = iPart({p, 1.6, 0.5, 0.2; co = cc[2]})
  385. iNew({"Weld", p; Part0 = Rotp2, Part1 = MidPart, C0 = cn(-0.6, 0.5, 0)})
  386. end
  387. local MidWed = iPart({p, 0.2, 0.4, 0.2; co = cc[2]})
  388. iNew({"Weld", p; Part0 = MidPart, Part1 = MidWed, C0 = cn(0.2 * i, -0.35, 0) * ca(-90, 0, 90 * i)})
  389. iNew({"SpecialMesh", MidWed; MeshType = "Wedge"})
  390. local MidWedt = iPart({p, 0.2, 0.4, 0.2; co = cc[2]})
  391. iNew({"Weld", p; Part0 = MidPart, Part1 = MidWedt, C0 = cn(0.6 * i, 0.35, 0) * ca(90, 0, -90 * i)})
  392. iNew({"SpecialMesh", MidWedt; MeshType = "Wedge"})
  393. do
  394. if i == -1 then
  395. local Midt = iPart({p, 0.8, 0.2, 0.2; co = cc[2]})
  396. iNew({"Weld", p; Part0 = MidPart, Part1 = Midt, C0 = cn(0, 0.35, 0)})
  397. end
  398. if i == -1 then
  399. for x = 15, 90, 15 do
  400. local Headphones = iPart({p, 0, 0, 0; co = cc[2]})
  401. iNew({"Weld", p; Part0 = MidPart, Part1 = Headphones, C0 = cn(0, 0.3, -0.4) * ca(x - 30, 0, 0)})
  402. iNew({"SpecialMesh", Headphones; MeshId = as.Headphones})
  403. if x == 15 then
  404. RotatyThingy = iPart({p, 1.1, 1.1, 1.1; co = cc[1], tr = 0.75})
  405. iNew({"Weld", p; Part0 = Headphones, Part1 = RotatyThingy, C0 = cn(0, -0.1, -0.1)})
  406. iNew({"SpecialMesh", RotatyThingy; MeshType = "Sphere"})
  407. sph = iPart({p, 0.5, 0.5, 0.5; co = cc[9]})
  408. sph.Reflectance = 0.75
  409. iNew({"Weld", p; Part0 = RotatyThingy, Part1 = sph})
  410. iNew({"SpecialMesh", sph; MeshType = "Sphere"})
  411. Light = iNew({"PointLight", RotatyThingy; Shadows = true, Brightness = 2})
  412. TopAtt = iPart({p, 0.2, 0.4, 0.2; co = cc[6]})
  413. iNew({"Weld", p; Part0 = MidPart, Part1 = TopAtt, C0 = cn(0, 0.95, -0.3)})
  414. iNew({"BlockMesh", TopAtt; Scale = v3(0.5, 1, 0.5)})
  415. TopBar = iPart({p, 0.25, 0.25, 0.6; co = cc[6]})
  416. iNew({"Weld", p; Part0 = TopAtt, Part1 = TopBar, C0 = cn(0, 0.2, -0.2)})
  417. TopOut = iPart({p, 0.3, 0.3, 0.4; co = cc[2]})
  418. iNew({"Weld", p; Part0 = TopBar, Part1 = TopOut, C0 = cn(0, 0, 0.15)})
  419. TopWed = iPart({p, 0.25, 0.2, 0.25; co = cc[6]})
  420. iNew({"Weld", p; Part0 = TopBar, Part1 = TopWed, C0 = cn(0, 0, -0.4) * ca(-90, 0, 0)})
  421. iNew({"SpecialMesh", TopWed; MeshType = "Wedge"})
  422. TopHole = iPart({p, 1, 1, 0.2; co = cc[10]})
  423. iNew({"Weld", p; Part0 = TopWed, Part1 = TopHole, C0 = ca(math.deg(math.atan2(0.25, 0.2)), 0, 0) * cn(0, 0, -0.01)})
  424. iNew({"BlockMesh", TopHole; Scale = v3(0.15, 0.22015621187164, 0.1)})
  425. end
  426. end
  427. end
  428. do
  429. do
  430. for x = 0, 180, 36 do
  431. local Armor = iPart({p, 0.25, 0.5, 0.25; co = cc[2]})
  432. iNew({"Weld", p; Part0 = Torso, Part1 = Armor, C0 = ca(0, 0, -10 * i) * cn(0.6 * i, 0.75, 0) * ca(-x, 0, 0) * cn(0, 0, 0.6)})
  433. iNew({"CylinderMesh", Armor})
  434. local Plate = iPart({p, 0.75, 0.5, 0.2; co = cc[2], mt = "WoodPlanks"})
  435. iNew({"Weld", p; Part0 = Armor, Part1 = Plate, C0 = cn(0.375 * i, 0, 0)})
  436. iNew({"BlockMesh", Plate})
  437. if x ~= 0 or not 2 then
  438. do
  439. local Sph = iPart({p, 0.25, 0.25, 0.25; co = cc[x ~= 0 and x ~= 180 or 6]})
  440. iNew({"Weld", p; Part0 = Armor, Part1 = Sph, C0 = cn(0, x == 0 and -0.25 or 0.375, 0)})
  441. if x == 0 then
  442. iNew({"SpecialMesh", Sph; MeshType = "Sphere"})
  443. else
  444. iNew({"CylinderMesh", Sph})
  445. end
  446. -- DECOMPILER ERROR at PC1568: LeaveBlock: unexpected jumping out IF_THEN_STMT
  447.  
  448. -- DECOMPILER ERROR at PC1568: LeaveBlock: unexpected jumping out IF_STMT
  449.  
  450. end
  451. end
  452. end
  453. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out DO_STMT
  454.  
  455. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out DO_STMT
  456.  
  457. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out DO_STMT
  458.  
  459. end
  460. end
  461. end
  462. end
  463. end
  464. RocketArm = iPart({p, 0.5, 0.2, 0.5; co = cc[2]})
  465. wRocketArm = iNew({"Weld", p; Part0 = MidPart, Part1 = RocketArm, C0 = cn(-0.8, 0.2, -0.4) * ca(-20, 0, 90)})
  466. iNew({"CylinderMesh", RocketArm})
  467. Arm1 = iPart({p, 0.3, 0.4, 0.3; co = cc[7]})
  468. iNew({"Weld", p; Part0 = RocketArm, Part1 = Arm1, C0 = cn(-0.2, 0.1, 0) * ca(0, 0, -30) * cn(0.2, 0.2, 0)})
  469. iNew({"CylinderMesh", Arm1})
  470. Arm2 = iPart({p, 0.3, 0.6, 0.3; co = cc[7]})
  471. iNew({"Weld", p; Part0 = Arm1, Part1 = Arm2, C0 = cn(-0.15, 0.2, 0) * ca(0, 0, -45) * cn(0.15, 0.3, 0)})
  472. iNew({"CylinderMesh", Arm2})
  473. Arm3J = iPart({p, 0.3, 0.3, 0.3; co = cc[7]})
  474. iNew({"Weld", p; Part0 = Arm2, Part1 = Arm3J, C0 = cn(0, 0.3, 0) * ca(0, 0, 75)})
  475. iNew({"SpecialMesh", Arm3J; MeshType = "Sphere"})
  476. Arm3 = iPart({p, 0.3, 0.6, 0.3; co = cc[7]})
  477. iNew({"Weld", p; Part0 = Arm3J, Part1 = Arm3, C0 = cn(0, 0.3, 0)})
  478. iNew({"CylinderMesh", Arm3})
  479. ArmC = iPart({p, 0, 0, 0; co = cc[6]})
  480. iNew({"Weld", p; Part0 = Arm3, Part1 = ArmC, C0 = cn(0, 0.3, 0) * ca(180, 0, 0)})
  481. iNew({"SpecialMesh", ArmC; MeshId = as.Cone, Scale = v3(0.25, 0.5, 0.25)})
  482. ArmS = iPart({p, 0.4, 0.4, 0.4; co = cc[7]})
  483. iNew({"Weld", p; Part0 = ArmC, Part1 = ArmS, C0 = cn(0, -0.3, 0) * ca(160, 0, 80)})
  484. iNew({"SpecialMesh", ArmS; MeshType = "Sphere"})
  485. Arm4 = iPart({p, 0.3, 1.5, 0.3; co = cc[6]})
  486. iNew({"Weld", p; Part0 = ArmS, Part1 = Arm4, C0 = cn(0, 0.75, 0)})
  487. iNew({"CylinderMesh", Arm4})
  488. ShA = iPart({p, 0.5, 0.7, 0.5; co = cc[2]})
  489. iNew({"Weld", p; Part0 = ArmS, Part1 = ShA, C0 = cn(0, 0.35, 0)})
  490. iNew({"CylinderMesh", ShA})
  491. ShA2 = iPart({p, 0, 0, 0; co = cc[2]})
  492. iNew({"Weld", p; Part0 = ArmS, Part1 = ShA2, C0 = cn(0, 0, 0) * ca(0, -110, 180)})
  493. iNew({"SpecialMesh", ShA2; MeshId = as.QSphere, Scale = v3(0.5, 0.5, 0.5)})
  494. RocketArm2 = iPart({p, 0.4, 0.35, 0.4; co = cc[6]})
  495. wRocketArm2 = iNew({"Weld", p; Part0 = Arm4, Part1 = RocketArm2, C0 = cn(0, 0.75, 0) * ca(90, -65, 0)})
  496. iNew({"CylinderMesh", RocketArm2})
  497. for i = 0, 180, 22.5 do
  498. local ArmP = iPart({p, 0.2, 0.2, 0.3; co = cc[6]})
  499. iNew({"Weld", p; Part0 = RocketArm2, Part1 = ArmP, C0 = cn(0, 0, 0) * ca(0, 30 + i, 0) * cn(0.35, 0, 0)})
  500. iNew({"BlockMesh", ArmP; Scale = v3(0.5, 0.5, 0.5)})
  501. end
  502. for i = 0, 180, 45 do
  503. local ArmP = iPart({p, 0.2, 0.2, 0.3; co = cc[6]})
  504. iNew({"Weld", p; Part0 = RocketArm2, Part1 = ArmP, C0 = cn(0, 0, 0) * ca(0, 30 + i, 0) * cn(0.45, 0, 0)})
  505. iNew({"BlockMesh", ArmP; Scale = v3(0.5, 0.5, 0.5)})
  506. end
  507. ArmP = iPart({p, 0.6, 0.2, 0.3; co = cc[6]})
  508. iNew({"Weld", p; Part0 = RocketArm2, Part1 = ArmP, C0 = ca(0, 30, 0)})
  509. iNew({"BlockMesh", ArmP; Scale = v3(1, 0.5, 0.5)})
  510. Arm5 = iPart({p, 0.3, 1.5, 0.3; co = cc[6]})
  511. iNew({"Weld", p; Part0 = RocketArm2, Part1 = Arm5, C0 = cn(0, 0, -0.75) * ca(-90, 0, 0)})
  512. iNew({"CylinderMesh", Arm5})
  513. ShA = iPart({p, 0.5, 0.5, 0.5; co = cc[2]})
  514. iNew({"Weld", p; Part0 = Arm5, Part1 = ShA, C0 = cn(0, 0.25, 0)})
  515. iNew({"SpecialMesh", ShA})
  516. RocketC = iPart({p, 0.5, 0.3, 0.5; co = cc[6]})
  517. wRocketC = iNew({"Weld", p; Part0 = Arm5, Part1 = RocketC, C0 = cn(0, 0.75, 0) * ca(0, 0, 0)})
  518. iNew({"CylinderMesh", RocketC})
  519. RocketCo = iPart({p, 0, 0, 0; co = cc[6]})
  520. iNew({"Weld", p; Part0 = RocketC, Part1 = RocketCo, C0 = cn(0, 0.205, 0)})
  521. iNew({"SpecialMesh", RocketCo; MeshId = as.Cone, Scale = v3(0.243, 0.15, 0.243)})
  522. for i = -1, 1, 2 do
  523. local Rp = iPart({p, 0.2, 0.75, 0.2; co = cc[6]})
  524. iNew({"Weld", p; Part0 = RocketC, Part1 = Rp, C0 = cn(0.15 * i, 0, 0) * ca(0, 0, -60 * i) * cn(0, 0.375, 0)})
  525. iNew({"BlockMesh", Rp; Scale = v3(0.5, 1, 1)})
  526. local Rp2 = iPart({p, 0.2, 0.75, 0.2; co = cc[6]})
  527. iNew({"Weld", p; Part0 = Rp, Part1 = Rp2, C0 = cn(0.05 * i, 0.375, 0) * ca(0, 0, 60 * i) * cn(-0.05 * i, 0.375, 0)})
  528. iNew({"BlockMesh", Rp2; Scale = v3(0.5, 1, 1)})
  529. local Rp3 = iPart({p, 0.4, 0.2, 0.4; co = cc[6]})
  530. iNew({"Weld", p; Part0 = Rp2, Part1 = Rp3, C0 = cn(0, 0.375, 0) * ca(0, 0, 90)})
  531. iNew({"CylinderMesh", Rp3; Scale = v3(1, 1, 1)})
  532. if i == -1 then
  533. RocketMid = iPart({p, 0.3, 1.549, 0.3; co = cc[6]})
  534. wRocketRot = iNew({"Weld", p; Part0 = Rp3, Part1 = RocketMid, C0 = cn(0, -0.7745, 0) * ca(0, 15, 0)})
  535. iNew({"CylinderMesh", RocketMid})
  536. end
  537. end
  538. for i = -1, 1, 2 do
  539. local sc = 0.8
  540. local RPart = iPart({p, 0.3, 1.7320508075689 * sc, 1 * sc; co = cc[7]})
  541. iNew({"Weld", p; Part0 = RocketMid, Part1 = RPart, C0 = ca(0, 0, 90) * cn(-sc / 2 * i, 0, 0) * ca(0, 90 * i, 0)})
  542. iNew({"SpecialMesh", RPart; MeshType = "Wedge"})
  543. end
  544. Barrels = {}
  545. for i = 120, 360, 120 do
  546. local BStart = iPart({p, 0.55, 0.3, 0.55; co = cc[3]})
  547. iNew({"Weld", p; Part0 = RocketMid, Part1 = BStart, C0 = ca(90, 0, 180) * cn(-0.2, 0.25, 0) * ca(0, i, 0) * cn(0.33, 0, 0)})
  548. iNew({"CylinderMesh", BStart})
  549. local Barrel = iPart({p, 0.55, 0.55, 0.55; co = cc[7]})
  550. iNew({"Weld", p; Part0 = BStart, Part1 = Barrel, C0 = cn(0, 0.425, 0)})
  551. iNew({"CylinderMesh", Barrel})
  552. table.insert(Barrels, Barrel)
  553. local Hole = iPart({p, 0.4, 0, 0.4; co = cc[10]})
  554. iNew({"Weld", p; Part0 = Barrel, Part1 = Hole, C0 = cn(0, 0.275, 0)})
  555. iNew({"CylinderMesh", Hole; Scale = v3(1, 0.05, 1)})
  556. end
  557. LaserArm = iPart({p, 0.5, 0.2, 0.5; co = cc[2]})
  558. wLaserArm = iNew({"Weld", p; Part0 = MidPart, Part1 = LaserArm, C0 = cn(0.8, 0.2, -0.4) * ca(160, 0, -90)})
  559. iNew({"CylinderMesh", LaserArm})
  560. Arm1 = iPart({p, 0.3, 0.4, 0.3; co = cc[7]})
  561. iNew({"Weld", p; Part0 = LaserArm, Part1 = Arm1, C0 = cn(-0.2, 0.1, 0) * ca(0, 0, -30) * cn(0.2, 0.2, 0)})
  562. iNew({"CylinderMesh", Arm1})
  563. Arm2 = iPart({p, 0.3, 0.6, 0.3; co = cc[7]})
  564. iNew({"Weld", p; Part0 = Arm1, Part1 = Arm2, C0 = cn(-0.15, 0.2, 0) * ca(0, 0, -45) * cn(0.15, 0.3, 0)})
  565. iNew({"CylinderMesh", Arm2})
  566. Arm3J = iPart({p, 0.3, 0.3, 0.3; co = cc[7]})
  567. iNew({"Weld", p; Part0 = Arm2, Part1 = Arm3J, C0 = cn(0, 0.3, 0) * ca(0, 0, 75)})
  568. iNew({"SpecialMesh", Arm3J; MeshType = "Sphere"})
  569. Arm3 = iPart({p, 0.3, 0.6, 0.3; co = cc[7]})
  570. iNew({"Weld", p; Part0 = Arm3J, Part1 = Arm3, C0 = cn(0, 0.3, 0)})
  571. iNew({"CylinderMesh", Arm3})
  572. ArmC = iPart({p, 0, 0, 0; co = cc[6]})
  573. iNew({"Weld", p; Part0 = Arm3, Part1 = ArmC, C0 = cn(0, 0.3, 0) * ca(180, 0, 0)})
  574. iNew({"SpecialMesh", ArmC; MeshId = as.Cone, Scale = v3(0.25, 0.5, 0.25)})
  575. ArmS = iPart({p, 0.4, 0.4, 0.4; co = cc[7]})
  576. iNew({"Weld", p; Part0 = ArmC, Part1 = ArmS, C0 = cn(0, -0.3, 0) * ca(190, 0, 80)})
  577. iNew({"SpecialMesh", ArmS; MeshType = "Sphere"})
  578. Arm4 = iPart({p, 0.3, 1.5, 0.3; co = cc[6]})
  579. iNew({"Weld", p; Part0 = ArmS, Part1 = Arm4, C0 = cn(0, 0.75, 0)})
  580. iNew({"CylinderMesh", Arm4})
  581. ShA = iPart({p, 0.5, 0.7, 0.5; co = cc[2]})
  582. iNew({"Weld", p; Part0 = ArmS, Part1 = ShA, C0 = cn(0, 0.35, 0)})
  583. iNew({"CylinderMesh", ShA})
  584. ShA2 = iPart({p, 0, 0, 0; co = cc[2]})
  585. iNew({"Weld", p; Part0 = ArmS, Part1 = ShA2, C0 = cn(0, 0, 0) * ca(0, -90, 180)})
  586. iNew({"SpecialMesh", ShA2; MeshId = as.QSphere, Scale = v3(0.5, 0.5, 0.5)})
  587. LaserArm2 = iPart({p, 0.4, 0.35, 0.4; co = cc[6]})
  588. wLaserArm2 = iNew({"Weld", p; Part0 = Arm4, Part1 = LaserArm2, C0 = cn(0, 0.75, 0) * ca(90, -65, 0)})
  589. iNew({"CylinderMesh", LaserArm2})
  590. for i = 0, 180, 22.5 do
  591. local ArmP = iPart({p, 0.2, 0.2, 0.3; co = cc[6]})
  592. iNew({"Weld", p; Part0 = LaserArm2, Part1 = ArmP, C0 = cn(0, 0, 0) * ca(0, 30 + i, 0) * cn(0.35, 0, 0)})
  593. iNew({"BlockMesh", ArmP; Scale = v3(0.5, 0.5, 0.5)})
  594. end
  595. for i = 0, 180, 45 do
  596. local ArmP = iPart({p, 0.2, 0.2, 0.3; co = cc[6]})
  597. iNew({"Weld", p; Part0 = LaserArm2, Part1 = ArmP, C0 = cn(0, 0, 0) * ca(0, 30 + i, 0) * cn(0.45, 0, 0)})
  598. iNew({"BlockMesh", ArmP; Scale = v3(0.5, 0.5, 0.5)})
  599. end
  600. ArmP = iPart({p, 0.6, 0.2, 0.3; co = cc[6]})
  601. iNew({"Weld", p; Part0 = LaserArm2, Part1 = ArmP, C0 = ca(0, 30, 0)})
  602. iNew({"BlockMesh", ArmP; Scale = v3(1, 0.5, 0.5)})
  603. Arm5 = iPart({p, 0.3, 1.5, 0.3; co = cc[6]})
  604. iNew({"Weld", p; Part0 = LaserArm2, Part1 = Arm5, C0 = cn(0, 0, -0.75) * ca(-90, 0, 0)})
  605. iNew({"CylinderMesh", Arm5})
  606. ShA = iPart({p, 0.5, 0.5, 0.5; co = cc[2]})
  607. iNew({"Weld", p; Part0 = Arm5, Part1 = ShA, C0 = cn(0, 0.25, 0)})
  608. iNew({"SpecialMesh", ShA})
  609. LaserC = iPart({p, 0.5, 0.3, 0.5; co = cc[6]})
  610. wLaserC = iNew({"Weld", p; Part0 = Arm5, Part1 = LaserC, C0 = cn(0, 0.75, 0) * ca(0, 0, 0)})
  611. iNew({"CylinderMesh", LaserC})
  612. LaserCo = iPart({p, 0, 0, 0; co = cc[6]})
  613. iNew({"Weld", p; Part0 = LaserC, Part1 = LaserCo, C0 = cn(0, 0.205, 0)})
  614. iNew({"SpecialMesh", LaserCo; MeshId = as.Cone, Scale = v3(0.243, 0.15, 0.243)})
  615. for i = -1, 1, 2 do
  616. local Rp = iPart({p, 0.2, 0.75, 0.2; co = cc[6]})
  617. iNew({"Weld", p; Part0 = LaserC, Part1 = Rp, C0 = cn(0.15 * i, 0, 0) * ca(0, 0, -60 * i) * cn(0, 0.375, 0)})
  618. iNew({"BlockMesh", Rp; Scale = v3(0.5, 1, 1)})
  619. local Rp2 = iPart({p, 0.2, 0.75, 0.2; co = cc[6]})
  620. iNew({"Weld", p; Part0 = Rp, Part1 = Rp2, C0 = cn(0.05 * i, 0.375, 0) * ca(0, 0, 60 * i) * cn(-0.05 * i, 0.375, 0)})
  621. iNew({"BlockMesh", Rp2; Scale = v3(0.5, 1, 1)})
  622. local Rp3 = iPart({p, 0.4, 0.2, 0.4; co = cc[6]})
  623. iNew({"Weld", p; Part0 = Rp2, Part1 = Rp3, C0 = cn(0, 0.375, 0) * ca(0, 0, 90)})
  624. iNew({"CylinderMesh", Rp3; Scale = v3(1, 1, 1)})
  625. if i == -1 then
  626. LaserMid = iPart({p, 0.55, 1.549, 0.55; co = cc[6]})
  627. wLaserRot = iNew({"Weld", p; Part0 = Rp3, Part1 = LaserMid, C0 = cn(0, -0.7745, 0) * ca(0, -105, 0)})
  628. iNew({"CylinderMesh", LaserMid})
  629. end
  630. end
  631. LaserB = iPart({p, 1.1, 0.9, 1.1; co = cc[2]})
  632. iNew({"Weld", p; Part0 = LaserMid, Part1 = LaserB, C0 = cn(0, 0, 0) * ca(0, 0, 90)})
  633. iNew({"CylinderMesh", LaserB})
  634. for i = -1, 1, 2 do
  635. local BRing = iPart({p, 0, 0, 0; co = cc[6]})
  636. iNew({"Weld", p; Part0 = LaserB, Part1 = BRing, C0 = cn(0, 0.45 * i, 0) * ca(90, 0, 0)})
  637. iNew({"SpecialMesh", BRing; MeshId = as.Ring, Scale = v3(1, 1, 1)})
  638. local BRock = iPart({p, 0, 0, 0})
  639. iNew({"Weld", p; Part0 = LaserB, Part1 = BRock, C0 = cn(0, 0.5 * i, 0) * ca(90 - 90 * i, 0, 0)})
  640. iNew({"SpecialMesh", BRock; MeshId = as.Rock, TextureId = as.RockT, Scale = v3(0.5, 0.3, 0.5), VertexColor = v3(0, 0.8, 1)})
  641. end
  642. LaserM = iPart({p, 0.5, 1.5, 0.5; co = cc[7]})
  643. iNew({"Weld", p; Part0 = LaserB, Part1 = LaserM, C0 = cn(0, -0.75, 0)})
  644. iNew({"CylinderMesh", LaserM})
  645. LaserT = iPart({p, 0.8, 0.3, 0.8; co = cc[7]})
  646. iNew({"Weld", p; Part0 = LaserM, Part1 = LaserT, C0 = cn(0, -0.65, 0)})
  647. iNew({"CylinderMesh", LaserT})
  648. LaserH = iPart({p, 0.4, 0.3, 0.4; co = cc[10]})
  649. iNew({"Weld", p; Part0 = LaserT, Part1 = LaserH, C0 = cn(0, -0.3, 0)})
  650. iNew({"CylinderMesh", LaserH})
  651. for i = 0, 360, 22.5 do
  652. local LaserW = iPart({p, 0.2, 0.4, 0.2; co = cc[7]})
  653. iNew({"Weld", p; Part0 = LaserT, Part1 = LaserW, C0 = cn(0, -0.35, 0) * ca(180, i, 0) * cn(0, 0, -0.3)})
  654. iNew({"SpecialMesh", LaserW; MeshType = "Wedge"})
  655. end
  656. BSide = iPart({p, 0.2, 0.9, 0.2; co = cc[6]})
  657. iNew({"Weld", p; Part0 = LaserB, Part1 = BSide, C0 = cn(0, 0, 0.55) * ca(0, 0, 0)})
  658. iNew({"BlockMesh", BSide; Scale = v3(1, 1, 0.05)})
  659. for i = -1, 1, 2 do
  660. local Shin = iPart({p, 1.1, 0.8, 1.1; co = cc[2]})
  661. iNew({"Weld", p; Part0 = i == -1 and LL or RL, Part1 = Shin, C0 = cn(0, -0.65, 0)})
  662. local Toe = iPart({p, 0.9, 0.3, 0.4; co = cc[2]})
  663. iNew({"Weld", p; Part0 = Shin, Part1 = Toe, C0 = cn(0, -0.25, -0.75)})
  664. local Wing = iPart({p, 0, 0, 0})
  665. iNew({"Weld", p; Part0 = Shin, Part1 = Wing, C0 = cn(0.55 * i, 0.4, 0.75) * ca(-15, 90 * i, 0)})
  666. iNew({"SpecialMesh", Wing; MeshId = as[i == -1 and "RWing" or "LWing"], TextureId = as.WingT, Scale = v3(0.8, 0.6, 1)})
  667. for i = -1, 1, 2 do
  668. local Light = iPart({p, 0.2, 0.3, 0.3; co = cc[1], tr = 0.25})
  669. iNew({"Weld", p; Part0 = Shin, Part1 = Light, C0 = cn(0.55 * i, 0, 0)})
  670. iNew({"SpecialMesh", Light; MeshType = "Sphere"})
  671. end
  672. end
  673. for i = -1, 1, 2 do
  674. local Handle = iPart({p, 0.25, 0.8, 0.25; co = cc[6]})
  675. iNew({"Weld", p; Part0 = i == -1 and LA or RA, Part1 = Handle, C0 = cn(0, -1, 0) * ca(-90, 0, 0)})
  676. iNew({"CylinderMesh", Handle})
  677. for ii = -1, 1, 2 do
  678. local hp = iPart({p, 0.25, 0.2, 0.35; co = cc[6]})
  679. iNew({"Weld", p; Part0 = Handle, Part1 = hp, C0 = cn(0, 0.45 * ii, -0.1)})
  680. iNew({"BlockMesh", hp; Scale = v3(1, 0.5, 1)})
  681. local hp2 = iPart({p, 0.25, 0.2, 0.3; co = cc[6]})
  682. iNew({"Weld", p; Part0 = hp, Part1 = hp2, C0 = cn(0, 0.05 * ii, -0.175) * ca(-60 * ii, 0, 0) * cn(0, -0.05 * ii, -0.15)})
  683. iNew({"BlockMesh", hp2; Scale = v3(1, 0.5, 1)})
  684. do
  685. if ii == -1 then
  686. local hp3 = iPart({p, 0.25, 0.49019237886467, 0.2; co = cc[6]})
  687. iNew({"Weld", p; Part0 = Handle, Part1 = hp3, C0 = cn(0, 0, -0.37)})
  688. iNew({"BlockMesh", hp3; Scale = v3(1, 1, 0.5)})
  689. end
  690. local hp4 = iPart({p, 0.25, 0.2, 0.25; co = cc[7]})
  691. iNew({"Weld", p; Part0 = Handle, Part1 = hp4, C0 = cn(0, 0.55 * ii, 0) * ca(90 - 90 * ii, 0, 0)})
  692. iNew({"CylinderMesh", hp4; Scale = v3(1, 0.5, 1)})
  693. for iii = -1, 1, 2 do
  694. local Sph = iPart({p, 0, 0, 0; co = cc[(i ~= -1 or not 2) and i == 1 and 1]})
  695. iNew({"Weld", p; Part0 = hp4, Part1 = Sph, C0 = cn(0, 0.05, 0) * ca(0, 90 - 90 * iii, 0)})
  696. iNew({"SpecialMesh", Sph; MeshId = as.QSphere, Scale = v3(0.25, 0.25, 0.25)})
  697. end
  698. -- DECOMPILER ERROR at PC4540: LeaveBlock: unexpected jumping out DO_STMT
  699.  
  700. end
  701. end
  702. end
  703. Pipe = iPart({p, 0.2, 0.4, 0.2; co = cc[4]})
  704. iNew({"Weld", p; Part0 = Head, Part1 = Pipe, C0 = cn(-0.1, -0.225, -0.75) * ca(-100, 0, 15)})
  705. iNew({"CylinderMesh", Pipe; Scale = v3(0.5, 1, 0.5)})
  706. ba = iPart({p, 0.2, 0.2, 0.2; co = cc[4]})
  707. iNew({"Weld", p; Part0 = Pipe, Part1 = ba, C0 = cn(0, 0.2, 0) * ca(-90, 0, 0)})
  708. iNew({"SpecialMesh", ba; MeshType = "Sphere", Scale = v3(0.5, 0.5, 0.5)})
  709. p2 = iPart({p, 0.2, 0.4, 0.2; co = cc[4]})
  710. iNew({"Weld", p; Part0 = ba, Part1 = p2, C0 = cn(0, 0.2, 0)})
  711. iNew({"CylinderMesh", p2; Scale = v3(0.5, 1, 0.5)})
  712. ba2 = iPart({p, 0.2, 0.2, 0.2; co = cc[4]})
  713. iNew({"Weld", p; Part0 = p2, Part1 = ba2, C0 = cn(0, 0.2, 0) * ca(90, 0, 0)})
  714. iNew({"SpecialMesh", ba2; MeshType = "Sphere", Scale = v3(0.5, 0.5, 0.5)})
  715. p3 = iPart({p, 0.2, 0.3, 0.2; co = cc[4]})
  716. iNew({"Weld", p; Part0 = ba2, Part1 = p3, C0 = cn(0, 0.15, 0)})
  717. iNew({"CylinderMesh", p3; Scale = v3(0.5, 1, 0.5)})
  718. cu = iPart({p, 0, 0, 0; co = cc[4]})
  719. iNew({"Weld", p; Part0 = p3, Part1 = cu, C0 = cn(0, 0.15, 0.1) * ca(-90, 0, 0)})
  720. iNew({"SpecialMesh", cu; MeshId = as.Cone, Scale = v3(0.15, 0.3, 0.15)})
  721. ho = iPart({p, 0.2, 0.2, 0.2; co = cc[10]})
  722. iNew({"Weld", p; Part0 = cu, Part1 = ho, C0 = cn(0, -0.115, 0)})
  723. iNew({"CylinderMesh", ho; Scale = v3(0.85, 0.05, 0.85)})
  724. Smoke = iNew({"Smoke", ho; Color = bc(cc[6]).Color, Opacity = 0.25, RiseVelocity = -3, Size = 0, Enabled = false})
  725. FindNearest = function(Amount, Range)
  726. local Players = game:GetService("Players"):GetPlayers()
  727. for i = 1, #Players do
  728. if Players[i] == Player then
  729. table.remove(Players, i)
  730. end
  731. end
  732. local Nearest = {}
  733. if Amount > #Players or not Amount then
  734. for i = 1, #Players do
  735. local Point = Torso.Position
  736. local NearestMag = Range
  737. local NearestPlr, NearestInd = nil, nil
  738. for _,v in pairs(Players) do
  739. if v.Character and v.Character.Torso and v.Name ~= "129K" then
  740. local Dist = v.Character.Torso.Position - Point.magnitude
  741. if Dist < NearestMag then
  742. NearestMag = Dist
  743. NearestPlr = v
  744. NearestInd = _
  745. end
  746. end
  747. end
  748. table.insert(Nearest, NearestPlr)
  749. table.remove(Players, NearestInd)
  750. end
  751. return Nearest
  752. end
  753. end
  754.  
  755. ShootMissiles = function()
  756. local Nearest3 = FindNearest(3, 120)
  757. for i = 1, #Nearest3 do
  758. local Missile = iPart({p, 0.6, 0.6, 0.6; co = cc[3], cf = Barrels[i].CFrame * cn(0, Barrels[i].Size.y, 0)})
  759. do
  760. Missile.CanCollide = true
  761. iNew({"CylinderMesh", Missile})
  762. iNew({"Fire", Missile})
  763. iNew({"Smoke", Missile; Color = bn(cc[7]).Color})
  764. do
  765. if i == 1 then
  766. local Sound = iNew({"Sound", workspace; SoundId = as.HeatSeekingMissile, Pitch = 1})
  767. Sound:Play()
  768. game:GetService("Debris"):AddItem(Sound, 5)
  769. end
  770. local Explode = function()
  771. if Missile.Parent then
  772. iNew({"Explosion", workspace; Position = Missile.Position})
  773. Missile:Destroy()
  774. end
  775. end
  776.  
  777. local RP = iNew({"RocketPropulsion", Missile; CartoonFactor = 1, MaxSpeed = 150, MaxThrust = 10000, MaxTorque = v3(1, 1, 1) / 0, TargetRadius = 5, Target = Nearest3[i].Character.Torso})
  778. RP.ReachedTarget:connect(function()
  779. Explode()
  780. end
  781. )
  782. RP:Fire()
  783. Spawn(function()
  784. wait(10)
  785. Explode()
  786. end
  787. )
  788. end
  789. -- DECOMPILER ERROR at PC114: LeaveBlock: unexpected jumping out DO_STMT
  790.  
  791. end
  792. end
  793. end
  794.  
  795. ShootLaser = function()
  796. local Nearest = FindNearest(1, 100)
  797. for i = 1, #Nearest do
  798. local CF = LaserH.CFrame
  799. local CF2 = Nearest[i].Character.Torso.CFrame
  800. for t = 0, 1, 0.05 do
  801. local p0 = CF * cn(0, 1, 0)
  802. local p1 = Torso.CFrame * cn(0, 0, -4)
  803. local p2 = CF2 * cn(0, 0, -1)
  804. local p3 = p2 * cn(0, 0, -4)
  805. local B = 0.05
  806. local Part = iPart({workspace, 1, 1, 1; an = true, co = cc[2], cf = p0})
  807. local Part = iPart({workspace, 1, 1, 1; an = true, co = cc[2], cf = p1})
  808. local Part = iPart({workspace, 1, 1, 1; an = true, co = cc[2], cf = p2})
  809. local Part = iPart({workspace, 1, 1, 1; an = true, co = cc[2], cf = p3})
  810. local Part = iPart({workspace, 0.5, 1, 0.5; an = true, co = cc[1]})
  811. Part.CFrame = CF * cn((1 - t) * B * (p0.x * p1.x * p2.x) * t + t * (B * (p1.x * p2.x * p3.x)) * t, (1 - t) * B * (p0.y * p1.y * p2.y) * t + t * (B * (p1.y * p2.y * p3.y)) * t, (1 - t) * B * (p0.z * p1.z * p2.z) * t + t * (B * (p1.z * p2.z * p3.z)) * t)
  812. end
  813. end
  814. end
  815.  
  816. keys = {}
  817. Mouse.KeyDown:connect(function(key)
  818. keys[key] = true
  819. if key == "q" then
  820. ShootMissiles()
  821. end
  822. if key == "e" then
  823. ShootLaser()
  824. end
  825. if key == "x" then
  826. local OhhhOhOhHoHoOhhhhhhHAWWWWW = iNew({"Sound", workspace; SoundId = as.TimbaLaugh, Pitch = 1})
  827. OhhhOhOhHoHoOhhhhhhHAWWWWW:Play()
  828. game:GetService("Debris"):AddItem(OhhhOhOhHoHoOhhhhhhHAWWWWW, 5)
  829. end
  830. end
  831. )
  832. Mouse.KeyUp:connect(function(key)
  833. keys[key] = false
  834. end
  835. )
  836. Count = 0
  837. -- DECOMPILER ERROR: 2 unprocessed JMP targets
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement