Advertisement
lafur

Untitled

Oct 21st, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.92 KB | None | 0 0
  1. --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
  2. --What's Added To M2S with Dittoide's Edit?
  3. --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
  4. --/ Removed Gui In Bottom-Left for when you are making guis.
  5. --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
  6. --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
  7. --Errors: Camera,Terrain
  8. local runDummyScript = function(f,scri)
  9. if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
  10. local Dummy_CoRoutine = coroutine.create(function()
  11. getfenv().script = scri
  12. ypcall(function() f() end)
  13. end)
  14. table.insert(cors,Dummy_CoRoutine);
  15. coroutine.resume(Dummy_CoRoutine);
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. mas.Name = "M2S_Model"
  20. o3 = Instance.new("Model")
  21. o4 = Instance.new("Part")
  22. o5 = Instance.new("Script")
  23. o6 = Instance.new("ManualWeld")
  24. o7 = Instance.new("Model")
  25. o8 = Instance.new("Model")
  26. o9 = Instance.new("Model")
  27. o10 = Instance.new("Part")
  28. o11 = Instance.new("Script")
  29. o12 = Instance.new("ClickDetector")
  30. o13 = Instance.new("Script")
  31. o14 = Instance.new("Sound")
  32. o15 = Instance.new("Model")
  33. o16 = Instance.new("Part")
  34. o17 = Instance.new("Model")
  35. o18 = Instance.new("Part")
  36. o19 = Instance.new("Part")
  37. o20 = Instance.new("Part")
  38. o21 = Instance.new("Part")
  39. o22 = Instance.new("Part")
  40. o23 = Instance.new("Part")
  41. o24 = Instance.new("Model")
  42. o25 = Instance.new("Part")
  43. o26 = Instance.new("Part")
  44. o27 = Instance.new("Model")
  45. o28 = Instance.new("Part")
  46. o29 = Instance.new("Part")
  47. o30 = Instance.new("Part")
  48. o31 = Instance.new("Part")
  49. o32 = Instance.new("Model")
  50. o33 = Instance.new("Part")
  51. o34 = Instance.new("ClickDetector")
  52. o35 = Instance.new("Sound")
  53. o36 = Instance.new("Script")
  54. o37 = Instance.new("Script")
  55. o38 = Instance.new("Humanoid")
  56. o39 = Instance.new("Model")
  57. o40 = Instance.new("Part")
  58. o41 = Instance.new("Part")
  59. o42 = Instance.new("Model")
  60. o43 = Instance.new("Part")
  61. o44 = Instance.new("Part")
  62. o45 = Instance.new("Part")
  63. o46 = Instance.new("Part")
  64. o47 = Instance.new("Model")
  65. o48 = Instance.new("Part")
  66. o49 = Instance.new("ClickDetector")
  67. o50 = Instance.new("Sound")
  68. o51 = Instance.new("Script")
  69. o52 = Instance.new("Script")
  70. o53 = Instance.new("Humanoid")
  71. o54 = Instance.new("Model")
  72. o55 = Instance.new("Model")
  73. o56 = Instance.new("Part")
  74. o57 = Instance.new("Script")
  75. o58 = Instance.new("ClickDetector")
  76. o59 = Instance.new("Script")
  77. o60 = Instance.new("Sound")
  78. o61 = Instance.new("Model")
  79. o62 = Instance.new("Part")
  80. o63 = Instance.new("Model")
  81. o64 = Instance.new("Part")
  82. o65 = Instance.new("Part")
  83. o66 = Instance.new("Part")
  84. o67 = Instance.new("Part")
  85. o68 = Instance.new("Part")
  86. o69 = Instance.new("Part")
  87. o70 = Instance.new("Part")
  88. o71 = Instance.new("Part")
  89. o72 = Instance.new("Part")
  90. o73 = Instance.new("Part")
  91. o74 = Instance.new("Part")
  92. o75 = Instance.new("ManualWeld")
  93. o76 = Instance.new("Part")
  94. o77 = Instance.new("Part")
  95. o78 = Instance.new("Part")
  96. o79 = Instance.new("ManualWeld")
  97. o80 = Instance.new("Part")
  98. o81 = Instance.new("ManualWeld")
  99. o82 = Instance.new("Part")
  100. o83 = Instance.new("ManualWeld")
  101. o84 = Instance.new("Part")
  102. o85 = Instance.new("ClickDetector")
  103. o86 = Instance.new("Script")
  104. o87 = Instance.new("ManualWeld")
  105. o88 = Instance.new("ManualWeld")
  106. o89 = Instance.new("Part")
  107. o90 = Instance.new("Part")
  108. o91 = Instance.new("ManualWeld")
  109. o92 = Instance.new("Part")
  110. o93 = Instance.new("Part")
  111. o94 = Instance.new("Part")
  112. o95 = Instance.new("ManualWeld")
  113. o96 = Instance.new("ManualWeld")
  114. o97 = Instance.new("ManualWeld")
  115. o98 = Instance.new("Part")
  116. o99 = Instance.new("VehicleSeat")
  117. o100 = Instance.new("Script")
  118. o101 = Instance.new("BodyAngularVelocity")
  119. o102 = Instance.new("Script")
  120. o103 = Instance.new("StringValue")
  121. o104 = Instance.new("BodyVelocity")
  122. o105 = Instance.new("Script")
  123. o106 = Instance.new("HopperBin")
  124. o107 = Instance.new("Script")
  125. o108 = Instance.new("Script")
  126. o109 = Instance.new("ObjectValue")
  127. o110 = Instance.new("Script")
  128. o111 = Instance.new("Script")
  129. o112 = Instance.new("Sound")
  130. o113 = Instance.new("Sound")
  131. o114 = Instance.new("WedgePart")
  132. o115 = Instance.new("ManualWeld")
  133. o116 = Instance.new("WedgePart")
  134. o117 = Instance.new("WedgePart")
  135. o118 = Instance.new("ManualWeld")
  136. o119 = Instance.new("WedgePart")
  137. o3.Name = "mech "
  138. o3.Parent = mas
  139. o4.Name = "Regen Button"
  140. o4.Parent = o3
  141. o4.BrickColor = BrickColor.new("Really red")
  142. o4.Position = Vector3.new(-24.9000015, 0.600033998, -96.3000793)
  143. o4.Anchored = true
  144. o4.Size = Vector3.new(3, 1.20000005, 3)
  145. o4.CFrame = CFrame.new(-24.9000015, 0.600033998, -96.3000793, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  146. o4.BottomSurface = Enum.SurfaceType.Smooth
  147. o4.TopSurface = Enum.SurfaceType.Smooth
  148. o4.Color = Color3.new(1, 0, 0)
  149. o4.Position = Vector3.new(-24.9000015, 0.600033998, -96.3000793)
  150. o5.Name = "Regen"
  151. o5.Parent = o4
  152.  
  153. runDummyScript(function()
  154. --Made by JR9989
  155. --Do not change anything besides the lines mentioned below.
  156.  
  157. model = script.Parent.Parent--Indicates that the script interacts with the model the button is grouped with.
  158. messageText = "Regenerating"--If you want a message to appear upon pressing, type it here.
  159.  
  160. message = Instance.new("Message")
  161. message.Text = messageText
  162. backup = model:clone()
  163. enabled = true
  164.  
  165. function regenerate()
  166. message.Parent = game.Workspace
  167.  
  168.  
  169. wait(2)
  170.  
  171. model = backup:clone()
  172. model.Parent = game.Workspace
  173. model:makeJoints()
  174. message.Parent = nil
  175.  
  176. script.Disabled = true
  177. script.Parent.BrickColor = BrickColor.new(26)--Black
  178. wait(10)--
  179. script.Parent.BrickColor = BrickColor.new(104)--Purple
  180. script.Disabled = false
  181. end
  182.  
  183. function onHit(hit)
  184. if (hit.Parent:FindFirstChild("Humanoid") ~= nil) and enabled then
  185. regenerate()
  186. end
  187. end
  188.  
  189. script.Parent.Touched:connect(onHit)
  190.  
  191.  
  192. end,o5)
  193.  
  194. o6.Name = "Regen Button Terrain Joint"
  195. o6.Parent = o4
  196. o6.Part1 = o4
  197. o7.Parent = o3
  198. o8.Name = "Gun"
  199. o8.Parent = o7
  200. o9.Name = "Cannon"
  201. o9.Parent = o8
  202. o10.Name = "Switch"
  203. o10.Parent = o9
  204. o10.Position = Vector3.new(-26.4405251, 8.91952324, -80.7238922)
  205. o10.Rotation = Vector3.new(0, 0.00999999978, 0.00999999978)
  206. o10.FormFactor = Enum.FormFactor.Plate
  207. o10.Size = Vector3.new(1, 1.20000005, 3)
  208. o10.CFrame = CFrame.new(-26.4405251, 8.91952324, -80.7238922, 1.00000644, -0.000106459978, 0.000145881058, 0.00010646951, 1, -6.9869915e-05, -0.000145873259, 6.98858785e-05, 1.00000644)
  209. o10.BackSurface = Enum.SurfaceType.Weld
  210. o10.BottomSurface = Enum.SurfaceType.Weld
  211. o10.LeftSurface = Enum.SurfaceType.Weld
  212. o10.RightSurface = Enum.SurfaceType.Weld
  213. o10.TopSurface = Enum.SurfaceType.Smooth
  214. o10.Position = Vector3.new(-26.4405251, 8.91952324, -80.7238922)
  215. o11.Name = "CannonBall"
  216. o11.Parent = o10
  217. o11.Disabled = true
  218.  
  219. runDummyScript(function()
  220. ball = script.Parent
  221. damage = 100
  222.  
  223. function onTouched(hit)
  224.  
  225.  
  226. local humanoid = hit.Parent:findFirstChild("Humanoid")
  227. if humanoid~=nil then
  228. tagHumanoid(humanoid)
  229. humanoid.Health = humanoid.Health - damage
  230. wait(0.00000001)
  231. untagHumanoid(humanoid)
  232. connection:disconnect()
  233. else
  234. damage = damage / 2
  235. if damage < 2 then
  236. connection:disconnect()
  237. ball.Parent = nil
  238. end
  239. end
  240.  
  241. if math.random(1,1) == 1 then
  242. explosion = Instance.new("Explosion")
  243. explosion.BlastRadius = 15
  244. explosion.BlastPressure = 600000 -- these are really wussy units
  245. explosion.Position = script.Parent.Position
  246. explosion.Parent = game.Workspace
  247. connection:disconnect()
  248. ball.Parent = nil
  249. cancollide = true
  250. end
  251.  
  252. end
  253.  
  254. function tagHumanoid(humanoid)
  255. -- todo: make tag expire
  256. local tag = ball:findFirstChild("creator")
  257. if tag ~= nil then
  258. local new_tag = tag:clone()
  259. new_tag.Parent = humanoid
  260. end
  261. end
  262.  
  263.  
  264. function untagHumanoid(humanoid)
  265. if humanoid ~= nil then
  266. local tag = humanoid:findFirstChild("creator")
  267. if tag ~= nil then
  268. tag.Parent = nil
  269. end
  270. end
  271. end
  272.  
  273. connection = ball.Touched:connect(onTouched)
  274.  
  275. r = game:service("RunService")
  276. t, s = r.Stepped:wait()
  277. d = t + 5.0 - s
  278. while t < d do
  279. t = r.Stepped:wait()
  280. end
  281.  
  282. ball.Parent = nil
  283. end,o11)
  284.  
  285. o12.Parent = o10
  286. o12.MaxActivationDistance = 10
  287. o13.Name = "FireGun"
  288. o13.Parent = o10
  289.  
  290. runDummyScript(function()
  291. local switch = script.Parent
  292. local gunBarrelOne = script.Parent.Parent.GunBarrel.One
  293.  
  294. local debounce = false
  295. local gunOne = true
  296.  
  297. local cannonBall = Instance.new("Part")
  298. cannonBall.Size = Vector3.new(1,1,1)
  299. cannonBall.BrickColor = BrickColor.new(1) -- medium blue
  300. cannonBall.Shape = 0
  301. cannonBall.BottomSurface = 0
  302. cannonBall.TopSurface = 0
  303. cannonBall.Name = "Cannon Shot"
  304. cannonBall.Elasticity = .1
  305. cannonBall.Reflectance = 0
  306. cannonBall.Friction = 0
  307.  
  308. function fire(player)
  309.  
  310. local sound = script.Parent:findFirstChild("GunSound")
  311. if sound == nil then
  312. sound = Instance.new("Sound")
  313. sound.Name = "GunSound"
  314. sound.SoundId = "http://www.roblox.com/asset?id=2101148"
  315. sound.Volume = 1
  316. sound.Parent = script.Parent
  317. end
  318. sound:play()
  319.  
  320.  
  321.  
  322.  
  323. local missile = Instance.new("Part")
  324.  
  325.  
  326. local barrel
  327.  
  328. if gunOne == true then
  329. barrel = gunBarrelOne
  330. gunOne = true
  331.  
  332. end
  333.  
  334. local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
  335.  
  336. local dx = math.random(50,50)
  337. local dy = math.random(0,0)
  338. local dz = math.random(0,0)
  339. local mag = math.random(750,750)
  340.  
  341. local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
  342.  
  343. local missile = cannonBall:clone()
  344.  
  345. missile.Position = spawnPos
  346. missile.Velocity = v
  347.  
  348.  
  349.  
  350. local new_script = script.Parent.CannonBall:clone()
  351. new_script.Disabled = false
  352. new_script.Parent = missile
  353.  
  354. local creator_tag = Instance.new("ObjectValue")
  355. creator_tag.Value = player
  356. creator_tag.Name = "creator"
  357. creator_tag.Parent = missile
  358.  
  359.  
  360.  
  361. missile.Parent = game.Workspace
  362.  
  363. end
  364.  
  365. function onClicked()
  366. if debounce == false then
  367. debounce = true
  368. switch.BrickColor = BrickColor.new(21)
  369. -- let slip the dogs of war
  370. fire(player)
  371. wait(.5)
  372.  
  373. wait(1)
  374. debounce = false
  375. switch.BrickColor = BrickColor.new(37)
  376. end
  377. end
  378.  
  379.  
  380. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  381.  
  382.  
  383.  
  384. end,o13)
  385.  
  386. o14.Name = "GunSound"
  387. o14.Parent = o10
  388. o14.SoundId = "http://www.roblox.com/asset/?id=12222084"
  389. o14.Volume = 1
  390. o15.Name = "GunBarrel"
  391. o15.Parent = o9
  392. o16.Name = "One"
  393. o16.Parent = o15
  394. o16.Position = Vector3.new(-28.4090462, 10.049696, -72.7842255)
  395. o16.Rotation = Vector3.new(0, -90, 0)
  396. o16.FormFactor = Enum.FormFactor.Symmetric
  397. o16.Shape = Enum.PartType.Cylinder
  398. o16.Size = Vector3.new(1, 1, 1)
  399. o16.CFrame = CFrame.new(-28.4090462, 10.049696, -72.7842255, -2.39949003e-08, -0.000106289917, -1.00000656, -9.75861781e-07, 1, -0.000106289277, 1.00000656, 9.75834837e-07, -2.44570657e-08)
  400. o16.BottomSurface = Enum.SurfaceType.Smooth
  401. o16.LeftSurface = Enum.SurfaceType.Weld
  402. o16.RightSurface = Enum.SurfaceType.Weld
  403. o16.TopSurface = Enum.SurfaceType.Smooth
  404. o16.Position = Vector3.new(-28.4090462, 10.049696, -72.7842255)
  405. o17.Parent = o8
  406. o18.Parent = o17
  407. o18.Position = Vector3.new(-28.4488297, 9.52983761, -79.7854385)
  408. o18.Rotation = Vector3.new(-180, 0.0899999961, 179.98999)
  409. o18.Size = Vector3.new(3, 2.4000001, 3)
  410. o18.CFrame = CFrame.new(-28.4488297, 9.52983761, -79.7854385, -1.00000525, -0.000106320556, 0.00156845222, -0.000106318221, 1, 1.15487637e-06, -0.00156845269, 9.88096872e-07, -1.00000525)
  411. o18.BackSurface = Enum.SurfaceType.Weld
  412. o18.BottomSurface = Enum.SurfaceType.Weld
  413. o18.TopSurface = Enum.SurfaceType.Weld
  414. o18.Position = Vector3.new(-28.4488297, 9.52983761, -79.7854385)
  415. o19.Parent = o17
  416. o19.Position = Vector3.new(-28.4507103, 10.0297909, -74.7849731)
  417. o19.Rotation = Vector3.new(0, -90, 0)
  418. o19.FormFactor = Enum.FormFactor.Symmetric
  419. o19.Shape = Enum.PartType.Cylinder
  420. o19.Size = Vector3.new(1, 1, 1)
  421. o19.CFrame = CFrame.new(-28.4507103, 10.0297909, -74.7849731, -1.94396989e-07, -0.000106287502, -1.00000656, -9.756493e-07, 1, -0.000106286861, 1.00000656, 9.7560428e-07, -1.94859155e-07)
  422. o19.BottomSurface = Enum.SurfaceType.Smooth
  423. o19.LeftSurface = Enum.SurfaceType.Weld
  424. o19.RightSurface = Enum.SurfaceType.Weld
  425. o19.TopSurface = Enum.SurfaceType.Smooth
  426. o19.Position = Vector3.new(-28.4507103, 10.0297909, -74.7849731)
  427. o20.Parent = o17
  428. o20.Position = Vector3.new(-28.4506264, 10.0298214, -73.7846832)
  429. o20.Rotation = Vector3.new(0, -90, 0)
  430. o20.FormFactor = Enum.FormFactor.Symmetric
  431. o20.Shape = Enum.PartType.Cylinder
  432. o20.Size = Vector3.new(1, 1, 1)
  433. o20.CFrame = CFrame.new(-28.4506264, 10.0298214, -73.7846832, -1.40744746e-07, -0.000106293701, -1.00000656, -9.91590696e-07, 1, -0.000106293061, 1.00000656, 9.91551474e-07, -1.41208602e-07)
  434. o20.BottomSurface = Enum.SurfaceType.Smooth
  435. o20.LeftSurface = Enum.SurfaceType.Weld
  436. o20.RightSurface = Enum.SurfaceType.Weld
  437. o20.TopSurface = Enum.SurfaceType.Smooth
  438. o20.Position = Vector3.new(-28.4506264, 10.0298214, -73.7846832)
  439. o21.Parent = o17
  440. o21.Position = Vector3.new(-28.4507103, 10.0298052, -76.7853088)
  441. o21.Rotation = Vector3.new(0, -90, 0)
  442. o21.FormFactor = Enum.FormFactor.Symmetric
  443. o21.Shape = Enum.PartType.Cylinder
  444. o21.Size = Vector3.new(1, 1, 1)
  445. o21.CFrame = CFrame.new(-28.4507103, 10.0298052, -76.7853088, -2.00461315e-07, -0.000106273386, -1.00000656, -9.74857585e-07, 1, -0.000106272746, 1.00000656, 9.74811883e-07, -2.00923395e-07)
  446. o21.BottomSurface = Enum.SurfaceType.Smooth
  447. o21.LeftSurface = Enum.SurfaceType.Weld
  448. o21.RightSurface = Enum.SurfaceType.Weld
  449. o21.TopSurface = Enum.SurfaceType.Smooth
  450. o21.Position = Vector3.new(-28.4507103, 10.0298052, -76.7853088)
  451. o22.Parent = o17
  452. o22.Position = Vector3.new(-28.4506588, 10.0298519, -77.7855301)
  453. o22.Rotation = Vector3.new(0, -90, 0)
  454. o22.FormFactor = Enum.FormFactor.Symmetric
  455. o22.Shape = Enum.PartType.Cylinder
  456. o22.Size = Vector3.new(1, 1, 1)
  457. o22.CFrame = CFrame.new(-28.4506588, 10.0298519, -77.7855301, -7.68341124e-08, -0.000106285406, -1.00000656, -1.00842294e-06, 1, -0.000106284766, 1.00000656, 1.00839065e-06, -7.72997737e-08)
  458. o22.BottomSurface = Enum.SurfaceType.Smooth
  459. o22.LeftSurface = Enum.SurfaceType.Weld
  460. o22.RightSurface = Enum.SurfaceType.Weld
  461. o22.TopSurface = Enum.SurfaceType.Smooth
  462. o22.Position = Vector3.new(-28.4506588, 10.0298519, -77.7855301)
  463. o23.Parent = o17
  464. o23.Position = Vector3.new(-28.450634, 10.0297985, -75.7855759)
  465. o23.Rotation = Vector3.new(0, -90, 0)
  466. o23.FormFactor = Enum.FormFactor.Symmetric
  467. o23.Shape = Enum.PartType.Cylinder
  468. o23.Size = Vector3.new(1, 1, 1)
  469. o23.CFrame = CFrame.new(-28.450634, 10.0297985, -75.7855759, -8.70835919e-08, -0.000106299885, -1.00000656, -1.00751731e-06, 1, -0.000106299245, 1.00000656, 1.00748389e-06, -8.7549175e-08)
  470. o23.BottomSurface = Enum.SurfaceType.Smooth
  471. o23.LeftSurface = Enum.SurfaceType.Weld
  472. o23.RightSurface = Enum.SurfaceType.Weld
  473. o23.TopSurface = Enum.SurfaceType.Smooth
  474. o23.Position = Vector3.new(-28.450634, 10.0297985, -75.7855759)
  475. o24.Parent = o7
  476. o25.Parent = o24
  477. o25.BrickColor = BrickColor.new("Black")
  478. o25.Position = Vector3.new(-28.6486168, 16.0199127, -81.0150452)
  479. o25.Rotation = Vector3.new(0, -90, 0)
  480. o25.FormFactor = Enum.FormFactor.Symmetric
  481. o25.Size = Vector3.new(3, 2, 1)
  482. o25.CFrame = CFrame.new(-28.6486168, 16.0199127, -81.0150452, 0.000792632112, -2.36951619e-05, -1.0000062, 2.00704653e-06, 1, -2.36934538e-05, 1.00000608, -1.98828525e-06, 0.000792631414)
  483. o25.BottomSurface = Enum.SurfaceType.Weld
  484. o25.TopSurface = Enum.SurfaceType.Smooth
  485. o25.Color = Color3.new(0.105882, 0.164706, 0.207843)
  486. o25.Position = Vector3.new(-28.6486168, 16.0199127, -81.0150452)
  487. o26.Name = "Base"
  488. o26.Parent = o24
  489. o26.BrickColor = BrickColor.new("Black")
  490. o26.Position = Vector3.new(-28.6481991, 17.520546, -81.5146103)
  491. o26.Rotation = Vector3.new(0, -90, 0)
  492. o26.FormFactor = Enum.FormFactor.Symmetric
  493. o26.Size = Vector3.new(4, 1, 1)
  494. o26.CFrame = CFrame.new(-28.6481991, 17.520546, -81.5146103, 8.28818884e-07, -2.36581327e-05, -1.00000656, -7.21582921e-07, 1, -2.36580108e-05, 1.00000644, 7.21600713e-07, 8.28120392e-07)
  495. o26.BottomSurface = Enum.SurfaceType.Weld
  496. o26.RightSurface = Enum.SurfaceType.Motor
  497. o26.TopSurface = Enum.SurfaceType.Smooth
  498. o26.Color = Color3.new(0.105882, 0.164706, 0.207843)
  499. o26.Position = Vector3.new(-28.6481991, 17.520546, -81.5146103)
  500. o27.Name = "GunBarrel"
  501. o27.Parent = o24
  502. o28.Name = "One"
  503. o28.Parent = o27
  504. o28.BrickColor = BrickColor.new("Black")
  505. o28.Position = Vector3.new(-28.6441574, 17.520277, -78.0145645)
  506. o28.Rotation = Vector3.new(-90, -87.4599991, -90)
  507. o28.FormFactor = Enum.FormFactor.Symmetric
  508. o28.Size = Vector3.new(1, 1, 1)
  509. o28.CFrame = CFrame.new(-28.6441574, 17.520277, -78.0145645, -2.67907171e-06, 0.0444317684, -0.999014258, -4.60980971e-07, 0.999012411, 0.0444318429, 1, 5.7956197e-07, -2.6559344e-06)
  510. o28.BottomSurface = Enum.SurfaceType.Smooth
  511. o28.LeftSurface = Enum.SurfaceType.Weld
  512. o28.TopSurface = Enum.SurfaceType.Smooth
  513. o28.Color = Color3.new(0.105882, 0.164706, 0.207843)
  514. o28.Position = Vector3.new(-28.6441574, 17.520277, -78.0145645)
  515. o29.Name = "Four"
  516. o29.Parent = o27
  517. o29.BrickColor = BrickColor.new("Black")
  518. o29.Position = Vector3.new(-28.6442947, 17.5203018, -79.0145798)
  519. o29.Rotation = Vector3.new(-90, -87.4499969, -90)
  520. o29.FormFactor = Enum.FormFactor.Symmetric
  521. o29.Size = Vector3.new(1, 1, 1)
  522. o29.CFrame = CFrame.new(-28.6442947, 17.5203018, -79.0145798, 1.01642888e-06, 0.0444415212, -0.999012053, -5.82180803e-07, 0.999011993, 0.0444415249, 1, 5.36433959e-07, 1.04129776e-06)
  523. o29.BottomSurface = Enum.SurfaceType.Smooth
  524. o29.LeftSurface = Enum.SurfaceType.Weld
  525. o29.TopSurface = Enum.SurfaceType.Smooth
  526. o29.Color = Color3.new(0.105882, 0.164706, 0.207843)
  527. o29.Position = Vector3.new(-28.6442947, 17.5203018, -79.0145798)
  528. o30.Name = "Three"
  529. o30.Parent = o27
  530. o30.BrickColor = BrickColor.new("Black")
  531. o30.Position = Vector3.new(-28.6444454, 17.5202389, -77.0145645)
  532. o30.Rotation = Vector3.new(-89.9899979, -87.4599991, -89.9899979)
  533. o30.FormFactor = Enum.FormFactor.Symmetric
  534. o30.Size = Vector3.new(1, 1, 1)
  535. o30.CFrame = CFrame.new(-28.6444454, 17.5202389, -77.0145645, 4.80128529e-06, 0.0444511101, -0.999020338, -6.45468617e-07, 0.999011576, 0.0444514714, 1, 4.31409944e-07, 4.82521136e-06)
  536. o30.BottomSurface = Enum.SurfaceType.Smooth
  537. o30.LeftSurface = Enum.SurfaceType.Weld
  538. o30.TopSurface = Enum.SurfaceType.Smooth
  539. o30.Color = Color3.new(0.105882, 0.164706, 0.207843)
  540. o30.Position = Vector3.new(-28.6444454, 17.5202389, -77.0145645)
  541. o31.Name = "Two"
  542. o31.Parent = o27
  543. o31.BrickColor = BrickColor.new("Black")
  544. o31.Position = Vector3.new(-28.6442261, 17.5202885, -76.0145645)
  545. o31.Rotation = Vector3.new(90.0099945, 87.4799957, 89.9899979)
  546. o31.FormFactor = Enum.FormFactor.Symmetric
  547. o31.Size = Vector3.new(1, 1, 1)
  548. o31.CFrame = CFrame.new(-28.6442261, 17.5202885, -76.0145645, 4.56342696e-06, -0.0444511846, 0.99902916, -7.03348292e-07, -0.999011576, -0.044451911, 1, -4.99806902e-07, -4.59014564e-06)
  549. o31.BottomSurface = Enum.SurfaceType.Smooth
  550. o31.LeftSurface = Enum.SurfaceType.Weld
  551. o31.TopSurface = Enum.SurfaceType.Smooth
  552. o31.Color = Color3.new(0.105882, 0.164706, 0.207843)
  553. o31.Position = Vector3.new(-28.6442261, 17.5202885, -76.0145645)
  554. o32.Name = "Stopped"
  555. o32.Parent = o24
  556. o33.Name = "Head"
  557. o33.Parent = o32
  558. o33.BrickColor = BrickColor.new("Bright red")
  559. o33.Reflectance = 0.40000000596046
  560. o33.Position = Vector3.new(-28.6481514, 17.5209122, -83.7145844)
  561. o33.Rotation = Vector3.new(-90, -90, 0)
  562. o33.FormFactor = Enum.FormFactor.Plate
  563. o33.Size = Vector3.new(1, 0.400000006, 1)
  564. o33.CFrame = CFrame.new(-28.6481514, 17.5209122, -83.7145844, -2.3656994e-05, -9.14649092e-07, -1.00001347, 1, 6.98235567e-07, -2.36568012e-05, 6.98223118e-07, -1.00001335, 9.13444353e-07)
  565. o33.BottomSurface = Enum.SurfaceType.Weld
  566. o33.TopSurface = Enum.SurfaceType.Smooth
  567. o33.Color = Color3.new(0.768628, 0.156863, 0.109804)
  568. o33.Position = Vector3.new(-28.6481514, 17.5209122, -83.7145844)
  569. o34.Parent = o33
  570. o34.MaxActivationDistance = 16
  571. o35.Name = "GunSound"
  572. o35.Parent = o33
  573. o35.SoundId = "rbxasset://sounds/Rocket shot.wav"
  574. o35.Volume = 1
  575. o36.Name = "CannonBall"
  576. o36.Parent = o33
  577. o36.Disabled = true
  578.  
  579. runDummyScript(function()
  580. ball = script.Parent
  581.  
  582. damage = 25
  583.  
  584.  
  585.  
  586. function onTouched(hit)
  587.  
  588. hit:BreakJoints()
  589.  
  590.  
  591.  
  592. local humanoid = hit.Parent:findFirstChild("Humanoid")
  593.  
  594. if humanoid~=nil then
  595.  
  596.  
  597.  
  598. tagHumanoid(humanoid)
  599.  
  600. humanoid.Health = humanoid.Health - damage
  601.  
  602. wait(2)
  603.  
  604. untagHumanoid(humanoid)
  605.  
  606. connection:disconnect()
  607.  
  608. else
  609.  
  610. damage = damage / 2
  611.  
  612. if damage < 2 then
  613.  
  614. connection:disconnect()
  615.  
  616. ball.Parent = nil
  617.  
  618. end
  619.  
  620. end
  621.  
  622.  
  623.  
  624. if math.random(1,3) == 2 then
  625.  
  626. explosion = Instance.new("Explosion")
  627.  
  628. explosion.BlastRadius = 1
  629.  
  630. explosion.BlastPressure = 1000000 -- these are really wussy units
  631.  
  632. explosion.Position = script.Parent.Position
  633.  
  634. explosion.Parent = game.Workspace
  635.  
  636. connection:disconnect()
  637.  
  638. ball.Parent = nil
  639.  
  640. end
  641.  
  642.  
  643.  
  644. end
  645.  
  646.  
  647.  
  648. function tagHumanoid(humanoid)
  649.  
  650. -- todo: make tag expire
  651.  
  652. local tag = ball:findFirstChild("creator")
  653.  
  654. if tag ~= nil then
  655.  
  656. local new_tag = tag:clone()
  657.  
  658. new_tag.Parent = humanoid
  659.  
  660. end
  661.  
  662. end
  663.  
  664.  
  665.  
  666.  
  667.  
  668. function untagHumanoid(humanoid)
  669.  
  670. if humanoid ~= nil then
  671.  
  672. local tag = humanoid:findFirstChild("creator")
  673.  
  674. if tag ~= nil then
  675.  
  676. tag.Parent = nil
  677.  
  678. end
  679.  
  680. end
  681.  
  682. end
  683.  
  684.  
  685.  
  686. connection = ball.Touched:connect(onTouched)
  687.  
  688.  
  689.  
  690. r = game:service("RunService")
  691.  
  692. t, s = r.Stepped:wait()
  693.  
  694. d = t + 5.0 - s
  695.  
  696. while t < d do
  697.  
  698. t = r.Stepped:wait()
  699.  
  700. end
  701.  
  702.  
  703.  
  704. ball.Parent = nil
  705. end,o36)
  706.  
  707. o37.Name = "FireGun"
  708. o37.Parent = o33
  709.  
  710. runDummyScript(function()
  711. local switch = script.Parent
  712.  
  713. local gunBarrelOne = script.Parent.Parent.Parent.GunBarrel.One
  714.  
  715. local gunBarrelTwo = script.Parent.Parent.Parent.GunBarrel.Two
  716.  
  717. local gunBarrelThree = script.Parent.Parent.Parent.GunBarrel.Three
  718.  
  719. local gunBarrelFour = script.Parent.Parent.Parent.GunBarrel.Four
  720.  
  721.  
  722.  
  723. local debounce = false
  724.  
  725. local gunOne = true
  726.  
  727.  
  728.  
  729. local cannonBall = Instance.new("Part")
  730.  
  731. cannonBall.Size = Vector3.new(1,1,1)
  732.  
  733. cannonBall.BrickColor = BrickColor.new(21) -- red
  734.  
  735. cannonBall.Shape = 0
  736.  
  737. cannonBall.FormFactor = 0
  738.  
  739. cannonBall.BottomSurface = 0
  740.  
  741. cannonBall.TopSurface = 0
  742.  
  743. cannonBall.Name = "Cannon Shot"
  744.  
  745. cannonBall.Elasticity = 1
  746.  
  747. cannonBall.Reflectance = .2
  748.  
  749. cannonBall.Friction = 1
  750.  
  751.  
  752.  
  753. function getPlayer(humanoid)
  754.  
  755. -- find the owning player of a humanoid.
  756.  
  757. local players = game.Players:children()
  758.  
  759. for i = 1, #players do
  760.  
  761. if players[i].Character ~= nil then
  762.  
  763. if players[i].Character.Humanoid == humanoid then return players[i] end
  764.  
  765. end
  766.  
  767. end
  768.  
  769. return nil
  770.  
  771. end
  772.  
  773.  
  774.  
  775. function fire(player)
  776.  
  777.  
  778.  
  779. local sound = script.Parent:findFirstChild("GunSound")
  780.  
  781. if sound == nil then
  782.  
  783. sound = Instance.new("Sound")
  784.  
  785. sound.Name = "GunSound"
  786.  
  787. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  788.  
  789. sound.Volume = 1
  790.  
  791. sound.Parent = script.Parent
  792.  
  793. end
  794.  
  795. sound:play()
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805. local missile = Instance.new("Part")
  806.  
  807.  
  808.  
  809.  
  810.  
  811. local barrel
  812.  
  813.  
  814.  
  815. if gunOne == true then
  816.  
  817. barrel = gunBarrelOne
  818.  
  819. gunOne = true -- false
  820.  
  821. else
  822.  
  823. barrel = gunBarrelTwo
  824.  
  825. if gunTwo == true then
  826.  
  827. barrel = gunBarrelTwo
  828.  
  829. gunOne = true -- false
  830.  
  831. gunTwo = true -- false
  832.  
  833. else
  834.  
  835. barrel = gunBarrelThree
  836.  
  837. if gunThree == true then
  838.  
  839. barrel = gunBarrelThree
  840.  
  841. gunOne = true -- false
  842.  
  843. gunTwo = true -- false
  844.  
  845. gunThree = false
  846.  
  847. else
  848.  
  849. barrel = gunBarrelFour
  850.  
  851. if gunFour == true then
  852.  
  853. barrel = gunBarrelFour
  854.  
  855. gunOne = true
  856.  
  857. gunTwo = true
  858.  
  859. gunThree = true
  860.  
  861. gunFour = true
  862.  
  863. end
  864.  
  865. end
  866.  
  867. end
  868.  
  869. end
  870.  
  871.  
  872.  
  873. --[[ if gunOne == true then
  874.  
  875. barrel = gunBarrelOne
  876.  
  877. gunOne = false
  878.  
  879. else
  880.  
  881. barrel = gunBarrelTwo
  882.  
  883. -- gunOne = true
  884.  
  885. end
  886.  
  887. gunTwo = false
  888.  
  889. else
  890.  
  891. barrel = gunBarrelThree
  892.  
  893. gunThree = false
  894.  
  895. else
  896.  
  897. barrel = gunBarrelFour
  898.  
  899. gunFour = true
  900.  
  901. end ]]--
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911. if (barrel.Position - switch.Parent.Parent.Base.Position).magnitude > 22 then return end -- Blown up guns don't shoot. Usually.
  912.  
  913.  
  914.  
  915.  
  916.  
  917. local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
  918.  
  919.  
  920.  
  921. local dx = math.random(-10,25)--10
  922.  
  923. local dy = math.random(-10,25)--10
  924.  
  925. local dz = math.random(-10,25)--10
  926.  
  927. local mag = math.random(180,260)
  928.  
  929.  
  930.  
  931. local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
  932.  
  933.  
  934.  
  935. local missile = cannonBall:clone()
  936.  
  937.  
  938.  
  939. missile.Position = spawnPos
  940.  
  941. missile.Velocity = v
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949. local new_script = script.Parent.CannonBall:clone()
  950.  
  951. new_script.Disabled = false
  952.  
  953. new_script.Parent = missile
  954.  
  955.  
  956.  
  957. local creator_tag = Instance.new("ObjectValue")
  958.  
  959. creator_tag.Value = player
  960.  
  961. creator_tag.Name = "creator"
  962.  
  963. creator_tag.Parent = missile
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971. missile.Parent = game.Workspace
  972.  
  973.  
  974.  
  975. end
  976.  
  977.  
  978.  
  979. local isOn = true
  980.  
  981.  
  982.  
  983. button = script.Parent
  984.  
  985.  
  986.  
  987. function on()
  988.  
  989. isOn = true
  990.  
  991. button.BrickColor = BrickColor.Green()
  992.  
  993. script.Parent.Parent.Name = "Firing"
  994.  
  995. script.Parent.Parent.Parent.Base.RightSurfaceInput = 12 --constant
  996.  
  997. while isOn do
  998.  
  999. wait(0.1)
  1000.  
  1001. fire(player)
  1002.  
  1003.  
  1004.  
  1005. end
  1006.  
  1007. end
  1008.  
  1009.  
  1010.  
  1011. function off()
  1012.  
  1013. isOn = false
  1014.  
  1015. button.BrickColor = BrickColor.Red()
  1016.  
  1017. script.Parent.Parent.Name = "Stopped"
  1018.  
  1019. script.Parent.Parent.Parent.Base.RightSurfaceInput = 0
  1020.  
  1021. end
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027. function onClicked()
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035. if isOn == true then off() else on() end
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043. end
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059. --[[ p = script.Parent.Parent.Parent.door:GetChildren()
  1060.  
  1061. for i= 1, #p do
  1062.  
  1063. p[i].Transparency = 0
  1064.  
  1065. p[i].CanCollide = true
  1066.  
  1067. end]]--
  1068.  
  1069.  
  1070.  
  1071.  
  1072. end,o37)
  1073.  
  1074. o38.Parent = o32
  1075. o38.Health = 0
  1076. o38.MaxHealth = 0
  1077. o39.Parent = o7
  1078. o40.Parent = o39
  1079. o40.BrickColor = BrickColor.new("Black")
  1080. o40.Position = Vector3.new(-19.042448, 16.0200214, -81.0094604)
  1081. o40.Rotation = Vector3.new(0, -90, 0)
  1082. o40.FormFactor = Enum.FormFactor.Symmetric
  1083. o40.Size = Vector3.new(3, 2, 1)
  1084. o40.CFrame = CFrame.new(-19.042448, 16.0200214, -81.0094604, 0.00118761975, -2.36967408e-05, -1.00000584, 3.36120638e-06, 1, -2.36926408e-05, 1.00000572, -3.3330939e-06, 0.00118761905)
  1085. o40.BottomSurface = Enum.SurfaceType.Weld
  1086. o40.TopSurface = Enum.SurfaceType.Smooth
  1087. o40.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1088. o40.Position = Vector3.new(-19.042448, 16.0200214, -81.0094604)
  1089. o41.Name = "Base"
  1090. o41.Parent = o39
  1091. o41.BrickColor = BrickColor.new("Black")
  1092. o41.Position = Vector3.new(-19.0462074, 17.5206146, -81.5146561)
  1093. o41.Rotation = Vector3.new(0, -90, 0)
  1094. o41.FormFactor = Enum.FormFactor.Symmetric
  1095. o41.Size = Vector3.new(4, 1, 1)
  1096. o41.CFrame = CFrame.new(-19.0462074, 17.5206146, -81.5146561, 8.38539563e-07, -2.36580836e-05, -1.00000656, -7.21516813e-07, 1, -2.36579599e-05, 1.00000644, 7.21535173e-07, 8.37841071e-07)
  1097. o41.BottomSurface = Enum.SurfaceType.Weld
  1098. o41.RightSurface = Enum.SurfaceType.Motor
  1099. o41.TopSurface = Enum.SurfaceType.Smooth
  1100. o41.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1101. o41.Position = Vector3.new(-19.0462074, 17.5206146, -81.5146561)
  1102. o42.Name = "GunBarrel"
  1103. o42.Parent = o39
  1104. o43.Name = "One"
  1105. o43.Parent = o42
  1106. o43.BrickColor = BrickColor.new("Black")
  1107. o43.Position = Vector3.new(-19.0444336, 17.5202866, -78.0145645)
  1108. o43.Rotation = Vector3.new(-90, -87.4599991, -90)
  1109. o43.FormFactor = Enum.FormFactor.Symmetric
  1110. o43.Size = Vector3.new(1, 1, 1)
  1111. o43.CFrame = CFrame.new(-19.0444336, 17.5202866, -78.0145645, -2.67907171e-06, 0.0444317684, -0.999014258, -4.60980971e-07, 0.999012411, 0.0444318429, 1, 5.7956197e-07, -2.6559344e-06)
  1112. o43.BottomSurface = Enum.SurfaceType.Smooth
  1113. o43.LeftSurface = Enum.SurfaceType.Weld
  1114. o43.TopSurface = Enum.SurfaceType.Smooth
  1115. o43.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1116. o43.Position = Vector3.new(-19.0444336, 17.5202866, -78.0145645)
  1117. o44.Name = "Four"
  1118. o44.Parent = o42
  1119. o44.BrickColor = BrickColor.new("Black")
  1120. o44.Position = Vector3.new(-19.0444336, 17.5203018, -79.0145798)
  1121. o44.Rotation = Vector3.new(-90, -87.4499969, -90)
  1122. o44.FormFactor = Enum.FormFactor.Symmetric
  1123. o44.Size = Vector3.new(1, 1, 1)
  1124. o44.CFrame = CFrame.new(-19.0444336, 17.5203018, -79.0145798, 1.01642888e-06, 0.0444415212, -0.999012053, -5.82180803e-07, 0.999011993, 0.0444415249, 1, 5.36433959e-07, 1.04129776e-06)
  1125. o44.BottomSurface = Enum.SurfaceType.Smooth
  1126. o44.LeftSurface = Enum.SurfaceType.Weld
  1127. o44.TopSurface = Enum.SurfaceType.Smooth
  1128. o44.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1129. o44.Position = Vector3.new(-19.0444336, 17.5203018, -79.0145798)
  1130. o45.Name = "Three"
  1131. o45.Parent = o42
  1132. o45.BrickColor = BrickColor.new("Black")
  1133. o45.Position = Vector3.new(-19.0444393, 17.5202484, -77.0145645)
  1134. o45.Rotation = Vector3.new(-89.9899979, -87.4599991, -89.9899979)
  1135. o45.FormFactor = Enum.FormFactor.Symmetric
  1136. o45.Size = Vector3.new(1, 1, 1)
  1137. o45.CFrame = CFrame.new(-19.0444393, 17.5202484, -77.0145645, 4.80128529e-06, 0.0444511101, -0.999020338, -6.45468617e-07, 0.999011576, 0.0444514714, 1, 4.31409944e-07, 4.82521136e-06)
  1138. o45.BottomSurface = Enum.SurfaceType.Smooth
  1139. o45.LeftSurface = Enum.SurfaceType.Weld
  1140. o45.TopSurface = Enum.SurfaceType.Smooth
  1141. o45.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1142. o45.Position = Vector3.new(-19.0444393, 17.5202484, -77.0145645)
  1143. o46.Name = "Two"
  1144. o46.Parent = o42
  1145. o46.BrickColor = BrickColor.new("Black")
  1146. o46.Position = Vector3.new(-19.0444241, 17.5203419, -76.0145645)
  1147. o46.Rotation = Vector3.new(90.0099945, 87.4799957, 89.9899979)
  1148. o46.FormFactor = Enum.FormFactor.Symmetric
  1149. o46.Size = Vector3.new(1, 1, 1)
  1150. o46.CFrame = CFrame.new(-19.0444241, 17.5203419, -76.0145645, 4.56342696e-06, -0.0444511846, 0.99902916, -7.03348292e-07, -0.999011576, -0.044451911, 1, -4.99806902e-07, -4.59014564e-06)
  1151. o46.BottomSurface = Enum.SurfaceType.Smooth
  1152. o46.LeftSurface = Enum.SurfaceType.Weld
  1153. o46.TopSurface = Enum.SurfaceType.Smooth
  1154. o46.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1155. o46.Position = Vector3.new(-19.0444241, 17.5203419, -76.0145645)
  1156. o47.Name = "Stopped"
  1157. o47.Parent = o39
  1158. o48.Name = "Head"
  1159. o48.Parent = o47
  1160. o48.BrickColor = BrickColor.new("Bright red")
  1161. o48.Reflectance = 0.40000000596046
  1162. o48.Position = Vector3.new(-19.0468426, 17.5209122, -83.714592)
  1163. o48.Rotation = Vector3.new(-90, -90, 0)
  1164. o48.FormFactor = Enum.FormFactor.Plate
  1165. o48.Size = Vector3.new(1, 0.400000006, 1)
  1166. o48.CFrame = CFrame.new(-19.0468426, 17.5209122, -83.714592, -2.36568776e-05, -9.15404826e-07, -1.00001347, 1, 6.98236249e-07, -2.36566812e-05, 6.98224312e-07, -1.00001335, 9.14025463e-07)
  1167. o48.BottomSurface = Enum.SurfaceType.Weld
  1168. o48.TopSurface = Enum.SurfaceType.Smooth
  1169. o48.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1170. o48.Position = Vector3.new(-19.0468426, 17.5209122, -83.714592)
  1171. o49.Parent = o48
  1172. o49.MaxActivationDistance = 16
  1173. o50.Name = "GunSound"
  1174. o50.Parent = o48
  1175. o50.SoundId = "rbxasset://sounds/Rocket shot.wav"
  1176. o50.Volume = 1
  1177. o51.Name = "CannonBall"
  1178. o51.Parent = o48
  1179. o51.Disabled = true
  1180.  
  1181. runDummyScript(function()
  1182. ball = script.Parent
  1183.  
  1184. damage = 25
  1185.  
  1186.  
  1187.  
  1188. function onTouched(hit)
  1189.  
  1190. hit:BreakJoints()
  1191.  
  1192.  
  1193.  
  1194. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1195.  
  1196. if humanoid~=nil then
  1197.  
  1198.  
  1199.  
  1200. tagHumanoid(humanoid)
  1201.  
  1202. humanoid.Health = humanoid.Health - damage
  1203.  
  1204. wait(2)
  1205.  
  1206. untagHumanoid(humanoid)
  1207.  
  1208. connection:disconnect()
  1209.  
  1210. else
  1211.  
  1212. damage = damage / 2
  1213.  
  1214. if damage < 2 then
  1215.  
  1216. connection:disconnect()
  1217.  
  1218. ball.Parent = nil
  1219.  
  1220. end
  1221.  
  1222. end
  1223.  
  1224.  
  1225.  
  1226. if math.random(1,3) == 2 then
  1227.  
  1228. explosion = Instance.new("Explosion")
  1229.  
  1230. explosion.BlastRadius = 1
  1231.  
  1232. explosion.BlastPressure = 1000000 -- these are really wussy units
  1233.  
  1234. explosion.Position = script.Parent.Position
  1235.  
  1236. explosion.Parent = game.Workspace
  1237.  
  1238. connection:disconnect()
  1239.  
  1240. ball.Parent = nil
  1241.  
  1242. end
  1243.  
  1244.  
  1245.  
  1246. end
  1247.  
  1248.  
  1249.  
  1250. function tagHumanoid(humanoid)
  1251.  
  1252. -- todo: make tag expire
  1253.  
  1254. local tag = ball:findFirstChild("creator")
  1255.  
  1256. if tag ~= nil then
  1257.  
  1258. local new_tag = tag:clone()
  1259.  
  1260. new_tag.Parent = humanoid
  1261.  
  1262. end
  1263.  
  1264. end
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270. function untagHumanoid(humanoid)
  1271.  
  1272. if humanoid ~= nil then
  1273.  
  1274. local tag = humanoid:findFirstChild("creator")
  1275.  
  1276. if tag ~= nil then
  1277.  
  1278. tag.Parent = nil
  1279.  
  1280. end
  1281.  
  1282. end
  1283.  
  1284. end
  1285.  
  1286.  
  1287.  
  1288. connection = ball.Touched:connect(onTouched)
  1289.  
  1290.  
  1291.  
  1292. r = game:service("RunService")
  1293.  
  1294. t, s = r.Stepped:wait()
  1295.  
  1296. d = t + 5.0 - s
  1297.  
  1298. while t < d do
  1299.  
  1300. t = r.Stepped:wait()
  1301.  
  1302. end
  1303.  
  1304.  
  1305.  
  1306. ball.Parent = nil
  1307. end,o51)
  1308.  
  1309. o52.Name = "FireGun"
  1310. o52.Parent = o48
  1311.  
  1312. runDummyScript(function()
  1313. local switch = script.Parent
  1314.  
  1315. local gunBarrelOne = script.Parent.Parent.Parent.GunBarrel.One
  1316.  
  1317. local gunBarrelTwo = script.Parent.Parent.Parent.GunBarrel.Two
  1318.  
  1319. local gunBarrelThree = script.Parent.Parent.Parent.GunBarrel.Three
  1320.  
  1321. local gunBarrelFour = script.Parent.Parent.Parent.GunBarrel.Four
  1322.  
  1323.  
  1324.  
  1325. local debounce = false
  1326.  
  1327. local gunOne = true
  1328.  
  1329.  
  1330.  
  1331. local cannonBall = Instance.new("Part")
  1332.  
  1333. cannonBall.Size = Vector3.new(1,1,1)
  1334.  
  1335. cannonBall.BrickColor = BrickColor.new(21) -- red
  1336.  
  1337. cannonBall.Shape = 0
  1338.  
  1339. cannonBall.FormFactor = 0
  1340.  
  1341. cannonBall.BottomSurface = 0
  1342.  
  1343. cannonBall.TopSurface = 0
  1344.  
  1345. cannonBall.Name = "Cannon Shot"
  1346.  
  1347. cannonBall.Elasticity = 1
  1348.  
  1349. cannonBall.Reflectance = .2
  1350.  
  1351. cannonBall.Friction = 1
  1352.  
  1353.  
  1354.  
  1355. function getPlayer(humanoid)
  1356.  
  1357. -- find the owning player of a humanoid.
  1358.  
  1359. local players = game.Players:children()
  1360.  
  1361. for i = 1, #players do
  1362.  
  1363. if players[i].Character ~= nil then
  1364.  
  1365. if players[i].Character.Humanoid == humanoid then return players[i] end
  1366.  
  1367. end
  1368.  
  1369. end
  1370.  
  1371. return nil
  1372.  
  1373. end
  1374.  
  1375.  
  1376.  
  1377. function fire(player)
  1378.  
  1379.  
  1380.  
  1381. local sound = script.Parent:findFirstChild("GunSound")
  1382.  
  1383. if sound == nil then
  1384.  
  1385. sound = Instance.new("Sound")
  1386.  
  1387. sound.Name = "GunSound"
  1388.  
  1389. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  1390.  
  1391. sound.Volume = 1
  1392.  
  1393. sound.Parent = script.Parent
  1394.  
  1395. end
  1396.  
  1397. sound:play()
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407. local missile = Instance.new("Part")
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413. local barrel
  1414.  
  1415.  
  1416.  
  1417. if gunOne == true then
  1418.  
  1419. barrel = gunBarrelOne
  1420.  
  1421. gunOne = true -- false
  1422.  
  1423. else
  1424.  
  1425. barrel = gunBarrelTwo
  1426.  
  1427. if gunTwo == true then
  1428.  
  1429. barrel = gunBarrelTwo
  1430.  
  1431. gunOne = true -- false
  1432.  
  1433. gunTwo = true -- false
  1434.  
  1435. else
  1436.  
  1437. barrel = gunBarrelThree
  1438.  
  1439. if gunThree == true then
  1440.  
  1441. barrel = gunBarrelThree
  1442.  
  1443. gunOne = true -- false
  1444.  
  1445. gunTwo = true -- false
  1446.  
  1447. gunThree = false
  1448.  
  1449. else
  1450.  
  1451. barrel = gunBarrelFour
  1452.  
  1453. if gunFour == true then
  1454.  
  1455. barrel = gunBarrelFour
  1456.  
  1457. gunOne = true
  1458.  
  1459. gunTwo = true
  1460.  
  1461. gunThree = true
  1462.  
  1463. gunFour = true
  1464.  
  1465. end
  1466.  
  1467. end
  1468.  
  1469. end
  1470.  
  1471. end
  1472.  
  1473.  
  1474.  
  1475. --[[ if gunOne == true then
  1476.  
  1477. barrel = gunBarrelOne
  1478.  
  1479. gunOne = false
  1480.  
  1481. else
  1482.  
  1483. barrel = gunBarrelTwo
  1484.  
  1485. -- gunOne = true
  1486.  
  1487. end
  1488.  
  1489. gunTwo = false
  1490.  
  1491. else
  1492.  
  1493. barrel = gunBarrelThree
  1494.  
  1495. gunThree = false
  1496.  
  1497. else
  1498.  
  1499. barrel = gunBarrelFour
  1500.  
  1501. gunFour = true
  1502.  
  1503. end ]]--
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513. if (barrel.Position - switch.Parent.Parent.Base.Position).magnitude > 22 then return end -- Blown up guns don't shoot. Usually.
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519. local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
  1520.  
  1521.  
  1522.  
  1523. local dx = math.random(-10,25)--10
  1524.  
  1525. local dy = math.random(-10,25)--10
  1526.  
  1527. local dz = math.random(-10,25)--10
  1528.  
  1529. local mag = math.random(180,260)
  1530.  
  1531.  
  1532.  
  1533. local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
  1534.  
  1535.  
  1536.  
  1537. local missile = cannonBall:clone()
  1538.  
  1539.  
  1540.  
  1541. missile.Position = spawnPos
  1542.  
  1543. missile.Velocity = v
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551. local new_script = script.Parent.CannonBall:clone()
  1552.  
  1553. new_script.Disabled = false
  1554.  
  1555. new_script.Parent = missile
  1556.  
  1557.  
  1558.  
  1559. local creator_tag = Instance.new("ObjectValue")
  1560.  
  1561. creator_tag.Value = player
  1562.  
  1563. creator_tag.Name = "creator"
  1564.  
  1565. creator_tag.Parent = missile
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573. missile.Parent = game.Workspace
  1574.  
  1575.  
  1576.  
  1577. end
  1578.  
  1579.  
  1580.  
  1581. local isOn = true
  1582.  
  1583.  
  1584.  
  1585. button = script.Parent
  1586.  
  1587.  
  1588.  
  1589. function on()
  1590.  
  1591. isOn = true
  1592.  
  1593. button.BrickColor = BrickColor.Green()
  1594.  
  1595. script.Parent.Parent.Name = "Firing"
  1596.  
  1597. script.Parent.Parent.Parent.Base.RightSurfaceInput = 12 --constant
  1598.  
  1599. while isOn do
  1600.  
  1601. wait(0.1)
  1602.  
  1603. fire(player)
  1604.  
  1605.  
  1606.  
  1607. end
  1608.  
  1609. end
  1610.  
  1611.  
  1612.  
  1613. function off()
  1614.  
  1615. isOn = false
  1616.  
  1617. button.BrickColor = BrickColor.Red()
  1618.  
  1619. script.Parent.Parent.Name = "Stopped"
  1620.  
  1621. script.Parent.Parent.Parent.Base.RightSurfaceInput = 0
  1622.  
  1623. end
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629. function onClicked()
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637. if isOn == true then off() else on() end
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645. end
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661. --[[ p = script.Parent.Parent.Parent.door:GetChildren()
  1662.  
  1663. for i= 1, #p do
  1664.  
  1665. p[i].Transparency = 0
  1666.  
  1667. p[i].CanCollide = true
  1668.  
  1669. end]]--
  1670.  
  1671.  
  1672.  
  1673.  
  1674. end,o52)
  1675.  
  1676. o53.Parent = o47
  1677. o53.Health = 0
  1678. o53.MaxHealth = 0
  1679. o54.Name = "Gun"
  1680. o54.Parent = o7
  1681. o55.Name = "Cannon"
  1682. o55.Parent = o54
  1683. o56.Name = "Switch"
  1684. o56.Parent = o55
  1685. o56.Position = Vector3.new(-20.9097805, 8.62950039, -80.684166)
  1686. o56.Rotation = Vector3.new(0, 0.00999999978, 0.00999999978)
  1687. o56.FormFactor = Enum.FormFactor.Plate
  1688. o56.Size = Vector3.new(1, 1.20000005, 3)
  1689. o56.CFrame = CFrame.new(-20.9097805, 8.62950039, -80.684166, 1.00000679, -0.000106465588, 0.000146138482, 0.00010647517, 1, -6.99682496e-05, -0.000146130566, 6.99842421e-05, 1.00000668)
  1690. o56.BackSurface = Enum.SurfaceType.Weld
  1691. o56.BottomSurface = Enum.SurfaceType.Weld
  1692. o56.LeftSurface = Enum.SurfaceType.Weld
  1693. o56.RightSurface = Enum.SurfaceType.Weld
  1694. o56.TopSurface = Enum.SurfaceType.Smooth
  1695. o56.Position = Vector3.new(-20.9097805, 8.62950039, -80.684166)
  1696. o57.Name = "CannonBall"
  1697. o57.Parent = o56
  1698. o57.Disabled = true
  1699.  
  1700. runDummyScript(function()
  1701. ball = script.Parent
  1702. damage = 100
  1703.  
  1704. function onTouched(hit)
  1705.  
  1706.  
  1707. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1708. if humanoid~=nil then
  1709. tagHumanoid(humanoid)
  1710. humanoid.Health = humanoid.Health - damage
  1711. wait(0.00000001)
  1712. untagHumanoid(humanoid)
  1713. connection:disconnect()
  1714. else
  1715. damage = damage / 2
  1716. if damage < 2 then
  1717. connection:disconnect()
  1718. ball.Parent = nil
  1719. end
  1720. end
  1721.  
  1722. if math.random(1,1) == 1 then
  1723. explosion = Instance.new("Explosion")
  1724. explosion.BlastRadius = 15
  1725. explosion.BlastPressure = 600000 -- these are really wussy units
  1726. explosion.Position = script.Parent.Position
  1727. explosion.Parent = game.Workspace
  1728. connection:disconnect()
  1729. ball.Parent = nil
  1730. cancollide = true
  1731. end
  1732.  
  1733. end
  1734.  
  1735. function tagHumanoid(humanoid)
  1736. -- todo: make tag expire
  1737. local tag = ball:findFirstChild("creator")
  1738. if tag ~= nil then
  1739. local new_tag = tag:clone()
  1740. new_tag.Parent = humanoid
  1741. end
  1742. end
  1743.  
  1744.  
  1745. function untagHumanoid(humanoid)
  1746. if humanoid ~= nil then
  1747. local tag = humanoid:findFirstChild("creator")
  1748. if tag ~= nil then
  1749. tag.Parent = nil
  1750. end
  1751. end
  1752. end
  1753.  
  1754. connection = ball.Touched:connect(onTouched)
  1755.  
  1756. r = game:service("RunService")
  1757. t, s = r.Stepped:wait()
  1758. d = t + 5.0 - s
  1759. while t < d do
  1760. t = r.Stepped:wait()
  1761. end
  1762.  
  1763. ball.Parent = nil
  1764. end,o57)
  1765.  
  1766. o58.Parent = o56
  1767. o58.MaxActivationDistance = 10
  1768. o59.Name = "FireGun"
  1769. o59.Parent = o56
  1770.  
  1771. runDummyScript(function()
  1772. local switch = script.Parent
  1773. local gunBarrelOne = script.Parent.Parent.GunBarrel.One
  1774.  
  1775. local debounce = false
  1776. local gunOne = true
  1777.  
  1778. local cannonBall = Instance.new("Part")
  1779. cannonBall.Size = Vector3.new(1,1,1)
  1780. cannonBall.BrickColor = BrickColor.new(1) -- medium blue
  1781. cannonBall.Shape = 0
  1782. cannonBall.BottomSurface = 0
  1783. cannonBall.TopSurface = 0
  1784. cannonBall.Name = "Cannon Shot"
  1785. cannonBall.Elasticity = .1
  1786. cannonBall.Reflectance = 0
  1787. cannonBall.Friction = 0
  1788.  
  1789. function fire(player)
  1790.  
  1791. local sound = script.Parent:findFirstChild("GunSound")
  1792. if sound == nil then
  1793. sound = Instance.new("Sound")
  1794. sound.Name = "GunSound"
  1795. sound.SoundId = "http://www.roblox.com/asset?id=2101148"
  1796. sound.Volume = 1
  1797. sound.Parent = script.Parent
  1798. end
  1799. sound:play()
  1800.  
  1801.  
  1802.  
  1803.  
  1804. local missile = Instance.new("Part")
  1805.  
  1806.  
  1807. local barrel
  1808.  
  1809. if gunOne == true then
  1810. barrel = gunBarrelOne
  1811. gunOne = true
  1812.  
  1813. end
  1814.  
  1815. local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
  1816.  
  1817. local dx = math.random(50,50)
  1818. local dy = math.random(0,0)
  1819. local dz = math.random(0,0)
  1820. local mag = math.random(750,750)
  1821.  
  1822. local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
  1823.  
  1824. local missile = cannonBall:clone()
  1825.  
  1826. missile.Position = spawnPos
  1827. missile.Velocity = v
  1828.  
  1829.  
  1830.  
  1831. local new_script = script.Parent.CannonBall:clone()
  1832. new_script.Disabled = false
  1833. new_script.Parent = missile
  1834.  
  1835. local creator_tag = Instance.new("ObjectValue")
  1836. creator_tag.Value = player
  1837. creator_tag.Name = "creator"
  1838. creator_tag.Parent = missile
  1839.  
  1840.  
  1841.  
  1842. missile.Parent = game.Workspace
  1843.  
  1844. end
  1845.  
  1846. function onClicked()
  1847. if debounce == false then
  1848. debounce = true
  1849. switch.BrickColor = BrickColor.new(21)
  1850. -- let slip the dogs of war
  1851. fire(player)
  1852. wait(.5)
  1853.  
  1854. wait(1)
  1855. debounce = false
  1856. switch.BrickColor = BrickColor.new(37)
  1857. end
  1858. end
  1859.  
  1860.  
  1861. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  1862.  
  1863.  
  1864.  
  1865. end,o59)
  1866.  
  1867. o60.Name = "GunSound"
  1868. o60.Parent = o56
  1869. o60.SoundId = "http://www.roblox.com/asset/?id=12222084"
  1870. o60.Volume = 1
  1871. o61.Name = "GunBarrel"
  1872. o61.Parent = o55
  1873. o62.Name = "One"
  1874. o62.Parent = o61
  1875. o62.Position = Vector3.new(-18.8467827, 9.7098093, -72.7852707)
  1876. o62.Rotation = Vector3.new(0, -90, 0)
  1877. o62.FormFactor = Enum.FormFactor.Symmetric
  1878. o62.Shape = Enum.PartType.Cylinder
  1879. o62.Size = Vector3.new(1, 1, 1)
  1880. o62.CFrame = CFrame.new(-18.8467827, 9.7098093, -72.7852707, 3.46582141e-08, -0.000106319145, -1.00000644, -9.65650543e-07, 1, -0.00010631849, 1.00000644, 9.6565384e-07, 3.40795623e-08)
  1881. o62.BottomSurface = Enum.SurfaceType.Smooth
  1882. o62.LeftSurface = Enum.SurfaceType.Weld
  1883. o62.RightSurface = Enum.SurfaceType.Weld
  1884. o62.TopSurface = Enum.SurfaceType.Smooth
  1885. o62.Position = Vector3.new(-18.8467827, 9.7098093, -72.7852707)
  1886. o63.Parent = o54
  1887. o64.Parent = o63
  1888. o64.Position = Vector3.new(-18.8436699, 9.22975159, -79.7864761)
  1889. o64.Rotation = Vector3.new(-180, 0.0899999961, 179.98999)
  1890. o64.Size = Vector3.new(3, 2.4000001, 3)
  1891. o64.CFrame = CFrame.new(-18.8436699, 9.22975159, -79.7864761, -1.00000513, -0.00010634122, 0.00156820449, -0.000106338885, 1, 1.1487034e-06, -0.00156820507, 9.81941866e-07, -1.00000513)
  1892. o64.BackSurface = Enum.SurfaceType.Weld
  1893. o64.BottomSurface = Enum.SurfaceType.Weld
  1894. o64.LeftSurface = Enum.SurfaceType.Weld
  1895. o64.RightSurface = Enum.SurfaceType.Weld
  1896. o64.TopSurface = Enum.SurfaceType.Weld
  1897. o64.Position = Vector3.new(-18.8436699, 9.22975159, -79.7864761)
  1898. o65.Parent = o63
  1899. o65.Position = Vector3.new(-18.8466434, 9.72975063, -74.7852478)
  1900. o65.Rotation = Vector3.new(0, -90, 0)
  1901. o65.FormFactor = Enum.FormFactor.Symmetric
  1902. o65.Shape = Enum.PartType.Cylinder
  1903. o65.Size = Vector3.new(1, 1, 1)
  1904. o65.CFrame = CFrame.new(-18.8466434, 9.72975063, -74.7852478, -1.7720086e-07, -0.000106309708, -1.00000644, -9.65687718e-07, 1, -0.000106309053, 1.00000644, 9.65668505e-07, -1.77779498e-07)
  1905. o65.BottomSurface = Enum.SurfaceType.Smooth
  1906. o65.LeftSurface = Enum.SurfaceType.Weld
  1907. o65.RightSurface = Enum.SurfaceType.Weld
  1908. o65.TopSurface = Enum.SurfaceType.Smooth
  1909. o65.Position = Vector3.new(-18.8466434, 9.72975063, -74.7852478)
  1910. o66.Parent = o63
  1911. o66.Position = Vector3.new(-18.8465691, 9.72980595, -73.7849197)
  1912. o66.Rotation = Vector3.new(0, -90, 0)
  1913. o66.FormFactor = Enum.FormFactor.Symmetric
  1914. o66.Shape = Enum.PartType.Cylinder
  1915. o66.Size = Vector3.new(1, 1, 1)
  1916. o66.CFrame = CFrame.new(-18.8465691, 9.72980595, -73.7849197, -1.27739298e-07, -0.000106314503, -1.00000644, -9.81545099e-07, 1, -0.000106313848, 1.00000644, 9.8153123e-07, -1.28319641e-07)
  1917. o66.BottomSurface = Enum.SurfaceType.Smooth
  1918. o66.LeftSurface = Enum.SurfaceType.Weld
  1919. o66.RightSurface = Enum.SurfaceType.Weld
  1920. o66.TopSurface = Enum.SurfaceType.Smooth
  1921. o66.Position = Vector3.new(-18.8465691, 9.72980595, -73.7849197)
  1922. o67.Parent = o63
  1923. o67.Position = Vector3.new(-18.8466434, 9.7297821, -76.7855682)
  1924. o67.Rotation = Vector3.new(0, -90, 0)
  1925. o67.FormFactor = Enum.FormFactor.Symmetric
  1926. o67.Shape = Enum.PartType.Cylinder
  1927. o67.Size = Vector3.new(1, 1, 1)
  1928. o67.CFrame = CFrame.new(-18.8466434, 9.7297821, -76.7855682, -1.81681401e-07, -0.000106299725, -1.00000644, -9.65332333e-07, 1, -0.00010629907, 1.00000644, 9.65312665e-07, -1.82259981e-07)
  1929. o67.BottomSurface = Enum.SurfaceType.Smooth
  1930. o67.LeftSurface = Enum.SurfaceType.Weld
  1931. o67.RightSurface = Enum.SurfaceType.Weld
  1932. o67.TopSurface = Enum.SurfaceType.Smooth
  1933. o67.Position = Vector3.new(-18.8466434, 9.7297821, -76.7855682)
  1934. o68.Parent = o63
  1935. o68.Position = Vector3.new(-18.8460999, 9.72977638, -77.7861328)
  1936. o68.Rotation = Vector3.new(0, -90, 0)
  1937. o68.FormFactor = Enum.FormFactor.Symmetric
  1938. o68.Shape = Enum.PartType.Cylinder
  1939. o68.Size = Vector3.new(1, 1, 1)
  1940. o68.CFrame = CFrame.new(-18.8460999, 9.72977638, -77.7861328, -6.01867214e-08, -0.000106301348, -1.00000644, -9.98144628e-07, 1, -0.000106300693, 1.00000644, 9.98138148e-07, -6.0768798e-08)
  1941. o68.BottomSurface = Enum.SurfaceType.Smooth
  1942. o68.LeftSurface = Enum.SurfaceType.Weld
  1943. o68.RightSurface = Enum.SurfaceType.Weld
  1944. o68.TopSurface = Enum.SurfaceType.Smooth
  1945. o68.Position = Vector3.new(-18.8460999, 9.72977638, -77.7861328)
  1946. o69.Parent = o63
  1947. o69.Position = Vector3.new(-18.8465691, 9.72978306, -75.78582)
  1948. o69.Rotation = Vector3.new(0, -90, 0)
  1949. o69.FormFactor = Enum.FormFactor.Symmetric
  1950. o69.Shape = Enum.PartType.Cylinder
  1951. o69.Size = Vector3.new(1, 1, 1)
  1952. o69.CFrame = CFrame.new(-18.8465691, 9.72978306, -75.78582, -7.92416373e-08, -0.000106318184, -1.00000644, -9.97394409e-07, 1, -0.00010631753, 1.00000644, 9.97385882e-07, -7.98236499e-08)
  1953. o69.BottomSurface = Enum.SurfaceType.Smooth
  1954. o69.LeftSurface = Enum.SurfaceType.Weld
  1955. o69.RightSurface = Enum.SurfaceType.Weld
  1956. o69.TopSurface = Enum.SurfaceType.Smooth
  1957. o69.Position = Vector3.new(-18.8465691, 9.72978306, -75.78582)
  1958. o70.Parent = o7
  1959. o70.Position = Vector3.new(-28.3009357, 12.369977, -79.2643051)
  1960. o70.Rotation = Vector3.new(0, -0.429999977, 0.00999999978)
  1961. o70.Size = Vector3.new(3.39999986, 3.29999995, 2)
  1962. o70.CFrame = CFrame.new(-28.3009357, 12.369977, -79.2643051, 0.999978364, -0.000105135696, -0.00750152068, 0.000105124273, 1, -1.83084774e-06, 0.00750152115, 1.04218577e-06, 0.999978364)
  1963. o70.Position = Vector3.new(-28.3009357, 12.369977, -79.2643051)
  1964. o71.Parent = o7
  1965. o71.Position = Vector3.new(-23.6717663, 14.5199966, -82.7808609)
  1966. o71.Rotation = Vector3.new(0, -0.199999988, 0)
  1967. o71.Size = Vector3.new(14.6000004, 1, 9.20000076)
  1968. o71.CFrame = CFrame.new(-23.6717663, 14.5199966, -82.7808609, 1.00000012, -2.95352947e-07, -0.00356004084, 2.88593583e-07, 1, -1.90646313e-06, 0.00356004108, 1.90542903e-06, 1)
  1969. o71.Position = Vector3.new(-23.6717663, 14.5199966, -82.7808609)
  1970. o72.Parent = o7
  1971. o72.Position = Vector3.new(-29.0035076, 3.61999941, -82.9008713)
  1972. o72.Rotation = Vector3.new(0, -0.00999999978, 0)
  1973. o72.Size = Vector3.new(4, 4.79999971, 5)
  1974. o72.CFrame = CFrame.new(-29.0035076, 3.61999941, -82.9008713, 1.00000632, -3.6807787e-08, -0.000198817375, 3.66788591e-08, 1, -6.78978154e-07, 0.00019881771, 6.78968718e-07, 1.00000632)
  1975. o72.TopSurface = Enum.SurfaceType.Weld
  1976. o72.Position = Vector3.new(-29.0035076, 3.61999941, -82.9008713)
  1977. o73.Parent = o7
  1978. o73.Position = Vector3.new(-23.6920071, 7.52000332, -78.6761017)
  1979. o73.Rotation = Vector3.new(0, -0.0299999993, 0)
  1980. o73.Size = Vector3.new(12.6000004, 1, 1)
  1981. o73.CFrame = CFrame.new(-23.6920071, 7.52000332, -78.6761017, 1.0000062, -1.79548636e-07, -0.000589012052, 1.80011824e-07, 1, 7.77528726e-07, 0.000589012401, -7.77645994e-07, 1.0000062)
  1982. o73.Position = Vector3.new(-23.6920071, 7.52000332, -78.6761017)
  1983. o74.Parent = o7
  1984. o74.Position = Vector3.new(-30.5010414, 11.0200157, -82.7777939)
  1985. o74.Rotation = Vector3.new(0, -0.0799999982, 0)
  1986. o74.Size = Vector3.new(1, 6, 9.20000076)
  1987. o74.CFrame = CFrame.new(-30.5010414, 11.0200157, -82.7777939, 1.00000525, -1.41484605e-07, -0.00145297009, 1.44508704e-07, 1, 2.07750486e-06, 0.00145297043, -2.07773223e-06, 1.00000525)
  1988. o74.RightSurface = Enum.SurfaceType.Weld
  1989. o74.Position = Vector3.new(-30.5010414, 11.0200157, -82.7777939)
  1990. o75.Name = "Part-to-Door 1 Strong Joint"
  1991. o75.Parent = o74
  1992. o75.C0 = CFrame.new(0.5, -3, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1993. o75.C1 = CFrame.new(8.74342346, -2.49998474, 2.11160278, -0.999999166, -1.33180879e-06, 0.00132872781, -1.46972241e-06, 1, -0.00010379294, -0.0013287277, -0.000103794788, -0.999999166)
  1994. o75.Part0 = o74
  1995. o75.Part1 = o84
  1996. o76.Parent = o7
  1997. o76.Position = Vector3.new(-29.003233, 0.720032692, -82.901947)
  1998. o76.Rotation = Vector3.new(0, -0.00999999978, 0)
  1999. o76.Size = Vector3.new(4, 1, 15)
  2000. o76.CFrame = CFrame.new(-29.003233, 0.720032692, -82.901947, 1.00001395, -4.84239386e-08, -0.00019938573, 4.83016045e-08, 1, -6.79794539e-07, 0.000199386443, 6.7977868e-07, 1.00001395)
  2001. o76.Position = Vector3.new(-29.003233, 0.720032692, -82.901947)
  2002. o77.Parent = o7
  2003. o77.Position = Vector3.new(-19.098341, 12.219923, -79.2664871)
  2004. o77.Rotation = Vector3.new(0, -0.429999977, 0.00999999978)
  2005. o77.Size = Vector3.new(3.39999986, 3.60000014, 2)
  2006. o77.CFrame = CFrame.new(-19.098341, 12.219923, -79.2664871, 0.999978304, -0.000105183441, -0.00750074256, 0.000105172287, 1, -1.79533959e-06, 0.00750074349, 1.00642387e-06, 0.999978304)
  2007. o77.Position = Vector3.new(-19.098341, 12.219923, -79.2664871)
  2008. o78.Parent = o7
  2009. o78.Position = Vector3.new(-19.3946953, 7.52001619, -80.6645813)
  2010. o78.Rotation = Vector3.new(0, -0.00999999978, 0)
  2011. o78.Size = Vector3.new(4.01000023, 1, 2.88999987)
  2012. o78.CFrame = CFrame.new(-19.3946953, 7.52001619, -80.6645813, 1.00001395, -1.62116365e-08, -0.00025324634, 1.60529261e-08, 1, -6.97606652e-07, 0.000253247097, 6.97596533e-07, 1.00001395)
  2013. o78.Position = Vector3.new(-19.3946953, 7.52001619, -80.6645813)
  2014. o79.Name = "Part-to-Part Strong Joint"
  2015. o79.Parent = o78
  2016. o79.C0 = CFrame.new(2.00500011, -0.5, 1.44499993, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2017. o79.C1 = CFrame.new(-0.500907898, -3.49997711, 3.57652283, -0.00135859207, 2.3316268e-07, 1.00000191, -8.00264502e-07, 1, -2.34289558e-07, -1.00000191, -8.00588111e-07, -0.0013585916)
  2018. o79.Part0 = o78
  2019. o79.Part1 = o82
  2020. o80.Parent = o7
  2021. o80.Transparency = 0.40000000596046
  2022. o80.Position = Vector3.new(-23.6281052, 11.0194235, -78.650444)
  2023. o80.Rotation = Vector3.new(-180, 0.429999977, 179.98999)
  2024. o80.Size = Vector3.new(5.64999962, 6, 1.09999967)
  2025. o80.CFrame = CFrame.new(-23.6281052, 11.0194235, -78.650444, -0.999978483, -0.00010539405, 0.00750794774, -0.000105326166, 1, 9.35044955e-06, -0.00750794914, 8.55943654e-06, -0.999978483)
  2026. o80.BackSurface = Enum.SurfaceType.Weld
  2027. o80.Position = Vector3.new(-23.6281052, 11.0194235, -78.650444)
  2028. o81.Name = "Part-to-Part Strong Joint"
  2029. o81.Parent = o80
  2030. o81.C0 = CFrame.new(-2.82499981, -3, -0.549999833, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2031. o81.C1 = CFrame.new(-1.69998169, -4.20002747, 1.19999695, 7.20428807e-06, -1.54011104e-07, 1, 7.55434758e-06, 1, 1.53956677e-07, -1, 7.55434667e-06, 7.20428898e-06)
  2032. o81.Part0 = o80
  2033. o81.Part1 = o77
  2034. o82.Parent = o7
  2035. o82.Position = Vector3.new(-16.8833008, 10.5199966, -82.7948151)
  2036. o82.Rotation = Vector3.new(0, -0.0899999961, 0)
  2037. o82.Size = Vector3.new(1, 7.00000048, 9.20000076)
  2038. o82.CFrame = CFrame.new(-16.8833008, 10.5199966, -82.7948151, 1.00000513, -2.50676948e-07, -0.00161184184, 2.48267185e-07, 1, -1.49819562e-06, 0.00161184219, 1.49779646e-06, 1.00000513)
  2039. o82.Position = Vector3.new(-16.8833008, 10.5199966, -82.7948151)
  2040. o83.Name = "Part-to-Part Strong Joint"
  2041. o83.Parent = o82
  2042. o83.C0 = CFrame.new(-0.5, -3.50000024, -4.60000038, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2043. o83.C1 = CFrame.new(6.31087494, -0.499992371, -8.72322083, -0.00102283154, -6.65515856e-08, -1.00000572, -2.27569785e-06, 1, -6.42757101e-08, 1.00000608, 2.27556438e-06, -0.0010228327)
  2044. o83.Part0 = o82
  2045. o83.Part1 = o73
  2046. o84.Name = "Door 1"
  2047. o84.Parent = o7
  2048. o84.Position = Vector3.new(-27.8952236, 10.5202217, -86.920372)
  2049. o84.Rotation = Vector3.new(0, -90, 0)
  2050. o84.Size = Vector3.new(1.00000024, 7, 4.19999981)
  2051. o84.CFrame = CFrame.new(-27.8952236, 10.5202217, -86.920372, -0.000124234328, -0.00010393557, -1.00000632, 7.45832835e-07, 1, -0.000103935017, 1.00000632, -7.58756357e-07, -0.00012423459)
  2052. o84.BottomSurface = Enum.SurfaceType.Studs
  2053. o84.TopSurface = Enum.SurfaceType.Smooth
  2054. o84.Position = Vector3.new(-27.8952236, 10.5202217, -86.920372)
  2055. o85.Parent = o84
  2056. o86.Name = "OpenDoorScript"
  2057. o86.Parent = o84
  2058.  
  2059. runDummyScript(function()
  2060. local isOn = true
  2061.  
  2062. function on()
  2063. isOn = true
  2064. script.Parent.Transparency = 0
  2065. script.Parent.CanCollide = true
  2066. end
  2067.  
  2068. function off()
  2069. isOn = false
  2070. script.Parent.Transparency = 0.8
  2071. script.Parent.CanCollide = false
  2072. end
  2073.  
  2074. function onClicked()
  2075.  
  2076. if isOn == true then off() else on() end
  2077.  
  2078. end
  2079.  
  2080. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  2081.  
  2082. on()
  2083. end,o86)
  2084.  
  2085. o87.Name = "Door 1-to-Part Strong Joint"
  2086. o87.Parent = o84
  2087. o87.C0 = CFrame.new(-0.500000119, 3.5, 2.0999999, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  2088. o87.C1 = CFrame.new(-6.34020996, -0.5, -4.61720276, -0.00343578565, -0.999994159, -0.000103648381, -2.65129302e-06, -0.00010363989, 1, -0.999994159, 0.00343578588, -2.2951931e-06)
  2089. o87.Part0 = o84
  2090. o87.Part1 = o71
  2091. o88.Name = "Door 1-to-Part Strong Joint"
  2092. o88.Parent = o84
  2093. o88.C0 = CFrame.new(0.500000119, -3.5, -2.0999999, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2094. o88.C1 = CFrame.new(-4.19464874, -3.49951935, 0.515686035, -0.0014949895, -0.000103689817, 1.00000107, -1.30703006e-06, 1, 0.000103687686, -1.00000107, -1.15202772e-06, -0.0014949888)
  2095. o88.Part0 = o84
  2096. o88.Part1 = o93
  2097. o89.Parent = o7
  2098. o89.Position = Vector3.new(-23.7005692, 6.52006531, -82.80056)
  2099. o89.Rotation = Vector3.new(0, -0.00999999978, 0)
  2100. o89.Size = Vector3.new(14.6000004, 1, 9.19999981)
  2101. o89.CFrame = CFrame.new(-23.7005692, 6.52006531, -82.80056, 1.00000632, -3.4957818e-08, -0.000198163878, 3.48295046e-08, 1, -6.78188371e-07, 0.000198164213, 6.78179276e-07, 1.00000632)
  2102. o89.TopSurface = Enum.SurfaceType.Weld
  2103. o89.Position = Vector3.new(-23.7005692, 6.52006531, -82.80056)
  2104. o90.Parent = o7
  2105. o90.Position = Vector3.new(-28.0031986, 7.66998529, -80.7068863)
  2106. o90.Rotation = Vector3.new(0, -0.00999999978, 0)
  2107. o90.Size = Vector3.new(4, 1.29999995, 3.07000017)
  2108. o90.CFrame = CFrame.new(-28.0031986, 7.66998529, -80.7068863, 1.00000632, -5.28858912e-09, -0.000252973696, 5.1150435e-09, 1, -7.10800691e-07, 0.000252974045, 7.10797394e-07, 1.00000632)
  2109. o90.Position = Vector3.new(-28.0031986, 7.66998529, -80.7068863)
  2110. o91.Name = "Part-to-Part Strong Joint"
  2111. o91.Parent = o90
  2112. o91.C0 = CFrame.new(-2, -0.649999976, 1.53500009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2113. o91.C1 = CFrame.new(-6.3116684, -0.500015259, -0.492599487, 1.00000453, 1.82027378e-07, 0.000336033932, -1.81432938e-07, 1, -1.49106825e-06, -0.000336033467, 1.49094274e-06, 1.00000489)
  2114. o91.Part0 = o90
  2115. o91.Part1 = o73
  2116. o92.Parent = o7
  2117. o92.Position = Vector3.new(-18.3975811, 0.720001936, -82.7000046)
  2118. o92.Rotation = Vector3.new(0, -0.00999999978, 0)
  2119. o92.Size = Vector3.new(4, 1, 15)
  2120. o92.CFrame = CFrame.new(-18.3975811, 0.720001936, -82.7000046, 1.00000632, -4.08549958e-08, -0.000199493894, 4.07258547e-08, 1, -6.77663934e-07, 0.000199494229, 6.77653588e-07, 1.00000632)
  2121. o92.Position = Vector3.new(-18.3975811, 0.720001936, -82.7000046)
  2122. o93.Parent = o7
  2123. o93.Position = Vector3.new(-21.5993652, 10.5199604, -86.9290619)
  2124. o93.Rotation = Vector3.new(0, -0.0899999961, 0)
  2125. o93.Size = Vector3.new(8.40000057, 7, 1)
  2126. o93.CFrame = CFrame.new(-21.5993652, 10.5199604, -86.9290619, 1.00000513, -2.47383497e-07, -0.00161922863, 2.4647926e-07, 1, -5.61568697e-07, 0.00161922909, 5.61165848e-07, 1.00000513)
  2127. o93.Position = Vector3.new(-21.5993652, 10.5199604, -86.9290619)
  2128. o94.Parent = o7
  2129. o94.Position = Vector3.new(-30.495348, 7.52001238, -82.7998276)
  2130. o94.Rotation = Vector3.new(0, 0.00999999978, 0)
  2131. o94.Size = Vector3.new(1, 1, 9.20000076)
  2132. o94.CFrame = CFrame.new(-30.495348, 7.52001238, -82.7998276, 1.00000644, -5.97297571e-08, 0.000178675429, 5.92309561e-08, 1, 2.82483961e-06, -0.000178675095, -2.82485348e-06, 1.00000644)
  2133. o94.Position = Vector3.new(-30.495348, 7.52001238, -82.7998276)
  2134. o95.Name = "Part-to-Door 1 Strong Joint"
  2135. o95.Parent = o94
  2136. o95.C0 = CFrame.new(0.5, -0.5, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2137. o95.C1 = CFrame.new(8.72068787, -3.49998474, 2.09848022, -1, -2.07899097e-06, -0.000302907632, -2.04752632e-06, 1, -0.000103875551, 0.00030290772, -0.000103874925, -1)
  2138. o95.Part0 = o94
  2139. o95.Part1 = o84
  2140. o96.Name = "Part-to-Part Strong Joint"
  2141. o96.Parent = o94
  2142. o96.C0 = CFrame.new(0.5, -0.5, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2143. o96.C1 = CFrame.new(-1.99198151, -0.64995575, 2.50788879, -0.000431969936, -5.50789991e-08, 0.999999881, -3.53707355e-06, 1, 5.35510942e-08, -0.999999881, -3.53705013e-06, -0.000431969936)
  2144. o96.Part0 = o94
  2145. o96.Part1 = o90
  2146. o97.Name = "Part-to-Part Strong Joint"
  2147. o97.Parent = o94
  2148. o97.C0 = CFrame.new(0.5, -0.5, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2149. o97.C1 = CFrame.new(-6.30202484, -0.499977112, 0.480026245, -0.000767684891, 1.1698441e-07, 1.00000441, -2.04725438e-06, 1, -1.18462978e-07, -1.00000477, -2.04742719e-06, -0.0007676846)
  2150. o97.Part0 = o94
  2151. o97.Part1 = o73
  2152. o98.Parent = o7
  2153. o98.Position = Vector3.new(-18.3967533, 3.62000489, -82.8987961)
  2154. o98.Rotation = Vector3.new(0, -0.00999999978, 0)
  2155. o98.Size = Vector3.new(4, 4.79999971, 5)
  2156. o98.CFrame = CFrame.new(-18.3967533, 3.62000489, -82.8987961, 1.00000632, -3.85901444e-08, -0.000199139075, 3.84614687e-08, 1, -6.76581124e-07, 0.000199139409, 6.76571233e-07, 1.00000632)
  2157. o98.TopSurface = Enum.SurfaceType.Weld
  2158. o98.Position = Vector3.new(-18.3967533, 3.62000489, -82.8987961)
  2159. o99.Parent = o7
  2160. o99.BrickColor = BrickColor.new("Brown")
  2161. o99.Position = Vector3.new(-23.5991287, 7.52002001, -82.2001877)
  2162. o99.Rotation = Vector3.new(180, -0.00999999978, 180)
  2163. o99.Size = Vector3.new(2, 1, 4)
  2164. o99.CFrame = CFrame.new(-23.5991287, 7.52002001, -82.2001877, -1.00000119, -1.72356101e-06, -0.000185278768, -1.71905594e-06, 1, -2.43105005e-05, 0.000185278739, -2.43102113e-05, -1.00000119)
  2165. o99.BackSurface = Enum.SurfaceType.Weld
  2166. o99.BottomSurface = Enum.SurfaceType.Weld
  2167. o99.LeftSurface = Enum.SurfaceType.Weld
  2168. o99.RightSurface = Enum.SurfaceType.Weld
  2169. o99.TopSurface = Enum.SurfaceType.Smooth
  2170. o99.HeadsUpDisplay = false
  2171. o99.MaxSpeed = 20
  2172. o99.Torque = 1
  2173. o99.Color = Color3.new(0.486275, 0.360784, 0.27451)
  2174. o99.Position = Vector3.new(-23.5991287, 7.52002001, -82.2001877)
  2175. o100.Name = "FlyScript"
  2176. o100.Parent = o99
  2177.  
  2178. runDummyScript(function()
  2179. MaxSpeed=0 -- changing this does nothing
  2180.  
  2181. function constant(engine)
  2182. engine.BodyVelocity.velocity=engine.CFrame.lookVector*MaxSpeed -- deffinitley leave alone
  2183.  
  2184. end
  2185.  
  2186. function check()
  2187. if (script.Parent.Throttle==1) then
  2188.  
  2189. MaxSpeed=24 -- change for speed
  2190. script.Parent.BodyVelocity.maxForce=Vector3.new(5e+005,0, 5e+005)
  2191.  
  2192. elseif(script.Parent.Throttle==-1) then
  2193.  
  2194. MaxSpeed=-24 -- change for speed in reverse
  2195. script.Parent.BodyVelocity.maxForce=Vector3.new(5e+005, 0, 5e+005)
  2196. elseif(script.Parent.Throttle==0) then
  2197. script.Parent.BodyVelocity.maxForce=Vector3.new(0,0,0)
  2198. end
  2199.  
  2200. if(script.Parent.Throttle== 0) then
  2201. MaxSpeed= 0 -- leave alone
  2202. end
  2203.  
  2204. if (script.Parent.Steer==-1) then
  2205.  
  2206. script.Parent.Turn.angularvelocity=Vector3.new(0,0.4,0) -- leave alone
  2207.  
  2208. elseif (script.Parent.Steer==1) then
  2209.  
  2210. script.Parent.Turn.angularvelocity=Vector3.new(0,-0.4,0) -- leave alone
  2211.  
  2212. elseif (script.Parent.Steer==0) then
  2213.  
  2214. script.Parent.Turn.angularvelocity=Vector3.new(0,0,0) -- leave alone
  2215.  
  2216. end
  2217. end
  2218.  
  2219. while true do
  2220. wait()
  2221. check()
  2222. constant(script.Parent)
  2223. end
  2224.  
  2225.  
  2226.  
  2227. end,o100)
  2228.  
  2229. o101.Name = "Turn"
  2230. o101.Parent = o99
  2231. o101.angularVelocity = Vector3.new(0, 0, 0)
  2232. o101.maxTorque = Vector3.new(0, 10000000, 0)
  2233. o101.P = 1.2500000250511e+20
  2234. o101.MaxTorque = Vector3.new(0, 10000000, 0)
  2235. o102.Name = "OnSeated!"
  2236. o102.Parent = o99
  2237.  
  2238. runDummyScript(function()
  2239. -- made by Weeve. for all of you lamo scripters out there, can you at least leave my name here?
  2240. -- don't edit anything here
  2241. seat = script.Parent
  2242.  
  2243. function onChildAdded(part)
  2244. if (part.className == "Weld") then
  2245. while true do
  2246. welde = seat:FindFirstChild("SeatWeld")
  2247.  
  2248. if (welde ~= nil) then
  2249. sitted = welde.Part1.Parent
  2250. end
  2251.  
  2252. if (sitted.Name ~= script.Parent.Owner.Value) then
  2253. if (script.Parent.Owner.Value == "NoOne") then
  2254. script.Parent.Owner.Value = sitted.Name
  2255. print ("sitted steal")
  2256. else
  2257. print ("stolen!!")
  2258. shipstealer = game.Workspace:FindFirstChild(sitted.Name)
  2259. if (shipstealer ~= nil) then
  2260. shipstealer.Humanoid.Jump=true
  2261. end
  2262. end
  2263. end
  2264.  
  2265.  
  2266. wait(0.2)
  2267.  
  2268. if (welde == nil) then
  2269. print("BreakLoop")
  2270. script.Parent.Owner.Value = "NoOne"
  2271. break end
  2272. end
  2273. end
  2274. end
  2275.  
  2276. --while true do
  2277. -- wait(0.5)
  2278. -- script.Parent.Parent.Name=script.Parent.Owner.Value .. "'s Ship"
  2279. --end
  2280. seat.ChildAdded:connect(onChildAdded)
  2281. --Weeve
  2282. end,o102)
  2283.  
  2284. o103.Name = "Owner"
  2285. o103.Parent = o99
  2286. o103.Value = "NoOne"
  2287. o104.Parent = o99
  2288. o104.Velocity = Vector3.new(0, 0, 0)
  2289. o104.velocity = Vector3.new(0, 0, 0)
  2290. o105.Name = "RecievePOWER"
  2291. o105.Parent = o99
  2292.  
  2293. runDummyScript(function()
  2294. function Seated(theSeated)
  2295. dude = game.Players:playerFromCharacter(theSeated.Part1.Parent)
  2296. if dude ~= nil then
  2297. thing2 = script.Parent.Turret1212:clone()
  2298. thing2.Parent = dude.Backpack
  2299. thing2.Vehicle.Value = script.Parent.Parent
  2300. end
  2301. end
  2302.  
  2303.  
  2304. function UNSeated(theSeated)
  2305. dude = game.Players:playerFromCharacter(theSeated.Part1.Parent)
  2306. if dude ~= nil then
  2307. if dude.Backpack:findFirstChild("Turret1212") ~= nil then
  2308. dude.Backpack:findFirstChild("Turret1212").Active = false
  2309. dude.Backpack:findFirstChild("Turret1212"):remove()
  2310. end
  2311. end
  2312. end
  2313.  
  2314. script.Parent.ChildAdded:connect(Seated)
  2315. script.Parent.ChildRemoved:connect(UNSeated)
  2316.  
  2317. end,o105)
  2318.  
  2319. o106.Name = "Turret1212"
  2320. o106.Parent = o99
  2321. o106.TextureId = "http://www.roblox.com/asset/?id=0"
  2322. o106.Selected = Signal Selected
  2323. o107.Parent = o106
  2324.  
  2325. runDummyScript(function()
  2326. firin = false
  2327. smoken = 0
  2328.  
  2329. function onB1D(mouse)
  2330. firin = true
  2331. smoken = 0
  2332. while firin do
  2333. wait(0.1)
  2334. if mouse.Target.Parent ~= script.Parent.Vehicle.Value and mouse.Target.Parent.Parent ~= script.Parent.Vehicle.Value then
  2335. script.Parent.Vehicle.Value.Barrel.Fire:play()
  2336. script.Parent.Vehicle.Value.Barrel.Transparency = 0.5
  2337. theTar = mouse.Hit.p + Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  2338. bull = Instance.new("Part")
  2339. bull.Parent = nil
  2340. bull.CFrame = CFrame.new((theTar + script.Parent.Vehicle.Value.Barrel.Position)/2,script.Parent.Vehicle.Value.Barrel.Position)
  2341. bull.CanCollide = false
  2342. bull.BrickColor = BrickColor.new(24)
  2343. bull.Anchored = true
  2344. bull.formFactor = 0
  2345. bull.Name = "Bullet"
  2346. bull.Size = Vector3.new(1,1,1)
  2347. mesher = Instance.new("BlockMesh")
  2348. mesher.Parent = bull
  2349. mesher.Scale = Vector3.new(0.12, 0.12, (mouse.Hit.p - script.Parent.Vehicle.Value.Barrel.Position).magnitude)
  2350. script.Cle:clone().Parent = bull
  2351. every = game.Workspace:GetChildren()
  2352. for thing = 1, #every do
  2353. if every[thing] ~= nil then
  2354. if every[thing].className == "Model" then
  2355. if every[thing]:findFirstChild("Torso") ~= nil then
  2356. if every[thing]:findFirstChild("Torso").className == "Part" then
  2357. if (every[thing]:findFirstChild("Torso").Position - theTar).magnitude < 2 then
  2358. if every[thing]:findFirstChild("Humanoid") ~= nil then
  2359. every[thing].Humanoid.Health = every[thing].Humanoid.Health - math.random(10, 12)
  2360. end
  2361. end
  2362. end
  2363. end
  2364. end
  2365. end
  2366. end
  2367. bull.Parent = game.Workspace
  2368. smoken = smoken + 1
  2369. if smoken > 10 then
  2370. script.Parent.Vehicle.Value.Barrel.Smoke.Enabled = true
  2371. end
  2372. script.Parent.Vehicle.Value.Barrel.Transparency = 0
  2373. end
  2374. end
  2375. end
  2376.  
  2377. function onB1U(mouse)
  2378. firin = false
  2379. smoken = 0
  2380. script.Parent.Vehicle.Value.Barrel.Smoke.Enabled = false
  2381. end
  2382.  
  2383. function onM(mouse)
  2384. if mouse.Target ~= nil then
  2385. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  2386. mouse.Icon = "http://www.roblox.com/asset/?id=23805077"
  2387. elseif mouse.Target.Parent:findFirstChild("Humanoid") == nil then
  2388. mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
  2389. end
  2390. elseif mouse.Target == nil then
  2391. mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
  2392. end
  2393. end
  2394.  
  2395.  
  2396. function onI(mouse)
  2397. if mouse.Target ~= nil then
  2398. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  2399. mouse.Icon = "http://www.roblox.com/asset/?id=23805077"
  2400. elseif mouse.Target.Parent:findFirstChild("Humanoid") == nil then
  2401. mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
  2402. end
  2403. elseif mouse.Target == nil then
  2404. mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
  2405. end
  2406. end
  2407.  
  2408.  
  2409. function onSele(mouse)
  2410. mouse.Button1Down:connect(function() onB1D(mouse) end)
  2411. mouse.Button1Up:connect(function() onB1U(mouse) end)
  2412. mouse.Move:connect(function() onM(mouse) end)
  2413. mouse.Idle:connect(function() onI(mouse) end)
  2414. mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
  2415. end
  2416.  
  2417. script.Parent.Selected:connect(onSele)
  2418.  
  2419. end,o107)
  2420.  
  2421. o108.Name = "Cle"
  2422. o108.Parent = o107
  2423.  
  2424. runDummyScript(function()
  2425. function ob()
  2426. if script.Parent.className == "Part" then
  2427. wait(0.001)
  2428. script.Parent:remove()
  2429. end
  2430. end
  2431.  
  2432. ob()
  2433.  
  2434. end,o108)
  2435.  
  2436. o109.Name = "Vehicle"
  2437. o109.Parent = o106
  2438. o110.Name = "OnSeated!"
  2439. o110.Parent = o99
  2440.  
  2441. runDummyScript(function()
  2442. -- made by Weeve. for all of you lamo scripters out there, can you at least leave my name here?
  2443. -- don't edit anything here
  2444. seat = script.Parent
  2445.  
  2446. function onChildAdded(part)
  2447. script.Parent.EngineSound:play()
  2448. end
  2449.  
  2450. function onChildRemoved(part)
  2451. script.Parent.EngineSound.Pitch = 0.9
  2452. wait(0.1)
  2453. script.Parent.EngineSound.Pitch = 0.8
  2454. wait(0.1)
  2455. script.Parent.EngineSound.Pitch = 0.7
  2456. wait(0.1)
  2457. script.Parent.EngineSound:stop()
  2458. script.Parent.EngineSound.Pitch = 1
  2459. end
  2460. seat.ChildAdded:connect(onChildAdded)
  2461. seat.ChildRemoved:connect(onChildRemoved)
  2462. --Weeve
  2463. end,o110)
  2464.  
  2465. o111.Name = "EnginesSidewards"
  2466. o111.Parent = o99
  2467.  
  2468. runDummyScript(function()
  2469. wait()
  2470. while true do
  2471.  
  2472. if script.Parent.Throttle == 1 or script.Parent.Throttle == -1 then
  2473. script.Parent.DriveSound:play()
  2474.  
  2475. elseif script.Parent.Steer == 1 or script.Parent.Steer == -1 then
  2476. script.Parent.DriveSound:play()
  2477.  
  2478. elseif script.Parent.Throttle == 0 then
  2479. script.Parent.DriveSound:stop()
  2480.  
  2481. elseif script.Parent.Steer == 0 then
  2482. script.Parent.DriveSound:stop()
  2483.  
  2484. end
  2485. wait(0.01)
  2486. end
  2487. end,o111)
  2488.  
  2489. o112.Name = "EngineSound"
  2490. o112.Parent = o99
  2491. o112.Pitch = 0.89999997615814
  2492. o112.SoundId = "http://www.roblox.com/asset/?id=145147769"
  2493. o112.Looped = true
  2494. o112.PlayOnRemove = true
  2495. o113.Name = "DriveSound"
  2496. o113.Parent = o99
  2497. o113.SoundId = "http://www.roblox.com/asset/?id=133089867"
  2498. o113.Volume = 1
  2499. o113.Looped = true
  2500. o113.PlayOnRemove = true
  2501. o114.Parent = o7
  2502. o114.Position = Vector3.new(-29.0028267, 3.61998606, -87.9034042)
  2503. o114.Rotation = Vector3.new(0, -0.00999999978, 0)
  2504. o114.Size = Vector3.new(4, 4.80000019, 5)
  2505. o114.CFrame = CFrame.new(-29.0028267, 3.61998606, -87.9034042, 1.00000632, -3.64163384e-08, -0.000198804919, 3.62873536e-08, 1, -6.79297159e-07, 0.000198805254, 6.7928778e-07, 1.00000632)
  2506. o114.Position = Vector3.new(-29.0028267, 3.61998606, -87.9034042)
  2507. o115.Name = "Wedge-to-Part Strong Joint"
  2508. o115.Parent = o114
  2509. o115.C0 = CFrame.new(-2, -2.4000001, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2510. o115.C1 = CFrame.new(-2.00031281, -2.40001678, -2.50250244, 1, 3.91511878e-10, 1.2456252e-08, -3.91511878e-10, 1, -3.19005267e-10, -1.2456252e-08, 3.19005267e-10, 1)
  2511. o115.Part0 = o114
  2512. o115.Part1 = o72
  2513. o116.Parent = o7
  2514. o116.Position = Vector3.new(-18.3978329, 3.62000537, -77.7955933)
  2515. o116.Rotation = Vector3.new(-180, 0.00999999978, 180)
  2516. o116.Size = Vector3.new(4, 4.80000019, 5.19999981)
  2517. o116.CFrame = CFrame.new(-18.3978329, 3.62000537, -77.7955933, -1.00000632, -3.74815556e-08, 0.000199097791, -3.73528444e-08, 1, 6.76944069e-07, -0.000199098125, 6.76934405e-07, -1.00000632)
  2518. o116.BackSurface = Enum.SurfaceType.Weld
  2519. o116.Position = Vector3.new(-18.3978329, 3.62000537, -77.7955933)
  2520. o117.Parent = o7
  2521. o117.Position = Vector3.new(-29.0040436, 3.61998701, -77.8991776)
  2522. o117.Rotation = Vector3.new(-180, 0.00999999978, 180)
  2523. o117.Size = Vector3.new(4, 4.80000019, 5)
  2524. o117.CFrame = CFrame.new(-29.0040436, 3.61998701, -77.8991776, -1.00000632, -3.63755071e-08, 0.000198805137, -3.62465364e-08, 1, 6.79243669e-07, -0.000198805472, 6.79234347e-07, -1.00000632)
  2525. o117.Position = Vector3.new(-29.0040436, 3.61998701, -77.8991776)
  2526. o118.Name = "Wedge-to-Part Strong Joint"
  2527. o118.Parent = o117
  2528. o118.C0 = CFrame.new(-2, -2.4000001, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2529. o118.C1 = CFrame.new(2.00045776, -2.40000916, 2.50166321, -1, 4.32329839e-10, -1.2237857e-08, 4.32329839e-10, 1, 2.65515609e-10, 1.2237857e-08, 2.65515609e-10, -1)
  2530. o118.Part0 = o117
  2531. o118.Part1 = o72
  2532. o119.Parent = o7
  2533. o119.Position = Vector3.new(-18.3964367, 3.61992145, -87.8004837)
  2534. o119.Rotation = Vector3.new(0, -0.00999999978, 0)
  2535. o119.Size = Vector3.new(4, 4.80000019, 4.80000019)
  2536. o119.CFrame = CFrame.new(-18.3964367, 3.61992145, -87.8004837, 1.00000632, -3.81191647e-08, -0.000199119255, 3.79904783e-08, 1, -6.7672903e-07, 0.00019911959, 6.76719253e-07, 1.00000632)
  2537. o119.BackSurface = Enum.SurfaceType.Weld
  2538. o119.Position = Vector3.new(-18.3964367, 3.61992145, -87.8004837)
  2539. mas.Parent = workspace
  2540. mas:MakeJoints()
  2541. local mas1 = mas:GetChildren()
  2542. for i=1,#mas1 do
  2543. mas1[i].Parent = script
  2544. ypcall(function() mas1[i]:MakeJoints() end)
  2545. end
  2546. mas:Destroy()
  2547. for i=1,#cors do
  2548. coroutine.resume(cors[i])
  2549. end
  2550. mess_handle.Text = "Resetting"
  2551. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  2552. v:LoadCharacter()
  2553. end
  2554. wait(1)
  2555. mess_handle:Remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement