Drewiscool123

Ship

Jul 26th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.56 KB | None | 0 0
  1. local plyrs = game:GetService("Players")
  2. local wkrsp = game:GetService("Workspace")
  3. local game = game
  4. local hull = 500
  5. local pilot = false
  6. local alive = true
  7. local cannon = true
  8. local colors = {"Dark red", "Reddish brown"}
  9. local color = nil
  10. local pos = 5
  11. local forward = false
  12. local back = false
  13. local turn = false
  14. local up = false
  15. local down = false
  16. local speed = 100
  17. if cannon == true then
  18. color = colors[1]
  19. else
  20. color = colors[2]
  21. end
  22.  
  23. pcall(function() wkrsp.Base.Morala:remove() end)
  24. local model = Instance.new("Model", wkrsp.Base)
  25. model.Name = "Morala"
  26. local base = Instance.new("Part", model)
  27. base.formFactor = "Custom"
  28. base.BrickColor = BrickColor.new(color)
  29. base.Size = Vector3.new(25, 1, 50)
  30. base.CFrame = CFrame.new(75, 1, 0)
  31. base.CanCollide = true
  32. local basem = Instance.new("BlockMesh", base)
  33. basem.Bevel = 0.075
  34. basem.Scale = Vector3.new(1, 1, 1)
  35. base:BreakJoints()
  36. local basep = Instance.new("BodyPosition", base)
  37. basep.position = Vector3.new(75, pos, 0)
  38. basep.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  39. local baseg = Instance.new("BodyGyro", base)
  40. baseg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  41. local base2 = Instance.new("Part", model)
  42. base2.formFactor = "Custom"
  43. base2.BrickColor = BrickColor.new(color)
  44. base2.Size = Vector3.new(25, 1, 50)
  45. base2.CFrame = CFrame.new(75, 1, 0)
  46. base2.CanCollide = true
  47. local base2m = Instance.new("BlockMesh", base2)
  48. base2m.Bevel = 0.075
  49. base2m.Scale = Vector3.new(1, 1, 1)
  50. base2:BreakJoints()
  51. local base2w = Instance.new("Weld", base2)
  52. base2w.Part0 = base2
  53. base2w.Part1 = base
  54. base2w.C0 = CFrame.new(-2.5, 0.005, 27) * CFrame.Angles(0, 0.75, 0)
  55. local base3 = Instance.new("Part", model)
  56. base3.formFactor = "Custom"
  57. base3.BrickColor = BrickColor.new(color)
  58. base3.Size = Vector3.new(25, 1, 50)
  59. base3.CFrame = CFrame.new(75, 1, 0)
  60. base3.CanCollide = true
  61. local base3m = Instance.new("BlockMesh", base3)
  62. base3m.Bevel = 0.075
  63. base3m.Scale = Vector3.new(1, 1, 1)
  64. base3:BreakJoints()
  65. local base3w = Instance.new("Weld", base3)
  66. base3w.Part0 = base3
  67. base3w.Part1 = base
  68. base3w.C0 = CFrame.new(2.5, 0.005, 27) * CFrame.Angles(0, -0.75, 0)
  69. local base4 = Instance.new("Part", model)
  70. base4.formFactor = "Custom"
  71. base4.BrickColor = BrickColor.new(color)
  72. base4.Size = Vector3.new(20, 3, 1)
  73. base4.CFrame = CFrame.new(75, 1, 0)
  74. base4.CanCollide = true
  75. local base4m = Instance.new("BlockMesh", base4)
  76. base4m.Bevel = 0.075
  77. base4m.Scale = Vector3.new(1, 1, 1)
  78. base4:BreakJoints()
  79. local base4w = Instance.new("Weld", base4)
  80. base4w.Part0 = base4
  81. base4w.Part1 = base
  82. base4w.C0 = CFrame.new(0, -1.5, 24.5) * CFrame.Angles(0, 0, 0)
  83. local base5 = Instance.new("Part", model)
  84. base5.formFactor = "Custom"
  85. base5.BrickColor = BrickColor.new("Bright blue")
  86. base5.Transparency = 0.5
  87. base5.Size = Vector3.new(20, 6, 1)
  88. base5.CFrame = CFrame.new(75, 1, 0)
  89. base5.CanCollide = true
  90. local base5m = Instance.new("BlockMesh", base5)
  91. base5m.Bevel = 0.075
  92. base5m.Scale = Vector3.new(0.9999, 1, 0.75)
  93. base5:BreakJoints()
  94. local base5w = Instance.new("Weld", base5)
  95. base5w.Part0 = base5
  96. base5w.Part1 = base
  97. base5w.C0 = CFrame.new(0, -4, 24.5) * CFrame.Angles(0, 0, 0)
  98. local base6 = Instance.new("Part", model)
  99. base6.formFactor = "Custom"
  100. base6.BrickColor = BrickColor.new(color)
  101. base6.Size = Vector3.new(20, 3, 1)
  102. base6.CFrame = CFrame.new(75, 1, 0)
  103. base6.CanCollide = true
  104. local base6m = Instance.new("BlockMesh", base6)
  105. base6m.Bevel = 0.075
  106. base6m.Scale = Vector3.new(1, 1, 1)
  107. base6:BreakJoints()
  108. local base6w = Instance.new("Weld", base6)
  109. base6w.Part0 = base6
  110. base6w.Part1 = base
  111. base6w.C0 = CFrame.new(0, -8, 24.5) * CFrame.Angles(0, 0, 0)
  112. local base7 = Instance.new("Part", model)
  113. base7.formFactor = "Custom"
  114. base7.BrickColor = BrickColor.new(color)
  115. base7.Size = Vector3.new(27.5, 3, 1)
  116. base7.CFrame = CFrame.new(75, 1, 0)
  117. base7.CanCollide = true
  118. local base7m = Instance.new("BlockMesh", base7)
  119. base7m.Bevel = 0.075
  120. base7m.Scale = Vector3.new(1, 1, 1)
  121. base7:BreakJoints()
  122. local base7w = Instance.new("Weld", base7)
  123. base7w.Part0 = base7
  124. base7w.Part1 = base
  125. base7w.C0 = CFrame.new(-38.25, -1.5, 9.5) * CFrame.Angles(0, -0.825, 0)
  126. local base8 = Instance.new("Part", model)
  127. base8.formFactor = "Custom"
  128. base8.Transparency = 0.5
  129. base8.BrickColor = BrickColor.new("Bright blue")
  130. base8.Size = Vector3.new(27.5, 6, 1)
  131. base8.CFrame = CFrame.new(75, 1, 0)
  132. base8.CanCollide = true
  133. local base8m = Instance.new("BlockMesh", base8)
  134. base8m.Bevel = 0.075
  135. base8m.Scale = Vector3.new(0.9999, 1, 0.75)
  136. base8:BreakJoints()
  137. local base8w = Instance.new("Weld", base8)
  138. base8w.Part0 = base8
  139. base8w.Part1 = base
  140. base8w.C0 = CFrame.new(-38.25, -4, 9.5) * CFrame.Angles(0, -0.825, 0)
  141. local base9 = Instance.new("Part", model)
  142. base9.formFactor = "Custom"
  143. base9.BrickColor = BrickColor.new(color)
  144. base9.Size = Vector3.new(27.5, 3, 1)
  145. base9.CFrame = CFrame.new(75, 1, 0)
  146. base9.CanCollide = true
  147. local base9m = Instance.new("BlockMesh", base9)
  148. base9m.Bevel = 0.075
  149. base9m.Scale = Vector3.new(1, 1, 1)
  150. base9:BreakJoints()
  151. local base9w = Instance.new("Weld", base9)
  152. base9w.Part0 = base9
  153. base9w.Part1 = base
  154. base9w.C0 = CFrame.new(-38.25, -8, 9.5) * CFrame.Angles(0, -0.825, 0)
  155. local base10 = Instance.new("Part", model)
  156. base10.formFactor = "Custom"
  157. base10.BrickColor = BrickColor.new(color)
  158. base10.Size = Vector3.new(27.5, 3, 1)
  159. base10.CFrame = CFrame.new(75, 1, 0)
  160. base10.CanCollide = true
  161. local base10m = Instance.new("BlockMesh", base10)
  162. base10m.Bevel = 0.075
  163. base10m.Scale = Vector3.new(1, 1, 1)
  164. base10:BreakJoints()
  165. local base10w = Instance.new("Weld", base10)
  166. base10w.Part0 = base10
  167. base10w.Part1 = base
  168. base10w.C0 = CFrame.new(38.25, -1.5, 9.5) * CFrame.Angles(0, 0.825, 0)
  169. local base11 = Instance.new("Part", model)
  170. base11.formFactor = "Custom"
  171. base11.Transparency = 0.5
  172. base11.BrickColor = BrickColor.new("Bright blue")
  173. base11.Size = Vector3.new(27.5, 6, 1)
  174. base11.CFrame = CFrame.new(75, 1, 0)
  175. base11.CanCollide = true
  176. local base11m = Instance.new("BlockMesh", base11)
  177. base11m.Bevel = 0.075
  178. base11m.Scale = Vector3.new(0.9999, 1, 0.75)
  179. base11:BreakJoints()
  180. local base11w = Instance.new("Weld", base11)
  181. base11w.Part0 = base11
  182. base11w.Part1 = base
  183. base11w.C0 = CFrame.new(38.25, -4, 9.5) * CFrame.Angles(0, 0.825, 0)
  184. local base12 = Instance.new("Part", model)
  185. base12.formFactor = "Custom"
  186. base12.BrickColor = BrickColor.new(color)
  187. base12.Size = Vector3.new(27.5, 3, 1)
  188. base12.CFrame = CFrame.new(75, 1, 0)
  189. base12.CanCollide = true
  190. local base12m = Instance.new("BlockMesh", base12)
  191. base12m.Bevel = 0.075
  192. base12m.Scale = Vector3.new(1, 1, 1)
  193. base12:BreakJoints()
  194. local base12w = Instance.new("Weld", base12)
  195. base12w.Part0 = base12
  196. base12w.Part1 = base
  197. base12w.C0 = CFrame.new(38.25, -8, 9.5) * CFrame.Angles(0, 0.825, 0)
  198. local base13 = Instance.new("Part", model)
  199. base13.formFactor = "Custom"
  200. base13.BrickColor = BrickColor.new(color)
  201. base13.Size = Vector3.new(25, 10, 1)
  202. base13.CFrame = CFrame.new(75, 1, 0)
  203. base13.CanCollide = true
  204. local base13m = Instance.new("BlockMesh", base13)
  205. base13m.Bevel = 0.075
  206. base13m.Scale = Vector3.new(1, 1, 1)
  207. base13:BreakJoints()
  208. local base13w = Instance.new("Weld", base13)
  209. base13w.Part0 = base13
  210. base13w.Part1 = base2
  211. base13w.C0 = CFrame.new(0, -4.5, 25) * CFrame.Angles(0, 0, 0)
  212. local base14 = Instance.new("Part", model)
  213. base14.formFactor = "Custom"
  214. base14.BrickColor = BrickColor.new(color)
  215. base14.Size = Vector3.new(25, 10, 1)
  216. base14.CFrame = CFrame.new(75, 1, 0)
  217. base14.CanCollide = true
  218. local base14m = Instance.new("BlockMesh", base14)
  219. base14m.Bevel = 0.075
  220. base14m.Scale = Vector3.new(1, 1, 1)
  221. base14:BreakJoints()
  222. local base14w = Instance.new("Weld", base14)
  223. base14w.Part0 = base14
  224. base14w.Part1 = base3
  225. base14w.C0 = CFrame.new(0, -4.5, 25) * CFrame.Angles(0, 0, 0)
  226. local base15 = Instance.new("Part", model)
  227. base15.formFactor = "Custom"
  228. base15.BrickColor = BrickColor.new(color)
  229. base15.Size = Vector3.new(25, 10, 1)
  230. base15.CFrame = CFrame.new(75, 1, 0)
  231. base15.CanCollide = true
  232. local base15m = Instance.new("BlockMesh", base15)
  233. base15m.Bevel = 0.075
  234. base15m.Scale = Vector3.new(1, 1, 1)
  235. base15:BreakJoints()
  236. local base15w = Instance.new("Weld", base15)
  237. base15w.Part0 = base15
  238. base15w.Part1 = base
  239. base15w.C0 = CFrame.new(0, -4.5, -25) * CFrame.Angles(0, 0, 0)
  240. local base16 = Instance.new("Part", model)
  241. base16.formFactor = "Custom"
  242. base16.BrickColor = BrickColor.new(color)
  243. base16.Size = Vector3.new(1, 10, 50)
  244. base16.CFrame = CFrame.new(75, 1, 0)
  245. base16.CanCollide = true
  246. local base16m = Instance.new("BlockMesh", base16)
  247. base16m.Bevel = 0.075
  248. base16m.Scale = Vector3.new(1, 1, 1)
  249. base16:BreakJoints()
  250. local base16w = Instance.new("Weld", base16)
  251. base16w.Part0 = base16
  252. base16w.Part1 = base2
  253. base16w.C0 = CFrame.new(-12.5, -4.5, 0) * CFrame.Angles(0, 0, 0)
  254. local base17 = Instance.new("Part", model)
  255. base17.formFactor = "Custom"
  256. base17.BrickColor = BrickColor.new(color)
  257. base17.Size = Vector3.new(1, 10, 50)
  258. base17.CFrame = CFrame.new(75, 1, 0)
  259. base17.CanCollide = true
  260. local base17m = Instance.new("BlockMesh", base17)
  261. base17m.Bevel = 0.075
  262. base17m.Scale = Vector3.new(1, 1, 1)
  263. base17:BreakJoints()
  264. local base17w = Instance.new("Weld", base17)
  265. base17w.Part0 = base17
  266. base17w.Part1 = base3
  267. base17w.C0 = CFrame.new(12.5, -4.5, 0) * CFrame.Angles(0, 0, 0)
  268. local base18 = Instance.new("Part", model)
  269. base18.formFactor = "Custom"
  270. base18.BrickColor = BrickColor.new(color)
  271. base18.Size = Vector3.new(15, 1, 25)
  272. base18.CFrame = CFrame.new(75, 1, 0)
  273. base18.CanCollide = true
  274. local base18m = Instance.new("BlockMesh", base18)
  275. base18m.Bevel = 0.075
  276. base18m.Scale = Vector3.new(1, 1, 1)
  277. base18:BreakJoints()
  278. local base18w = Instance.new("Weld", base18)
  279. base18w.Part0 = base18
  280. base18w.Part1 = base
  281. base18w.C0 = CFrame.new(7.5, 0.005, -27) * CFrame.Angles(0, -1, 0)
  282. local base19 = Instance.new("Part", model)
  283. base19.formFactor = "Custom"
  284. base19.BrickColor = BrickColor.new(color)
  285. base19.Size = Vector3.new(15, 1, 25)
  286. base19.CFrame = CFrame.new(75, 1, 0)
  287. base19.CanCollide = true
  288. local base19m = Instance.new("BlockMesh", base19)
  289. base19m.Bevel = 0.075
  290. base19m.Scale = Vector3.new(1, 1, 1)
  291. base19:BreakJoints()
  292. local base19w = Instance.new("Weld", base19)
  293. base19w.Part0 = base19
  294. base19w.Part1 = base
  295. base19w.C0 = CFrame.new(-7.5, 0.005, -27) * CFrame.Angles(0, 1, 0)
  296. local base20 = Instance.new("Part", model)
  297. base20.formFactor = "Custom"
  298. base20.BrickColor = BrickColor.new(color)
  299. base20.Size = Vector3.new(15, 1, 25)
  300. base20.CFrame = CFrame.new(75, 1, 0)
  301. base20.CanCollide = true
  302. local base20m = Instance.new("BlockMesh", base20)
  303. base20m.Bevel = 0.075
  304. base20m.Scale = Vector3.new(1, 1, 1)
  305. base20:BreakJoints()
  306. local base20w = Instance.new("Weld", base20)
  307. base20w.Part0 = base20
  308. base20w.Part1 = base19
  309. base20w.C0 = CFrame.new(5.05, 0.0025, -19.75) * CFrame.Angles(0, -0.5, 0)
  310. local base21 = Instance.new("Part", model)
  311. base21.formFactor = "Custom"
  312. base21.BrickColor = BrickColor.new(color)
  313. base21.Size = Vector3.new(15, 1, 25)
  314. base21.CFrame = CFrame.new(75, 1, 0)
  315. base21.CanCollide = true
  316. local base21m = Instance.new("BlockMesh", base21)
  317. base21m.Bevel = 0.075
  318. base21m.Scale = Vector3.new(1, 1, 1)
  319. base21:BreakJoints()
  320. local base21w = Instance.new("Weld", base21)
  321. base21w.Part0 = base21
  322. base21w.Part1 = base18
  323. base21w.C0 = CFrame.new(-5.05, 0.0025, -19.75) * CFrame.Angles(0, 0.5, 0)
  324. local base22 = Instance.new("Part", model)
  325. base22.formFactor = "Custom"
  326. base22.BrickColor = BrickColor.new(color)
  327. base22.Size = Vector3.new(15, 1, 65)
  328. base22.CFrame = CFrame.new(75, 1, 0)
  329. base22.CanCollide = true
  330. local base22m = Instance.new("BlockMesh", base22)
  331. base22m.Bevel = 0.075
  332. base22m.Scale = Vector3.new(1, 1, 1)
  333. base22:BreakJoints()
  334. local base22w = Instance.new("Weld", base22)
  335. base22w.Part0 = base22
  336. base22w.Part1 = base21
  337. base22w.C0 = CFrame.new(-5.05, -0.0025, -39.75) * CFrame.Angles(0, 0.5, 0)
  338. local base23 = Instance.new("Part", model)
  339. base23.formFactor = "Custom"
  340. base23.BrickColor = BrickColor.new(color)
  341. base23.Size = Vector3.new(15, 1, 65)
  342. base23.CFrame = CFrame.new(75, 1, 0)
  343. base23.CanCollide = true
  344. local base23m = Instance.new("BlockMesh", base23)
  345. base23m.Bevel = 0.075
  346. base23m.Scale = Vector3.new(1, 1, 1)
  347. base23:BreakJoints()
  348. local base23w = Instance.new("Weld", base23)
  349. base23w.Part0 = base23
  350. base23w.Part1 = base20
  351. base23w.C0 = CFrame.new(5.05, -0.0025, -39.75) * CFrame.Angles(0, -0.5, 0)
  352. local base24 = Instance.new("Part", model)
  353. base24.formFactor = "Custom"
  354. base24.BrickColor = BrickColor.new(color)
  355. base24.Size = Vector3.new(15, 1, 25)
  356. base24.CFrame = CFrame.new(75, 1, 0)
  357. base24.CanCollide = true
  358. local base24m = Instance.new("BlockMesh", base24)
  359. base24m.Bevel = 0.075
  360. base24m.Scale = Vector3.new(1, 1, 1)
  361. base24:BreakJoints()
  362. local base24w = Instance.new("Weld", base24)
  363. base24w.Part0 = base24
  364. base24w.Part1 = base23
  365. base24w.C0 = CFrame.new(14.6, 0.0025, -37.25) * CFrame.Angles(0, -0.5, 0)
  366. local base25 = Instance.new("Part", model)
  367. base25.formFactor = "Custom"
  368. base25.BrickColor = BrickColor.new(color)
  369. base25.Size = Vector3.new(15, 1, 25)
  370. base25.CFrame = CFrame.new(75, 1, 0)
  371. base25.CanCollide = true
  372. local base25m = Instance.new("BlockMesh", base25)
  373. base25m.Bevel = 0.075
  374. base25m.Scale = Vector3.new(1, 1, 1)
  375. base25:BreakJoints()
  376. local base25w = Instance.new("Weld", base25)
  377. base25w.Part0 = base25
  378. base25w.Part1 = base22
  379. base25w.C0 = CFrame.new(-14.6, 0.0025, -37.25) * CFrame.Angles(0, 0.5, 0)
  380. local base26 = Instance.new("Part", model)
  381. base26.formFactor = "Custom"
  382. base26.BrickColor = BrickColor.new(color)
  383. base26.Size = Vector3.new(15, 1, 25)
  384. base26.CFrame = CFrame.new(75, 1, 0)
  385. base26.CanCollide = true
  386. local base26m = Instance.new("BlockMesh", base26)
  387. base26m.Bevel = 0.075
  388. base26m.Scale = Vector3.new(1, 1, 1)
  389. base26:BreakJoints()
  390. local base26w = Instance.new("Weld", base26)
  391. base26w.Part0 = base26
  392. base26w.Part1 = base25
  393. base26w.C0 = CFrame.new(-5.05, -0.005, -19.75) * CFrame.Angles(0, 0.5, 0)
  394. local base27 = Instance.new("Part", model)
  395. base27.formFactor = "Custom"
  396. base27.BrickColor = BrickColor.new(color)
  397. base27.Size = Vector3.new(15, 1, 25)
  398. base27.CFrame = CFrame.new(75, 1, 0)
  399. base27.CanCollide = true
  400. local base27m = Instance.new("BlockMesh", base27)
  401. base27m.Bevel = 0.075
  402. base27m.Scale = Vector3.new(1, 1, 1)
  403. base27:BreakJoints()
  404. local base27w = Instance.new("Weld", base27)
  405. base27w.Part0 = base27
  406. base27w.Part1 = base24
  407. base27w.C0 = CFrame.new(5.05, -0.005, -19.75) * CFrame.Angles(0, -0.5, 0)
  408. local base28 = Instance.new("Part", model)
  409. base28.formFactor = "Custom"
  410. base28.BrickColor = BrickColor.new(color)
  411. base28.Size = Vector3.new(15, 1, 25)
  412. base28.CFrame = CFrame.new(75, 1, 0)
  413. base28.CanCollide = true
  414. local base28m = Instance.new("BlockMesh", base28)
  415. base28m.Bevel = 0.075
  416. base28m.Scale = Vector3.new(1, 1, 1)
  417. base28:BreakJoints()
  418. local base28w = Instance.new("Weld", base28)
  419. base28w.Part0 = base28
  420. base28w.Part1 = base27
  421. base28w.C0 = CFrame.new(5.55, -0.005, -18.75) * CFrame.Angles(0, -0.575, 0)
  422. local base29 = Instance.new("Part", model)
  423. base29.formFactor = "Custom"
  424. base29.BrickColor = BrickColor.new(color)
  425. base29.Size = Vector3.new(65, 1, 108)
  426. base29.CFrame = CFrame.new(75, 1, 0)
  427. base29.CanCollide = true
  428. local base29m = Instance.new("BlockMesh", base29)
  429. base29m.Bevel = 0.075
  430. base29m.Scale = Vector3.new(1, 1, 1)
  431. base29:BreakJoints()
  432. local base29w = Instance.new("Weld", base29)
  433. base29w.Part0 = base29
  434. base29w.Part1 = base
  435. base29w.C0 = CFrame.new(0, 0.025, -75) * CFrame.Angles(0, 0, 0)
  436. --most of walls
  437. local times = 0
  438. for i = 1, 9 do
  439. times = times + 1
  440. local wall1 = Instance.new("Part", model)
  441. wall1.formFactor = "Custom"
  442. wall1.BrickColor = BrickColor.new(color)
  443. wall1.Size = Vector3.new(1, 10, 25)
  444. wall1.CFrame = CFrame.new(75, 1, 0)
  445. wall1.CanCollide = true
  446. local wall1m = Instance.new("BlockMesh", wall1)
  447. wall1m.Bevel = 0.075
  448. wall1m.Scale = Vector3.new(1, 1, 1)
  449. wall1:BreakJoints()
  450. local wall1w = Instance.new("Weld", wall1)
  451. wall1w.Part0 = wall1
  452. if times == 1 then
  453. wall1w.Part1 = base28
  454. wall1w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  455. end
  456. if times == 2 then
  457. wall1w.Part1 = base27
  458. wall1w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  459. end
  460. if times == 3 then
  461. wall1w.Part1 = base26
  462. wall1w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  463. end
  464. if times == 4 then
  465. wall1w.Part1 = base25
  466. wall1w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  467. end
  468. if times == 5 then
  469. wall1w.Part1 = base24
  470. wall1w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  471. end
  472. if times == 6 then
  473. wall1w.Part1 = base21
  474. wall1w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  475. end
  476. if times == 7 then
  477. wall1w.Part1 = base20
  478. wall1w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  479. end
  480. if times == 8 then
  481. wall1w.Part1 = base19
  482. wall1w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  483. end
  484. if times == 9 then
  485. wall1w.Part1 = base18
  486. wall1w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  487. end
  488. wait()
  489. end
  490. local wall2 = Instance.new("Part", model)
  491. wall2.formFactor = "Custom"
  492. wall2.BrickColor = BrickColor.new(color)
  493. wall2.Size = Vector3.new(1, 10, 16.5)
  494. wall2.CFrame = CFrame.new(75, 1, 0)
  495. wall2.CanCollide = true
  496. local wall2m = Instance.new("BlockMesh", wall2)
  497. wall2m.Bevel = 0.075
  498. wall2m.Scale = Vector3.new(1, 1, 1)
  499. wall2:BreakJoints()
  500. local wall2w = Instance.new("Weld", wall2)
  501. wall2w.Part0 = wall2
  502. wall2w.Part1 = base28
  503. wall2w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  504. local wall3 = Instance.new("Part", model)
  505. wall3.formFactor = "Custom"
  506. wall3.BrickColor = BrickColor.new(color)
  507. wall3.Size = Vector3.new(1, 10, 17)
  508. wall3.CFrame = CFrame.new(75, 1, 0)
  509. wall3.CanCollide = true
  510. local wall3m = Instance.new("BlockMesh", wall3)
  511. wall3m.Bevel = 0.075
  512. wall3m.Scale = Vector3.new(1, 1, 1)
  513. wall3:BreakJoints()
  514. local wall3w = Instance.new("Weld", wall3)
  515. wall3w.Part0 = wall3
  516. wall3w.Part1 = base27
  517. wall3w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  518. local wall4 = Instance.new("Part", model)
  519. wall4.formFactor = "Custom"
  520. wall4.BrickColor = BrickColor.new(color)
  521. wall4.Size = Vector3.new(1, 10, 17)
  522. wall4.CFrame = CFrame.new(75, 1, 0)
  523. wall4.CanCollide = true
  524. local wall4m = Instance.new("BlockMesh", wall4)
  525. wall4m.Bevel = 0.075
  526. wall4m.Scale = Vector3.new(1, 1, 1)
  527. wall4:BreakJoints()
  528. local wall4w = Instance.new("Weld", wall4)
  529. wall4w.Part0 = wall4
  530. wall4w.Part1 = base26
  531. wall4w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  532. local wall5 = Instance.new("Part", model)
  533. wall5.formFactor = "Custom"
  534. wall5.BrickColor = BrickColor.new(color)
  535. wall5.Size = Vector3.new(1, 10, 18.5)
  536. wall5.CFrame = CFrame.new(75, 1, 0)
  537. wall5.CanCollide = true
  538. local wall5m = Instance.new("BlockMesh", wall5)
  539. wall5m.Bevel = 0.075
  540. wall5m.Scale = Vector3.new(1, 1, 1)
  541. wall5:BreakJoints()
  542. local wall5w = Instance.new("Weld", wall5)
  543. wall5w.Part0 = wall5
  544. wall5w.Part1 = base25
  545. wall5w.C0 = CFrame.new(7.25, -5, 0) * CFrame.Angles(0, 0, 0)
  546. local wall6 = Instance.new("Part", model)
  547. wall6.formFactor = "Custom"
  548. wall6.BrickColor = BrickColor.new(color)
  549. wall6.Size = Vector3.new(1, 10, 18.5)
  550. wall6.CFrame = CFrame.new(75, 1, 0)
  551. wall6.CanCollide = true
  552. local wall6m = Instance.new("BlockMesh", wall6)
  553. wall6m.Bevel = 0.075
  554. wall6m.Scale = Vector3.new(1, 1, 1)
  555. wall6:BreakJoints()
  556. local wall6w = Instance.new("Weld", wall6)
  557. wall6w.Part0 = wall6
  558. wall6w.Part1 = base24
  559. wall6w.C0 = CFrame.new(-7.25, -5, 0) * CFrame.Angles(0, 0, 0)
  560. local wall7 = Instance.new("Part", model)
  561. wall7.formFactor = "Custom"
  562. wall7.BrickColor = BrickColor.new(color)
  563. wall7.Size = Vector3.new(1, 10, 12)
  564. wall7.CFrame = CFrame.new(75, 1, 0)
  565. wall7.CanCollide = true
  566. local wall7m = Instance.new("BlockMesh", wall7)
  567. wall7m.Bevel = 0.075
  568. wall7m.Scale = Vector3.new(1, 1, 1)
  569. wall7:BreakJoints()
  570. local wall7w = Instance.new("Weld", wall7)
  571. wall7w.Part0 = wall7
  572. wall7w.Part1 = base19
  573. wall7w.C0 = CFrame.new(-6.95, -5, -2.85) * CFrame.Angles(0, 0, 0)
  574. local wall8 = Instance.new("Part", model)
  575. wall8.formFactor = "Custom"
  576. wall8.BrickColor = BrickColor.new(color)
  577. wall8.Size = Vector3.new(1, 10, 12)
  578. wall8.CFrame = CFrame.new(75, 1, 0)
  579. wall8.CanCollide = true
  580. local wall8m = Instance.new("BlockMesh", wall8)
  581. wall8m.Bevel = 0.075
  582. wall8m.Scale = Vector3.new(1, 1, 1)
  583. wall8:BreakJoints()
  584. local wall8w = Instance.new("Weld", wall8)
  585. wall8w.Part0 = wall8
  586. wall8w.Part1 = base18
  587. wall8w.C0 = CFrame.new(6.95, -5, -2.85) * CFrame.Angles(0, 0, 0)
  588. local wall9 = Instance.new("Part", model)
  589. wall9.formFactor = "Custom"
  590. wall9.BrickColor = BrickColor.new(color)
  591. wall9.Size = Vector3.new(1, 10, 18)
  592. wall9.CFrame = CFrame.new(75, 1, 0)
  593. wall9.CanCollide = true
  594. local wall9m = Instance.new("BlockMesh", wall9)
  595. wall9m.Bevel = 0.075
  596. wall9m.Scale = Vector3.new(1, 1, 1)
  597. wall9:BreakJoints()
  598. local wall9w = Instance.new("Weld", wall9)
  599. wall9w.Part0 = wall9
  600. wall9w.Part1 = base20
  601. wall9w.C0 = CFrame.new(-6.95, -5, 0) * CFrame.Angles(0, 0, 0)
  602. local wall10 = Instance.new("Part", model)
  603. wall10.formFactor = "Custom"
  604. wall10.BrickColor = BrickColor.new(color)
  605. wall10.Size = Vector3.new(1, 10, 18)
  606. wall10.CFrame = CFrame.new(75, 1, 0)
  607. wall10.CanCollide = true
  608. local wall10m = Instance.new("BlockMesh", wall10)
  609. wall10m.Bevel = 0.075
  610. wall10m.Scale = Vector3.new(1, 1, 1)
  611. wall10:BreakJoints()
  612. local wall10w = Instance.new("Weld", wall10)
  613. wall10w.Part0 = wall10
  614. wall10w.Part1 = base21
  615. wall10w.C0 = CFrame.new(6.95, -5, 0) * CFrame.Angles(0, 0, 0)
  616. local wall11 = Instance.new("Part", model)
  617. wall11.formFactor = "Custom"
  618. wall11.BrickColor = BrickColor.new(color)
  619. wall11.Size = Vector3.new(1, 10, 57)
  620. wall11.CFrame = CFrame.new(75, 1, 0)
  621. wall11.CanCollide = true
  622. local wall11m = Instance.new("BlockMesh", wall11)
  623. wall11m.Bevel = 0.075
  624. wall11m.Scale = Vector3.new(1, 1, 1)
  625. wall11:BreakJoints()
  626. local wall11w = Instance.new("Weld", wall11)
  627. wall11w.Part0 = wall11
  628. wall11w.Part1 = base22
  629. wall11w.C0 = CFrame.new(7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  630. local wall12 = Instance.new("Part", model)
  631. wall12.formFactor = "Custom"
  632. wall12.BrickColor = BrickColor.new(color)
  633. wall12.Size = Vector3.new(1, 10, 65)
  634. wall12.CFrame = CFrame.new(75, 1, 0)
  635. wall12.CanCollide = true
  636. local wall12m = Instance.new("BlockMesh", wall12)
  637. wall12m.Bevel = 0.075
  638. wall12m.Scale = Vector3.new(1, 1, 1)
  639. wall12:BreakJoints()
  640. local wall12w = Instance.new("Weld", wall12)
  641. wall12w.Part0 = wall12
  642. wall12w.Part1 = base22
  643. wall12w.C0 = CFrame.new(-7.05, -5, 0) * CFrame.Angles(0, 0, 0)
  644. local wall13 = Instance.new("Part", model)
  645. wall13.formFactor = "Custom"
  646. wall13.BrickColor = BrickColor.new(color)
  647. wall13.Size = Vector3.new(1, 10, 15.5)
  648. wall13.CFrame = CFrame.new(75, 1, 0)
  649. wall13.CanCollide = true
  650. local wall13m = Instance.new("BlockMesh", wall13)
  651. wall13m.Bevel = 0.075
  652. wall13m.Scale = Vector3.new(1, 1, 1)
  653. wall13:BreakJoints()
  654. local wall13w = Instance.new("Weld", wall13)
  655. wall13w.Part0 = wall13
  656. wall13w.Part1 = base23
  657. wall13w.C0 = CFrame.new(-6.95, -5, 21.25) * CFrame.Angles(0, 0, 0)
  658. local wall14 = Instance.new("Part", model)
  659. wall14.formFactor = "Custom"
  660. wall14.BrickColor = BrickColor.new(color)
  661. wall14.Size = Vector3.new(1, 10, 15.5)
  662. wall14.CFrame = CFrame.new(75, 1, 0)
  663. wall14.CanCollide = true
  664. local wall14m = Instance.new("BlockMesh", wall14)
  665. wall14m.Bevel = 0.075
  666. wall14m.Scale = Vector3.new(1, 1, 1)
  667. wall14:BreakJoints()
  668. local wall14w = Instance.new("Weld", wall14)
  669. wall14w.Part0 = wall14
  670. wall14w.Part1 = base23
  671. wall14w.C0 = CFrame.new(-6.95, -5, -21.25) * CFrame.Angles(0, 0, 0)
  672. --cannon
  673. if cannon == true then
  674. local gun1 = Instance.new("Part", model)
  675. gun1.formFactor = "Custom"
  676. gun1.Name = "gun1s"
  677. gun1.BrickColor = BrickColor.new(color)
  678. gun1.Size = Vector3.new(4, 25, 4)
  679. gun1.CFrame = CFrame.new(75, 1, 0)
  680. gun1.CanCollide = false
  681. local gun1m = Instance.new("CylinderMesh", gun1)
  682. gun1m.Bevel = 0.075
  683. gun1m.Scale = Vector3.new(1, 1, 1)
  684. gun1:BreakJoints()
  685. local gun1w = Instance.new("Weld", gun1)
  686. gun1w.Part0 = gun1
  687. gun1w.Part1 = base
  688. gun1w.C0 = CFrame.new(8, -15, 1.75) * CFrame.Angles(1.6, 0, 0)
  689. local gun2 = Instance.new("Part", model)
  690. gun2.formFactor = "Custom"
  691. gun2.BrickColor = BrickColor.new(color)
  692. gun2.Size = Vector3.new(4, 25, 4)
  693. gun2.Name = "gun2s"
  694. gun2.CFrame = CFrame.new(75, 1, 0)
  695. gun2.CanCollide = false
  696. local gun2m = Instance.new("CylinderMesh", gun2)
  697. gun2m.Bevel = 0.075
  698. gun2m.Scale = Vector3.new(1, 1, 1)
  699. gun2:BreakJoints()
  700. local gun2w = Instance.new("Weld", gun2)
  701. gun2w.Part0 = gun2
  702. gun2w.Part1 = base
  703. gun2w.C0 = CFrame.new(-8, -15, 1.75) * CFrame.Angles(1.6, 0, 0)
  704. end
  705. --
  706. while wait() do
  707. local choice = math.random(1, 6)
  708. if choice == 1 and forward == false then
  709. forward = true
  710. for i = 0, 1, 0.1 do
  711. basep.position = basep.position + Vector3.new(0, 0, math.random(1, 2))
  712. wait(0.15)
  713. end
  714. forward = false
  715. end
  716. if choice == 2 and back == false then
  717. back = true
  718. for i = 0, 1, 0.1 do
  719. basep.position = basep.position - Vector3.new(0, 0, math.random(1, 2))
  720. wait(0.15)
  721. end
  722. back = false
  723. end
  724. if choice == 3 then
  725.  
  726. end
  727. if choice == 4 then
  728. mis1 = gun1:clone()
  729. mis2 = gun2:clone()
  730. mis1:BreakJoints()
  731. mis2:BreakJoints()
  732. mis1.CFrame = gun1.CFrame
  733. mis2.CFrame = gun2.CFrame
  734. mis1.Velocity = gun1.CFrame.lookVector * 250
  735. mis2.Velocity = gun2.CFrame.lookVector * 250
  736. end
  737. if choice == 5 then
  738. end
  739. if choice == 6 then
  740.  
  741. end
  742. end
Add Comment
Please, Sign In to add comment