Advertisement
brainaqweqww

Untitled

Feb 13th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.51 KB | None | 0 0
  1. -- It's a telephone booth... Or is it?
  2. -- lego
  3. -- Variable initialization.
  4.  
  5. ExteriorOffset = Vector3.new(math.random(-5000, 5000), math.random(5000, 10000), math.random(-5000, 5000))
  6. ExteriorVelocityTarget = Vector3.new()
  7. ExteriorVelocityTargetSpeed = 0
  8.  
  9. DoorDebounce = true
  10. DoorLocked = false
  11. DoorOpen = false
  12.  
  13. DamageMaxHealth = 54000
  14. DamageHealth = DamageMaxHealth
  15. DamageCanHit = false
  16. DamageEffect = {}
  17. DamageEffectPart = {}
  18.  
  19. FlyPlayer = nil
  20. Flying = false
  21. FlySpeed = 30
  22. FlyStabalize = true
  23.  
  24. WeaponPlayer = nil
  25.  
  26. RepairPlayer = nil
  27. RepairParts = {}
  28. RepairWelds = {}
  29.  
  30. EnergyPlayer = nil
  31. EnergyMax = 3
  32. EnergyToWeapon = 0
  33. EnergyToShield = 1
  34. EnergyToFly = 1
  35. EnergyToTeleport = 1
  36. EnergyToRepair = 0
  37.  
  38. TeleportPlayer = nil
  39. TeleportReady = true
  40. TeleportWaypoints = {
  41. "Center", Vector3.new(0, 0, 20),
  42. "Edge of Base (1000x1000)", Vector3.new(494, 0, 494)
  43. }
  44.  
  45. RadarPlayer = nil
  46. RadarMaxDistance = 100
  47.  
  48. -- Damage Effect base creation.
  49.  
  50. DamageEffectBase = Instance.new("Part")
  51. DamageEffectBase.Name = "Damage Effect"
  52. DamageEffectBase.Transparency = 1
  53. DamageEffectBase.CanCollide = false
  54. DamageEffectBase.Anchored = true
  55. DamageEffectBase.Locked = true
  56. DamageEffectBase.TopSurface = 0
  57. DamageEffectBase.BottomSurface = 0
  58. DamageEffectBase.formFactor = "Custom"
  59. DamageEffectBase.Size = Vector3.new(0.2, 0.2, 0.2)
  60. Fire = Instance.new("Fire", DamageEffectBase)
  61. Fire.Enabled = false
  62. Fire.Heat = 1
  63. Fire.Size = 1
  64. Smoke = Instance.new("Smoke", DamageEffectBase)
  65. Smoke.Enabled = false
  66. Smoke.RiseVelocity = 1
  67. Smoke.Size = 1
  68.  
  69. -- Model initialization.
  70.  
  71. TARDIS = Instance.new("Model", game:service("Workspace"))
  72. TARDIS.Name = "TARDIS"
  73.  
  74. TeleportValue = Instance.new("Vector3Value", TARDIS)
  75. TeleportValue.Name = "Teleport"
  76. TeleportValue.Changed:connect(function()
  77. Teleport(TeleportValue.Value)
  78. end)
  79.  
  80. FlyValue = Instance.new("Vector3Value", TARDIS)
  81. FlyValue.Name = "Fly"
  82. FlyValue.Changed:connect(function()
  83. Flying = true
  84. ExteriorVelocityTarget = FlyValue.Value * FlySpeed
  85. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  86. end)
  87.  
  88. StabalizeValue = Instance.new("BoolValue", TARDIS)
  89. StabalizeValue.Name = "Stabalize"
  90. StabalizeValue.Changed:connect(function()
  91. if StabalizeValue == true then
  92. ExteriorGyro.maxTorque = Vector3.new(math.huge, 0, math.huge)
  93. StabalizeValue.Value = false
  94. FlyStabalize = true
  95. end
  96. end)
  97.  
  98. DestabalizeValue = Instance.new("BoolValue", TARDIS)
  99. DestabalizeValue.Name = "Destbalize"
  100. DestabalizeValue.Changed:connect(function()
  101. if DestabalizeValue.Value == true then
  102. ExteriorGyro.maxTorque = Vector3.new(0, 0, 0)
  103. DestabalizeValue.Value = false
  104. FlyStabalize = false
  105. end
  106. end)
  107.  
  108. Interior = Instance.new("Model", TARDIS)
  109. Interior.Name = "Interior"
  110.  
  111. Exterior = Instance.new("Model", TARDIS)
  112. Exterior.Name = "Exterior"
  113.  
  114. -- Interior.
  115.  
  116. Base = Instance.new("Part", Interior)
  117. Base.Name = "Base"
  118. Base.BrickColor = BrickColor.new("Black")
  119. Base.TopSurface = 0
  120. Base.BottomSurface = 0
  121. Base.Locked = true
  122. Base.formFactor = "Custom"
  123. Base.Size = Vector3.new(100, 1, 100)
  124.  
  125. Wall = Base:Clone()
  126. Wall.Name = "Wall"
  127. Wall.BrickColor = BrickColor.new("Pastel brown")
  128. Wall.Size = Vector3.new(17.5, 15, 1)
  129. Wall.Anchored = false
  130.  
  131. for i = 0, 360, 20 do
  132. Wall1 = Wall:Clone()
  133. Wall1.Parent = Interior
  134. Wall1.Size = Vector3.new(5, 5, 0.2)
  135. Wall1.BrickColor = BrickColor.new("Dark stone grey")
  136. Wall2 = Wall:Clone()
  137. Wall2.Parent = Interior
  138. Weld = Instance.new("Weld", Wall1)
  139. Weld.Part0 = Wall2
  140. Weld.Part1 = Weld.Parent
  141. Weld.C0 = CFrame.new(0, 0, -0.7)
  142. Weld = Instance.new("Weld", Wall2)
  143. Weld.Part0 = Base
  144. Weld.Part1 = Weld.Parent
  145. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 100 / 2.05, 15 / 2 + 0.5, math.cos(math.rad(i)) * 100 / 2.05) * CFrame.fromEulerAnglesXYZ(0, math.rad(i), 0)
  146. end
  147.  
  148. for i = 0, 360, 20 do
  149. Wall1 = Wall:Clone()
  150. Wall1.Parent = Interior
  151. Wall1.Size = Vector3.new(5, 5, 0.2)
  152. Wall1.BrickColor = BrickColor.new("Dark stone grey")
  153. Wall2 = Wall:Clone()
  154. Wall2.Parent = Interior
  155. Weld = Instance.new("Weld", Wall1)
  156. Weld.Part0 = Wall2
  157. Weld.Part1 = Weld.Parent
  158. Weld.C0 = CFrame.new(0, 0, -0.7)
  159. Weld = Instance.new("Weld", Wall2)
  160. Weld.Part0 = Base
  161. Weld.Part1 = Weld.Parent
  162. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 100 / 2.25, 15 * 2 / 1.5, math.cos(math.rad(i)) * 100 / 2.25) * CFrame.fromEulerAnglesXYZ(0, math.rad(i), 0)
  163. Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0)
  164. end
  165.  
  166. for i = 0, 360, 20 do
  167. Wall1 = Wall:Clone()
  168. Wall1.Parent = Interior
  169. Wall1.Size = Vector3.new(27.5, 45, 1)
  170. Weld = Instance.new("Weld", Wall1)
  171. Weld.Part0 = Base
  172. Weld.Part1 = Weld.Parent
  173. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 20, 32 + 0.5, math.cos(math.rad(i)) * 20) * CFrame.fromEulerAnglesXYZ(0, math.rad(i), 0)
  174. Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(67.5), 0, 0)
  175. for x = 0, 2, 2 do
  176. Wall2 = Wall:Clone()
  177. Wall2.Parent = Interior
  178. Wall2.Size = Vector3.new(5, 5, 0.2)
  179. Wall2.BrickColor = BrickColor.new("Dark stone grey")
  180. Weld = Instance.new("Weld", Wall2)
  181. Weld.Part0 = Wall1
  182. Weld.Part1 = Weld.Parent
  183. Weld.C0 = CFrame.new(0, 7.5 * x - 7.5 * 2, -0.7)
  184. end
  185. end
  186.  
  187. Wall.Parent = Interior
  188. Wall.Size = Vector3.new(35, 1, 35)
  189. Weld = Instance.new("Weld", Wall)
  190. Weld.Part0 = Base
  191. Weld.Part1 = Weld.Parent
  192. Weld.C0 = CFrame.new(0, 35, 0)
  193.  
  194. Floor = Wall:Clone()
  195. Floor.Parent = Interior
  196. Floor.Name = "Floor"
  197. Floor.BrickColor = BrickColor.new("Medium stone grey")
  198. Floor.Size = Vector3.new(100, 3, 25)
  199. Weld = Instance.new("Weld", Floor)
  200. Weld.Part0 = Base
  201. Weld.Part1 = Weld.Parent
  202. Weld.C0 = CFrame.new(0, 3 / 2, 0)
  203.  
  204. Floor = Floor:Clone()
  205. Floor.Parent = Interior
  206. Weld = Instance.new("Weld", Floor)
  207. Weld.Part0 = Base
  208. Weld.Part1 = Weld.Parent
  209. Weld.C0 = CFrame.new(0, 3 / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  210.  
  211. Floor = Instance.new("TrussPart", Interior)
  212. Floor.Name = "Floor Ladder"
  213. Floor.BrickColor = BrickColor.new("Black")
  214. Floor.TopSurface = 0
  215. Floor.BottomSurface = 0
  216. Floor.Locked = true
  217. Floor.Size = Vector3.new(15, 2, 2)
  218. Weld = Instance.new("Weld", Floor)
  219. Weld.Part0 = Base
  220. Weld.Part1 = Weld.Parent
  221. Weld.C0 = CFrame.new(30, 0.5, -30) * CFrame.fromEulerAnglesXYZ(0, math.rad(45), 0)
  222.  
  223. Floor = Floor:Clone()
  224. Floor.Parent = Interior
  225. Weld = Instance.new("Weld", Floor)
  226. Weld.Part0 = Base
  227. Weld.Part1 = Weld.Parent
  228. Weld.C0 = CFrame.new(-30, 0.5, -30) * CFrame.fromEulerAnglesXYZ(0, math.rad(135), 0)
  229.  
  230. Floor = Floor:Clone()
  231. Floor.Parent = Interior
  232. Weld = Instance.new("Weld", Floor)
  233. Weld.Part0 = Base
  234. Weld.Part1 = Weld.Parent
  235. Weld.C0 = CFrame.new(-30, 0.5, 30) * CFrame.fromEulerAnglesXYZ(0, math.rad(225), 0)
  236.  
  237. Floor = Floor:Clone()
  238. Floor.Parent = Interior
  239. Weld = Instance.new("Weld", Floor)
  240. Weld.Part0 = Base
  241. Weld.Part1 = Weld.Parent
  242. Weld.C0 = CFrame.new(30, 0.5, 30) * CFrame.fromEulerAnglesXYZ(0, math.rad(315), 0)
  243.  
  244. Floor = Instance.new("WedgePart", Interior)
  245. Floor.Name = "Floor"
  246. Floor.BrickColor = BrickColor.new("Medium stone grey")
  247. Floor.TopSurface = 0
  248. Floor.BottomSurface = 0
  249. Floor.Locked = true
  250. Floor.formFactor = "Custom"
  251. Floor.Size = Vector3.new(100, 3, 5)
  252. Weld = Instance.new("Weld", Floor)
  253. Weld.Part0 = Base
  254. Weld.Part1 = Weld.Parent
  255. Weld.C0 = CFrame.new(0, 3 / 2, -25 / 2 - 5 / 2)
  256.  
  257. Floor = Floor:Clone()
  258. Floor.Parent = Interior
  259. Weld = Instance.new("Weld", Floor)
  260. Weld.Part0 = Base
  261. Weld.Part1 = Weld.Parent
  262. Weld.C0 = CFrame.new(0, 3 / 2, 25 / 2 + 5 / 2) * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  263.  
  264. Floor = Floor:Clone()
  265. Floor.Parent = Interior
  266. Weld = Instance.new("Weld", Floor)
  267. Weld.Part0 = Base
  268. Weld.Part1 = Weld.Parent
  269. Weld.C0 = CFrame.new(-25 / 2 - 5 / 2, 3 / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  270.  
  271. Floor = Floor:Clone()
  272. Floor.Parent = Interior
  273. Weld = Instance.new("Weld", Floor)
  274. Weld.Part0 = Base
  275. Weld.Part1 = Weld.Parent
  276. Weld.C0 = CFrame.new(25 / 2 + 5 / 2, 3 / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(270), 0)
  277.  
  278. FloorCenter = Wall:Clone()
  279. FloorCenter.Parent = Interior
  280. FloorCenter.Name = "Floor Center"
  281. FloorCenter.BrickColor = BrickColor.new("Light stone grey")
  282. FloorCenter.Size = Vector3.new(25, 1, 25)
  283. Weld = Instance.new("Weld", FloorCenter)
  284. Weld.Part0 = Base
  285. Weld.Part1 = Weld.Parent
  286. Weld.C0 = CFrame.new(0, 3.5, 0)
  287.  
  288. ConsoleBase = Wall:Clone()
  289. ConsoleBase.Parent = Interior
  290. ConsoleBase.Name = "Console Base"
  291. ConsoleBase.Size = Vector3.new(10, 3, 10)
  292. Mesh = Instance.new("CylinderMesh", ConsoleBase)
  293. Weld = Instance.new("Weld", ConsoleBase)
  294. Weld.Part0 = FloorCenter
  295. Weld.Part1 = Weld.Parent
  296. Weld.C0 = CFrame.new(0, 2, 0)
  297.  
  298. for i = 0, 360, 360 / 6 do
  299. ConsoleArm = Floor:Clone()
  300. ConsoleArm.Parent = Interior
  301. ConsoleArm.Name = "Console Arm"
  302. ConsoleArm.BrickColor = BrickColor.new("Black")
  303. ConsoleArm.Size = Vector3.new(1, 2, 3)
  304. Weld = Instance.new("Weld", ConsoleArm)
  305. Weld.Part0 = ConsoleBase
  306. Weld.Part1 = Weld.Parent
  307. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 3.5, 2.5, math.cos(math.rad(i)) * 3.5) * CFrame.fromEulerAnglesXYZ(0, math.rad(i + 180), 0)
  308. end
  309.  
  310. ConsoleSupport = ConsoleBase:Clone()
  311. ConsoleSupport.Parent = Interior
  312. ConsoleSupport.Name = "Console Support"
  313. ConsoleSupport.Size = Vector3.new(4.25, 2, 4.25)
  314. Weld = Instance.new("Weld", ConsoleSupport)
  315. Weld.Part0 = ConsoleBase
  316. Weld.Part1 = Weld.Parent
  317. Weld.C0 = CFrame.new(0, 2.5, 0)
  318.  
  319. TeleportTelevision = Wall:Clone()
  320. TeleportTelevision.Parent = Interior
  321. TeleportTelevision.Name = "Teleport Television"
  322. TeleportTelevision.BrickColor = BrickColor.new("Really black")
  323. TeleportTelevision.Size = Vector3.new(1.5, 1.5, 1.5)
  324. Mesh = Instance.new("SpecialMesh", TeleportTelevision)
  325. Mesh.MeshType = "FileMesh"
  326. Mesh.MeshId = "http://www.roblox.com/Asset/?id=11641931"
  327. Mesh.TextureId = "http://www.roblox.com/Asset/?id=11641912"
  328. Weld = Instance.new("Weld", TeleportTelevision)
  329. Weld.Part0 = ConsoleBase
  330. Weld.Part1 = Weld.Parent
  331. Weld.C0 = CFrame.new(-3.35, 2.15, 0.25) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  332.  
  333. TeleportTelevisionScreen = Wall:Clone()
  334. TeleportTelevisionScreen.Parent = Interior
  335. TeleportTelevisionScreen.Name = "Teleport Television Screen"
  336. TeleportTelevisionScreen.BrickColor = BrickColor.new("Really black")
  337. TeleportTelevisionScreen.Size = Vector3.new(1.15, 1, 0.5)
  338. Weld = Instance.new("Weld", TeleportTelevisionScreen)
  339. Weld.Part0 = TeleportTelevision
  340. Weld.Part1 = Weld.Parent
  341. Weld.C0 = CFrame.new(0, 0, -0.35)
  342. coroutine.wrap(function()
  343. while true do
  344. if TeleportTelevisionScreen:FindFirstChild("Weld") == nil or TeleportPlayer == nil then
  345. TeleportTelevisionScreen.BrickColor = BrickColor.new("Really black")
  346. TeleportTelevisionScreen.Reflectance = 0.1
  347. else
  348. TeleportTelevisionScreen.BrickColor = BrickColor.random()
  349. TeleportTelevisionScreen.Reflectance = math.random(0, 100) / 100
  350. wait(math.random(100, 1000) / 7500)
  351. end
  352. wait()
  353. end
  354. end)()
  355.  
  356. TeleportKeypad = Wall:Clone()
  357. TeleportKeypad.Parent = Interior
  358. TeleportKeypad.Name = "Teleport Keypad"
  359. TeleportKeypad.BrickColor = BrickColor.new("Dark stone grey")
  360. TeleportKeypad.Size = Vector3.new(1, 1, 1)
  361. Mesh = Instance.new("SpecialMesh", TeleportKeypad)
  362. Mesh.MeshType = "Wedge"
  363. Weld = Instance.new("Weld", TeleportKeypad)
  364. Weld.Part0 = TeleportTelevision
  365. Weld.Part1 = Weld.Parent
  366. Weld.C0 = CFrame.new(1.25, -0.15, -0.5)
  367.  
  368. for x = -0.4, 0.4, 0.4 do
  369. for y = -0.4, 0.4, 0.26 do
  370. if not (y == -0.4 and x ~= 0) then
  371. TeleportKey = Wall:Clone()
  372. TeleportKey.Parent = Interior
  373. TeleportKey.Name = "Teleport Key"
  374. TeleportKey.BrickColor = BrickColor.new("Dark stone grey")
  375. TeleportKey.Size = Vector3.new(0.2, 0.2, 0.2)
  376. Mesh = Instance.new("SpecialMesh", TeleportKeypad)
  377. Mesh.MeshType = "Wedge"
  378. Weld = Instance.new("Weld", TeleportKey)
  379. Weld.Part0 = TeleportKeypad
  380. Weld.Part1 = Weld.Parent
  381. Weld.C0 = CFrame.new(x * 0.9, y * 0.9, y) * CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0)
  382. end
  383. end
  384. end
  385.  
  386. RadarTelevision = Wall:Clone()
  387. RadarTelevision.Parent = Interior
  388. RadarTelevision.Name = "Radar Television"
  389. RadarTelevision.BrickColor = BrickColor.new("Really black")
  390. RadarTelevision.Size = Vector3.new(2, 2, 1.5)
  391. Mesh = Instance.new("SpecialMesh", RadarTelevision)
  392. Mesh.MeshType = "FileMesh"
  393. Mesh.MeshId = "http://www.roblox.com/Asset/?id=11641883"
  394. Mesh.TextureId = "http://www.roblox.com/Asset/?id=11641873"
  395. Weld = Instance.new("Weld", RadarTelevision)
  396. Weld.Part0 = ConsoleBase
  397. Weld.Part1 = Weld.Parent
  398. rad = math.rad(360 / 6 / 2)
  399. Weld.C0 = CFrame.new(math.sin(rad) * 3, 2.5, math.cos(rad) * 3) * CFrame.fromEulerAnglesXYZ(0, rad + math.rad(180), 0)
  400.  
  401. RadarTelevisionScreen = Wall:Clone()
  402. RadarTelevisionScreen.Parent = Interior
  403. RadarTelevisionScreen.Name = "Radar Television Screen"
  404. RadarTelevisionScreen.BrickColor = BrickColor.new("Really black")
  405. RadarTelevisionScreen.Size = Vector3.new(1.85, 0.8, 1.35)
  406. Weld = Instance.new("Weld", RadarTelevisionScreen)
  407. Weld.Part0 = RadarTelevision
  408. Weld.Part1 = Weld.Parent
  409. Weld.C0 = CFrame.new(0, -0.1, 0)
  410. coroutine.wrap(function()
  411. while true do
  412. if RadarTelevisionScreen:FindFirstChild("Weld") == nil or RadarPlayer == nil then
  413. RadarTelevisionScreen.BrickColor = BrickColor.new("Really black")
  414. RadarTelevisionScreen.Reflectance = 0.1
  415. else
  416. RadarTelevisionScreen.BrickColor = BrickColor.random()
  417. RadarTelevisionScreen.Reflectance = math.random(0, 100) / 100
  418. wait(math.random(100, 1000) / 7500)
  419. end
  420. wait()
  421. end
  422. end)()
  423.  
  424. FlyMonitorBase = Wall:Clone()
  425. FlyMonitorBase.Parent = Interior
  426. FlyMonitorBase.Name = "Fly Monitor Base"
  427. FlyMonitorBase.BrickColor = BrickColor.new("Dark stone grey")
  428. FlyMonitorBase.Size = Vector3.new(1.5, 0.25, 1)
  429. Weld = Instance.new("Weld", FlyMonitorBase)
  430. Weld.Part0 = ConsoleBase
  431. Weld.Part1 = Weld.Parent
  432. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 5)
  433. Weld.C0 = CFrame.new(math.sin(rad) * 3, 1.625, math.cos(rad) * 3.25) * CFrame.fromEulerAnglesXYZ(0, rad + math.rad(180), 0)
  434.  
  435. FlyMonitorStand = Wall:Clone()
  436. FlyMonitorStand.Parent = Interior
  437. FlyMonitorStand.Name = "Fly Monitor Stand"
  438. FlyMonitorStand.BrickColor = BrickColor.new("Dark stone grey")
  439. FlyMonitorStand.Size = Vector3.new(0.5, 1, 0.2)
  440. Weld = Instance.new("Weld", FlyMonitorStand)
  441. Weld.Part0 = FlyMonitorBase
  442. Weld.Part1 = Weld.Parent
  443. Weld.C0 = CFrame.new(0, 0.625, 0.25)
  444.  
  445. FlyMonitorScreenBack = Wall:Clone()
  446. FlyMonitorScreenBack.Parent = Interior
  447. FlyMonitorScreenBack.Name = "Fly Monitor Screen Back"
  448. FlyMonitorScreenBack.BrickColor = BrickColor.new("Dark stone grey")
  449. FlyMonitorScreenBack.Size = Vector3.new(2.5, 2, 0.2)
  450. Weld = Instance.new("Weld", FlyMonitorScreenBack)
  451. Weld.Part0 = FlyMonitorStand
  452. Weld.Part1 = Weld.Parent
  453. Weld.C0 = CFrame.new(0, 1.25, -0.2)
  454.  
  455. FlyMonitorScreenEdge = Wall:Clone()
  456. FlyMonitorScreenEdge.Parent = Interior
  457. FlyMonitorScreenEdge.Name = "Fly Monitor Screen Edge"
  458. FlyMonitorScreenEdge.BrickColor = BrickColor.new("Dark stone grey")
  459. FlyMonitorScreenEdge.Size = Vector3.new(2.5, 0.2, 0.2)
  460. Weld = Instance.new("Weld", FlyMonitorScreenEdge)
  461. Weld.Part0 = FlyMonitorScreenBack
  462. Weld.Part1 = Weld.Parent
  463. Weld.C0 = CFrame.new(0, 0.9, -0.2)
  464.  
  465. FlyMonitorScreenEdge = Wall:Clone()
  466. FlyMonitorScreenEdge.Parent = Interior
  467. FlyMonitorScreenEdge.Name = "Fly Monitor Screen Edge"
  468. FlyMonitorScreenEdge.BrickColor = BrickColor.new("Dark stone grey")
  469. FlyMonitorScreenEdge.Size = Vector3.new(2.5, 0.2, 0.2)
  470. Weld = Instance.new("Weld", FlyMonitorScreenEdge)
  471. Weld.Part0 = FlyMonitorScreenBack
  472. Weld.Part1 = Weld.Parent
  473. Weld.C0 = CFrame.new(0, -0.9, -0.2)
  474.  
  475. FlyMonitorScreenEdge = Wall:Clone()
  476. FlyMonitorScreenEdge.Parent = Interior
  477. FlyMonitorScreenEdge.Name = "Fly Monitor Screen Edge"
  478. FlyMonitorScreenEdge.BrickColor = BrickColor.new("Dark stone grey")
  479. FlyMonitorScreenEdge.Size = Vector3.new(0.2, 2, 0.2)
  480. Weld = Instance.new("Weld", FlyMonitorScreenEdge)
  481. Weld.Part0 = FlyMonitorScreenBack
  482. Weld.Part1 = Weld.Parent
  483. Weld.C0 = CFrame.new(1.15, 0, -0.2)
  484.  
  485. FlyMonitorScreenEdge = Wall:Clone()
  486. FlyMonitorScreenEdge.Parent = Interior
  487. FlyMonitorScreenEdge.Name = "Fly Monitor Screen Edge"
  488. FlyMonitorScreenEdge.BrickColor = BrickColor.new("Dark stone grey")
  489. FlyMonitorScreenEdge.Size = Vector3.new(0.2, 2, 0.2)
  490. Weld = Instance.new("Weld", FlyMonitorScreenEdge)
  491. Weld.Part0 = FlyMonitorScreenBack
  492. Weld.Part1 = Weld.Parent
  493. Weld.C0 = CFrame.new(-1.15, 0, -0.2)
  494.  
  495. FlyMonitorScreen = Wall:Clone()
  496. FlyMonitorScreen.Parent = Interior
  497. FlyMonitorScreen.Name = "Fly Monitor Screen"
  498. FlyMonitorScreen.BrickColor = BrickColor.new("Really black")
  499. FlyMonitorScreen.Size = Vector3.new(2.4, 1.6, 0.2)
  500. Weld = Instance.new("Weld", FlyMonitorScreen)
  501. Weld.Part0 = FlyMonitorScreenBack
  502. Weld.Part1 = Weld.Parent
  503. Weld.C0 = CFrame.new(0, 0, -0.1)
  504. coroutine.wrap(function()
  505. while true do
  506. if FlyMonitorScreen:FindFirstChild("Weld") == nil or FlyPlayer == nil then
  507. FlyMonitorScreen.BrickColor = BrickColor.new("Really black")
  508. FlyMonitorScreen.Reflectance = 0.1
  509. else
  510. FlyMonitorScreen.BrickColor = BrickColor.random()
  511. FlyMonitorScreen.Reflectance = math.random(0, 100) / 100
  512. wait(math.random(100, 1000) / 7500)
  513. end
  514. wait()
  515. end
  516. end)()
  517.  
  518. WeaponStand = Wall:Clone()
  519. WeaponStand.Parent = Interior
  520. WeaponStand.Name = "Weapon Stand"
  521. WeaponStand.Size = Vector3.new(0.3, 1.5, 0.2)
  522. WeaponStand.BrickColor = BrickColor.new("Black")
  523. Weld = Instance.new("Weld", WeaponStand)
  524. Weld.Part0 = ConsoleBase
  525. Weld.Part1 = Weld.Parent
  526. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 1)
  527. Weld.C0 = CFrame.new(math.sin(rad) * 4.625, 2.25, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  528.  
  529. WeaponBinoculars = Wall:Clone()
  530. WeaponBinoculars.Parent = Interior
  531. WeaponBinoculars.Name = "Weapon Binoculars"
  532. WeaponBinoculars.Parent = Interior
  533. WeaponBinoculars.Size = Vector3.new(2, 0.5, 1.5)
  534. Mesh = Instance.new("SpecialMesh", WeaponBinoculars)
  535. Mesh.MeshType = "FileMesh"
  536. Mesh.MeshId = "http://www.roblox.com/Asset/?id=27039535"
  537. Mesh.TextureId = "http://www.roblox.com/Asset/?id=27039641"
  538. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  539. Weld = Instance.new("Weld", WeaponBinoculars)
  540. Weld.Part0 = ConsoleBase
  541. Weld.Part1 = Weld.Parent
  542. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 1)
  543. Weld.C0 = CFrame.new(math.sin(rad) * 4.75, 2.75, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  544.  
  545. WeaponJoystickBase = Wall:Clone()
  546. WeaponJoystickBase.Parent = Interior
  547. WeaponJoystickBase.Name = "Weapon Joystick Base"
  548. WeaponJoystickBase.BrickColor = BrickColor.new("Really black")
  549. WeaponJoystickBase.Size = Vector3.new(0.8, 0.2, 0.8)
  550. Weld = Instance.new("Weld", WeaponJoystickBase)
  551. Weld.Part0 = WeaponStand
  552. Weld.Part1 = Weld.Parent
  553. Weld.C0 = CFrame.new(1.25, -0.65, -0.3)
  554.  
  555. WeaponJoystick = Wall:Clone()
  556. WeaponJoystick.Parent = Interior
  557. WeaponJoystick.Name = "Weapon Joystick"
  558. WeaponJoystick.BrickColor = BrickColor.new("Really black")
  559. WeaponJoystick.Size = Vector3.new(0.3, 1, 0.3)
  560. Mesh = Instance.new("CylinderMesh", WeaponJoystick)
  561. Weld = Instance.new("Weld", WeaponJoystick)
  562. Weld.Part0 = WeaponJoystickBase
  563. Weld.Part1 = Weld.Parent
  564. Weld.C0 = CFrame.new(0, 0.6, 0)
  565.  
  566. WeaponJoystickButton = WeaponJoystick:Clone()
  567. WeaponJoystickButton.Parent = Interior
  568. WeaponJoystickButton.Name = "Weapon Joystick Button"
  569. WeaponJoystickButton.BrickColor = BrickColor.new("Really red")
  570. WeaponJoystickButton.Size = Vector3.new(0.2, 0.2, 0.2)
  571. Weld = Instance.new("Weld", WeaponJoystickButton)
  572. Weld.Part0 = WeaponJoystickBase
  573. Weld.Part1 = Weld.Parent
  574. Weld.C0 = CFrame.new(-0.25, 0.2, 0.25)
  575.  
  576. WeaponJoystickBase2 = Wall:Clone()
  577. WeaponJoystickBase2.Parent = Interior
  578. WeaponJoystickBase2.Name = "Weapon Joystick Base"
  579. WeaponJoystickBase2.BrickColor = BrickColor.new("Really black")
  580. WeaponJoystickBase2.Size = Vector3.new(0.8, 0.2, 0.8)
  581. Weld = Instance.new("Weld", WeaponJoystickBase2)
  582. Weld.Part0 = WeaponStand
  583. Weld.Part1 = Weld.Parent
  584. Weld.C0 = CFrame.new(-1.25, -0.65, -0.3)
  585.  
  586. WeaponJoystick2 = Wall:Clone()
  587. WeaponJoystick2.Parent = Interior
  588. WeaponJoystick2.Name = "Weapon Joystick"
  589. WeaponJoystick2.BrickColor = BrickColor.new("Really black")
  590. WeaponJoystick2.Size = Vector3.new(0.3, 1, 0.3)
  591. Mesh = Instance.new("CylinderMesh", WeaponJoystick2)
  592. Weld = Instance.new("Weld", WeaponJoystick2)
  593. Weld.Part0 = WeaponJoystickBase2
  594. Weld.Part1 = Weld.Parent
  595. Weld.C0 = CFrame.new(0, 0.6, 0)
  596.  
  597. WeaponJoystickButton2 = WeaponJoystick2:Clone()
  598. WeaponJoystickButton2.Parent = Interior
  599. WeaponJoystickButton2.Name = "Weapon Joystick Button"
  600. WeaponJoystickButton2.BrickColor = BrickColor.new("Really red")
  601. WeaponJoystickButton2.Size = Vector3.new(0.2, 0.2, 0.2)
  602. Weld = Instance.new("Weld", WeaponJoystickButton2)
  603. Weld.Part0 = WeaponJoystickBase2
  604. Weld.Part1 = Weld.Parent
  605. Weld.C0 = CFrame.new(0.25, 0.2, 0.25)
  606.  
  607. EnergyTelevision = Wall:Clone()
  608. EnergyTelevision.Parent = Interior
  609. EnergyTelevision.Name = "Energy Television"
  610. EnergyTelevision.BrickColor = BrickColor.new("Really black")
  611. EnergyTelevision.Size = Vector3.new(2.25, 2, 1)
  612. Mesh = Instance.new("SpecialMesh", EnergyTelevision)
  613. Mesh.MeshType = "FileMesh"
  614. Mesh.Scale = Vector3.new(1.5, 1.5, 0.5)
  615. Mesh.MeshId = "http://www.roblox.com/Asset/?id=11641931"
  616. Mesh.TextureId = "http://www.roblox.com/Asset/?id=11641912"
  617. Mesh.VertexColor = Vector3.new(0.5, 0.5, 0.5)
  618. Weld = Instance.new("Weld", EnergyTelevision)
  619. Weld.Part0 = ConsoleBase
  620. Weld.Part1 = Weld.Parent
  621. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 3)
  622. Weld.C0 = CFrame.new(math.sin(rad) * 3.35, 2.45, math.cos(rad) * 3.3) * CFrame.fromEulerAnglesXYZ(0, rad + math.rad(180), 0)
  623.  
  624. EnergyTelevisionScreen = Wall:Clone()
  625. EnergyTelevisionScreen.Parent = Interior
  626. EnergyTelevisionScreen.Name = "Energy Television Screen"
  627. EnergyTelevisionScreen.BrickColor = BrickColor.new("Really black")
  628. EnergyTelevisionScreen.Size = Vector3.new(1.5, 1.35, 0.2)
  629. Weld = Instance.new("Weld", EnergyTelevisionScreen)
  630. Weld.Part0 = EnergyTelevision
  631. Weld.Part1 = Weld.Parent
  632. Weld.C0 = CFrame.new(0, 0, -0.3)
  633. coroutine.wrap(function()
  634. while true do
  635. if EnergyTelevisionScreen:FindFirstChild("Weld") == nil or EnergyPlayer == nil then
  636. EnergyTelevisionScreen.BrickColor = BrickColor.new("Really black")
  637. EnergyTelevisionScreen.Reflectance = 0.1
  638. else
  639. EnergyTelevisionScreen.BrickColor = BrickColor.random()
  640. EnergyTelevisionScreen.Reflectance = math.random(0, 100) / 100
  641. wait(math.random(100, 1000) / 7500)
  642. end
  643. wait()
  644. end
  645. end)()
  646.  
  647. ConsoleGlass = ConsoleBase:Clone()
  648. ConsoleGlass.Parent = Interior
  649. ConsoleGlass.Name = "Console Glass"
  650. ConsoleGlass.Transparency = 0.3
  651. ConsoleGlass.BrickColor = BrickColor.new("Institutional white")
  652. ConsoleGlass.Size = Vector3.new(3.75, 10, 3.75)
  653. Weld = Instance.new("Weld", ConsoleGlass)
  654. Weld.Part0 = ConsoleSupport
  655. Weld.Part1 = Weld.Parent
  656. Weld.C0 = CFrame.new(0, 6, 0)
  657.  
  658. ConsoleTop = ConsoleBase:Clone()
  659. ConsoleTop.Parent = Interior
  660. ConsoleTop.Name = "Console Top"
  661. ConsoleTop.BrickColor = BrickColor.new("Dark stone grey")
  662. ConsoleTop.Size = Vector3.new(5, 6, 5)
  663. Weld = Instance.new("Weld", ConsoleTop)
  664. Weld.Part0 = ConsoleGlass
  665. Weld.Part1 = Weld.Parent
  666. Weld.C0 = CFrame.new(0, 8, 0)
  667.  
  668. for i = 1, 6 / 1.5 do
  669. ConsoleRing = Wall:Clone()
  670. ConsoleRing.Parent = Interior
  671. ConsoleRing.Name = "Console Ring"
  672. ConsoleRing.Size = Vector3.new(6, 1, 6)
  673. Mesh = Instance.new("SpecialMesh", ConsoleRing)
  674. Mesh.MeshType = "Sphere"
  675. Weld = Instance.new("Weld", ConsoleRing)
  676. Weld.Part0 = ConsoleTop
  677. Weld.Part1 = Weld.Parent
  678. Weld.C0 = CFrame.new(0, (i * 1.5) - 6 / 1.625, 0)
  679. end
  680.  
  681. ConsoleAnchor = ConsoleBase:Clone()
  682. ConsoleAnchor.Parent = Interior
  683. ConsoleAnchor.Name = "Console Anchor"
  684. ConsoleAnchor.BrickColor = BrickColor.new("Medium stone grey")
  685. ConsoleAnchor.Size = Vector3.new(12.5, 10, 12.5)
  686. Weld = Instance.new("Weld", ConsoleAnchor)
  687. Weld.Part0 = ConsoleTop
  688. Weld.Part1 = Weld.Parent
  689. Weld.C0 = CFrame.new(0, 8, 0)
  690.  
  691. for i = 45, 360, 360 / 4 do
  692. ConsoleAnchorSupport = Wall:Clone()
  693. ConsoleAnchorSupport.Parent = Interior
  694. ConsoleAnchorSupport.Name = "Console Anchor Support"
  695. ConsoleAnchorSupport.BrickColor = BrickColor.new("Black")
  696. ConsoleAnchorSupport.Size = Vector3.new(2, 50, 4)
  697. Weld = Instance.new("Weld", ConsoleAnchorSupport)
  698. Weld.Part0 = ConsoleAnchor
  699. Weld.Part1 = Weld.Parent
  700. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 20, -15, math.cos(math.rad(i)) * 20) * CFrame.fromEulerAnglesXYZ(0, math.rad(i), 0)
  701. Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0)
  702. end
  703.  
  704. PowerCore = ConsoleBase:Clone()
  705. PowerCore.Parent = Interior
  706. PowerCore.Name = "Power Core"
  707. PowerCore.BrickColor = BrickColor.new("Bright blue")
  708. PowerCore.Transparency = 0.325
  709. PowerCore.Size = Vector3.new(2, 7, 2)
  710. Weld = Instance.new("Weld", PowerCore)
  711. Weld.Part0 = ConsoleGlass
  712. Weld.Part1 = Weld.Parent
  713. Weld.C0 = CFrame.new(0, 0, 0)
  714.  
  715. PowerCoreHolder = PowerCore:Clone()
  716. PowerCoreHolder.Parent = Interior
  717. PowerCoreHolder.Name = "Power Core Holder"
  718. PowerCoreHolder.BrickColor = BrickColor.new("Bright blue")
  719. PowerCoreHolder.Size = Vector3.new(1, 1.75, 1)
  720. Weld = Instance.new("Weld", PowerCoreHolder)
  721. Weld.Part0 = ConsoleGlass
  722. Weld.Part1 = Weld.Parent
  723. Weld.C0 = CFrame.new(0, 4.375, 0)
  724.  
  725. PowerCoreHolder = PowerCoreHolder:Clone()
  726. PowerCoreHolder.Parent = Interior
  727. Weld = Instance.new("Weld", PowerCoreHolder)
  728. Weld.Part0 = ConsoleGlass
  729. Weld.Part1 = Weld.Parent
  730. Weld.C0 = CFrame.new(0, -4.375, 0)
  731.  
  732. for i = 0, 360, 360 / 4 do
  733. PowerRod = PowerCore:Clone()
  734. PowerRod.Parent = Interior
  735. PowerRod.Name = "Power Rod 1"
  736. PowerRod.Size = Vector3.new(0.5, 5, 0.5)
  737. Weld = Instance.new("Weld", PowerRod)
  738. Weld.Part0 = ConsoleGlass
  739. Weld.Part1 = Weld.Parent
  740. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 1.5, 2, math.cos(math.rad(i)) * 1.5)
  741. end
  742.  
  743. for i = 45, 360, 360 / 4 do
  744. PowerRod = PowerCore:Clone()
  745. PowerRod.Parent = Interior
  746. PowerRod.Name = "Power Rod 2"
  747. PowerRod.Size = Vector3.new(0.5, 5, 0.5)
  748. Weld = Instance.new("Weld", PowerRod)
  749. Weld.Part0 = ConsoleGlass
  750. Weld.Part1 = Weld.Parent
  751. Weld.C0 = CFrame.new(math.sin(math.rad(i)) * 1.5, -2, math.cos(math.rad(i)) * 1.5)
  752. end
  753.  
  754. Seat = Instance.new("Seat", Interior)
  755. Seat.Name = "Radar Seat"
  756. Seat.TopSurface = 0
  757. Seat.BottomSurface = 0
  758. Seat.Locked = true
  759. Seat.BrickColor = BrickColor.new("Dark stone grey")
  760. Seat.formFactor = "Custom"
  761. Seat.Size = Vector3.new(1, 1, 1)
  762. Weld = Instance.new("Weld", Seat)
  763. Weld.Part0 = FloorCenter
  764. Weld.Part1 = Weld.Parent
  765. rad = math.rad(360 / 6 / 2)
  766. Weld.C0 = CFrame.new(math.sin(rad) * 6, 1, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  767.  
  768. Seat = Seat:Clone()
  769. Seat.Parent = Interior
  770. Seat.Name = "Weapon Seat"
  771. Weld = Instance.new("Weld", Seat)
  772. Weld.Part0 = FloorCenter
  773. Weld.Part1 = Weld.Parent
  774. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 1)
  775. Weld.C0 = CFrame.new(math.sin(rad) * 6, 1, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  776.  
  777. Seat = Seat:Clone()
  778. Seat.Parent = Interior
  779. Seat.Name = "Repair Seat"
  780. Weld = Instance.new("Weld", Seat)
  781. Weld.Part0 = FloorCenter
  782. Weld.Part1 = Weld.Parent
  783. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 2)
  784. Weld.C0 = CFrame.new(math.sin(rad) * 6, 1, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  785.  
  786. Seat = Seat:Clone()
  787. Seat.Parent = Interior
  788. Seat.Name = "Energy Seat"
  789. Weld = Instance.new("Weld", Seat)
  790. Weld.Part0 = FloorCenter
  791. Weld.Part1 = Weld.Parent
  792. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 3)
  793. Weld.C0 = CFrame.new(math.sin(rad) * 6, 1, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  794.  
  795. Seat = Seat:Clone()
  796. Seat.Parent = Interior
  797. Seat.Name = "Teleport Seat"
  798. Weld = Instance.new("Weld", Seat)
  799. Weld.Part0 = FloorCenter
  800. Weld.Part1 = Weld.Parent
  801. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 4)
  802. Weld.C0 = CFrame.new(math.sin(rad) * 6, 1, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  803.  
  804. Seat = Seat:Clone()
  805. Seat.Parent = Interior
  806. Seat.Name = "Fly Seat"
  807. Weld = Instance.new("Weld", Seat)
  808. Weld.Part0 = FloorCenter
  809. Weld.Part1 = Weld.Parent
  810. rad = math.rad(360 / 6 / 2) + math.rad(360 / 6 * 5)
  811. Weld.C0 = CFrame.new(math.sin(rad) * 6, 1, math.cos(rad) * 6) * CFrame.fromEulerAnglesXYZ(0, rad, 0)
  812.  
  813. Teleport = Wall:Clone()
  814. Teleport.Parent = Interior
  815. Teleport.Name = "Teleport"
  816. Teleport.Size = Vector3.new(2, 2, 0.2)
  817. Teleport.Transparency = 1
  818. Weld = Instance.new("Weld", Teleport)
  819. Weld.Part0 = Base
  820. Weld.Part1 = Weld.Parent
  821. Weld.C0 = CFrame.new(0, 6.5, 47.5)
  822. Teleport.Touched:connect(function(Hit)
  823. pcall(function()
  824. if DoorDebounce == false or DoorOpen == false then return end
  825. if Hit.Parent:FindFirstChild("Torso") ~= nil and Hit.Parent:FindFirstChild("Humanoid") ~= nil then
  826. Position = Exterior.Teleport.CFrame * CFrame.new(0, 0, -2)
  827. while Hit.Parent.Torso.CFrame ~= Position do
  828. Hit.Parent.Torso.CFrame = Position
  829. end
  830. DoorDebounce = false
  831. coroutine.wrap(function()
  832. wait(1)
  833. DoorDebounce = true
  834. end)()
  835. end
  836. end)
  837. end)
  838.  
  839. for i = 0, 1, 1 / 20 do
  840. Shadow = Wall:Clone()
  841. Shadow.Parent = Interior
  842. Shadow.Name = "Shadow"
  843. Shadow.Transparency = i
  844. Shadow.BrickColor = BrickColor.new("Really black")
  845. Shadow.Size = Vector3.new(5, 7, 0.2)
  846. Shadow.CanCollide = false
  847. Weld = Instance.new("Weld", Shadow)
  848. Weld.Part0 = Base
  849. Weld.Part1 = Weld.Parent
  850. Weld.C0 = CFrame.new(0, 6.5, 48.5 - (0.2 * (i * 20)))
  851. end
  852.  
  853. Wall = Wall:Clone()
  854. Wall.Parent = Interior
  855. Wall.BrickColor = BrickColor.new("White")
  856. Wall.Size = Vector3.new(0.5, 7, 4)
  857. Weld = Instance.new("Weld", Wall)
  858. Weld.Part0 = Base
  859. Weld.Part1 = Weld.Parent
  860. Weld.C0 = CFrame.new(2.75, 6.5, 47)
  861.  
  862. Wall = Wall:Clone()
  863. Wall.Parent = Interior
  864. Wall.Size = Vector3.new(0.5, 7, 4)
  865. Weld = Instance.new("Weld", Wall)
  866. Weld.Part0 = Base
  867. Weld.Part1 = Weld.Parent
  868. Weld.C0 = CFrame.new(-2.75, 6.5, 47)
  869.  
  870. Corner = Wall:Clone()
  871. Corner.Parent = Interior
  872. Corner.Name = "Corner"
  873. Corner.BrickColor = BrickColor.new("Medium stone grey")
  874. Corner.Size = Vector3.new(1, 7, 1)
  875. Weld = Instance.new("Weld", Corner)
  876. Weld.Part0 = Base
  877. Weld.Part1 = Weld.Parent
  878. Weld.C0 = CFrame.new(-3, 6.5, 44.5)
  879.  
  880. Corner = Corner:Clone()
  881. Corner.Parent = Interior
  882. Weld = Instance.new("Weld", Corner)
  883. Weld.Part0 = Base
  884. Weld.Part1 = Weld.Parent
  885. Weld.C0 = CFrame.new(3, 6.5, 44.5)
  886.  
  887. Door = Wall:Clone()
  888. Door.Parent = Interior
  889. Door.Name = "Door"
  890. Door.BrickColor = BrickColor.new("White")
  891. Door.Size = Vector3.new(5, 7, 0.5)
  892. Motor = Instance.new("Motor", Door)
  893. Motor.Part0 = Base
  894. Motor.Part1 = Motor.Parent
  895. Motor.C0 = CFrame.new(-2.5, 0, 44.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  896. Motor.C1 = CFrame.new(-2.5, -6.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  897. Motor.MaxVelocity = 0.1
  898. coroutine.wrap(function()
  899. while Door.Parent ~= nil do
  900. if DoorOpen == false then
  901. pcall(function() Exterior.Door.Motor.DesiredAngle = 0 end)
  902. pcall(function() Interior.Door.Motor.DesiredAngle = 0 end)
  903. else
  904. pcall(function() Exterior.Door.Motor.DesiredAngle = math.rad(90) end)
  905. pcall(function() Interior.Door.Motor.DesiredAngle = math.rad(90) end)
  906. end
  907. wait()
  908. end
  909. end)()
  910. DoorLockedBool1 = Instance.new("BoolValue", Door)
  911. DoorLockedBool1.Parent = Door
  912. DoorLockedBool1.Name = "DoorLocked"
  913. DoorLockedBool1.Value = false
  914. DoorLockedBool1.Changed:connect(function(Property)
  915. DoorLocked = DoorLockedBool1.Value
  916. end)
  917. coroutine.wrap(function() while true do DoorLockedBool1.Value = DoorLocked wait(0.25) end end)()
  918. DoorOpenBool1 = Instance.new("BoolValue", Door)
  919. DoorOpenBool1.Parent = Door
  920. DoorOpenBool1.Name = "DoorOpen"
  921. DoorOpenBool1.Value = false
  922. DoorOpenBool1.Changed:connect(function(Property)
  923. DoorOpen = DoorOpenBool1.Value
  924. if DoorOpen == true then DoorLocked = false end
  925. end)
  926. coroutine.wrap(function() while true do DoorOpenBool1.Value = DoorOpen wait(0.25) end end)()
  927.  
  928. Sign = Wall:Clone()
  929. Sign.Parent = Interior
  930. Sign.Name = "Sign"
  931. Sign.Size = Vector3.new(2, 2, 0.2)
  932. Sign.BrickColor = BrickColor.new("Medium stone grey")
  933. Decal = Instance.new("Decal", Sign)
  934. Decal.Texture = "http://www.roblox.com/Asset/?id=52411167"
  935. Decal.Face = "Front"
  936. Weld = Instance.new("Weld", Sign)
  937. Weld.Part0 = Door
  938. Weld.Part1 = Weld.Parent
  939. Weld.C0 = CFrame.new(0, 1.75, -0.3)
  940.  
  941. DoorButton = Wall:Clone()
  942. DoorButton.Parent = Interior
  943. DoorButton.Name = "Door Button"
  944. DoorButton.BrickColor = BrickColor.new("Really red")
  945. DoorButton.Size = Vector3.new(0.45, 0.45, 0.2)
  946. Weld = Instance.new("Weld", DoorButton)
  947. Weld.Part0 = Corner
  948. Weld.Part1 = Weld.Parent
  949. Weld.C0 = CFrame.new(0, 0, -0.6)
  950. ClickDetector = Instance.new("ClickDetector", DoorButton)
  951. ClickDetector.MaxActivationDistance = 12
  952. ClickDetector.MouseClick:connect(function()
  953. if (DoorLocked or not TeleportReady) and not DoorOpen then return end
  954. if DoorOpen == true then
  955. DoorOpen = false
  956. else
  957. DoorOpen = true
  958. end
  959. end)
  960. coroutine.wrap(function()
  961. while DoorButton.Parent ~= nil do
  962. if DoorOpen == false then
  963. DoorButton.BrickColor = BrickColor.new("Really red")
  964. else
  965. DoorButton.BrickColor = BrickColor.new("Bright green")
  966. end
  967. wait()
  968. end
  969. end)()
  970.  
  971. LockButton = Wall:Clone()
  972. LockButton.Parent = Interior
  973. LockButton.Name = "Door Button"
  974. LockButton.BrickColor = BrickColor.new("Really red")
  975. LockButton.Size = Vector3.new(0.45, 0.45, 0.2)
  976. Weld = Instance.new("Weld", LockButton)
  977. Weld.Part0 = Corner
  978. Weld.Part1 = Weld.Parent
  979. Weld.C0 = CFrame.new(0, 0.55, -0.6)
  980. ClickDetector = Instance.new("ClickDetector", LockButton)
  981. ClickDetector.MaxActivationDistance = 12
  982. ClickDetector.MouseClick:connect(function()
  983. if DoorLocked == true then
  984. DoorLocked = false
  985. else
  986. DoorLocked = true
  987. end
  988. end)
  989. coroutine.wrap(function()
  990. while LockButton.Parent ~= nil do
  991. if DoorLocked == false then
  992. LockButton.BrickColor = BrickColor.new("Bright green")
  993. else
  994. LockButton.BrickColor = BrickColor.new("New Yeller")
  995. end
  996. wait()
  997. end
  998. end)()
  999.  
  1000. Top = Wall:Clone()
  1001. Top.Parent = Interior
  1002. Top.Name = "Top 1"
  1003. Top.BrickColor = BrickColor.new("Medium stone grey")
  1004. Top.Size = Vector3.new(7, 0.2, 6)
  1005. Weld = Instance.new("Weld", Top)
  1006. Weld.Part0 = Base
  1007. Weld.Part1 = Weld.Parent
  1008. Weld.C0 = CFrame.new(0, 10.1, 47)
  1009.  
  1010. Top = Floor:Clone()
  1011. Top.Parent = Interior
  1012. Top.Name = "Top 2"
  1013. Top.BrickColor = BrickColor.new("Medium stone grey")
  1014. Top.Size = Vector3.new(7, 0.5, 3)
  1015. Weld = Instance.new("Weld", Top)
  1016. Weld.Part0 = Base
  1017. Weld.Part1 = Weld.Parent
  1018. Weld.C0 = CFrame.new(0, 10.45, 47)
  1019.  
  1020. -- Exterior.
  1021.  
  1022. Base = Wall:Clone()
  1023. Base.Parent = Exterior
  1024. Base.Name = "Base"
  1025. Base.BrickColor = BrickColor.new("Medium stone grey")
  1026. Base.Size = Vector3.new(7, 0.2, 7)
  1027.  
  1028. Wall = Base:Clone()
  1029. Wall.Parent = Exterior
  1030. Wall.Name = "Wall"
  1031. Wall.BrickColor = BrickColor.new("White")
  1032. Wall.Size = Vector3.new(5, 7, 0.5)
  1033. Weld = Instance.new("Weld", Wall)
  1034. Weld.Part0 = Base
  1035. Weld.Part1 = Weld.Parent
  1036. Weld.C0 = CFrame.new(0, 3.6, 2.75)
  1037.  
  1038. Door = Wall:Clone()
  1039. Door.Parent = Exterior
  1040. Door.Name = "Door"
  1041. Door.Size = Vector3.new(5, 7, 0.5)
  1042. Motor = Instance.new("Motor", Door)
  1043. Motor.Part0 = Base
  1044. Motor.Part1 = Motor.Parent
  1045. Motor.C0 = CFrame.new(-2.5, 0, -2.75) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  1046. Motor.C1 = CFrame.new(-2.5, -3.6, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  1047. Motor.MaxVelocity = 0.1
  1048. DoorLockedBool2 = Instance.new("BoolValue", Door)
  1049. DoorLockedBool2.Parent = Door
  1050. DoorLockedBool2.Name = "DoorLocked"
  1051. DoorLockedBool2.Value = false
  1052. DoorLockedBool2.Changed:connect(function(Property)
  1053. DoorLocked = DoorLockedBool2.Value
  1054. end)
  1055. coroutine.wrap(function() while true do DoorLockedBool2.Value = DoorLocked wait(0.25) end end)()
  1056. DoorOpenBool2 = Instance.new("BoolValue", Door)
  1057. DoorOpenBool2.Parent = Door
  1058. DoorOpenBool2.Name = "DoorOpen"
  1059. DoorOpenBool2.Value = false
  1060. DoorOpenBool2.Changed:connect(function(Property)
  1061. DoorOpen = DoorOpenBool2.Value
  1062. if DoorOpen == true then DoorLocked = false end
  1063. end)
  1064. coroutine.wrap(function() while true do DoorOpenBool2.Value = DoorOpen wait(0.25) end end)()
  1065.  
  1066. DoorHandleHolder = Wall:Clone()
  1067. DoorHandleHolder.Parent = Exterior
  1068. DoorHandleHolder.Name = "Door Handle Holder"
  1069. DoorHandleHolder.BrickColor = BrickColor.new("Medium stone grey")
  1070. DoorHandleHolder.Size = Vector3.new(0.35, 0.2, 0.2)
  1071. Weld = Instance.new("Weld", DoorHandleHolder)
  1072. Weld.Part0 = Door
  1073. Weld.Part1 = Weld.Parent
  1074. Weld.C0 = CFrame.new(1.65, 0.5, -0.3)
  1075.  
  1076. DoorHandleHolder = DoorHandleHolder:Clone()
  1077. DoorHandleHolder.Parent = Exterior
  1078. Weld = Instance.new("Weld", DoorHandleHolder)
  1079. Weld.Part0 = Door
  1080. Weld.Part1 = Weld.Parent
  1081. Weld.C0 = CFrame.new(1.65, 0, -0.3)
  1082.  
  1083. DoorHandle = DoorHandleHolder:Clone()
  1084. DoorHandle.Parent = Exterior
  1085. DoorHandle.Name = "Door Handle"
  1086. DoorHandle.Size = Vector3.new(0.35, 0.7, 0.2)
  1087. Weld = Instance.new("Weld", DoorHandle)
  1088. Weld.Part0 = Door
  1089. Weld.Part1 = Weld.Parent
  1090. Weld.C0 = CFrame.new(1.65, 0.25, -0.5)
  1091. ClickDetector = Instance.new("ClickDetector", DoorHandle)
  1092. ClickDetector.MaxActivationDistance = 7
  1093. ClickDetector.MouseClick:connect(function()
  1094. if (DoorLocked or not TeleportReady) and not DoorOpen then return end
  1095. if DoorHandle:FindFirstChild("Weld") == nil then return end
  1096. if DoorOpen then
  1097. DoorOpen = false
  1098. else
  1099. DoorOpen = true
  1100. end
  1101. end)
  1102.  
  1103. Wall = Wall:Clone()
  1104. Wall.Parent = Exterior
  1105. Wall.Size = Vector3.new(0.5, 7, 5)
  1106. Weld = Instance.new("Weld", Wall)
  1107. Weld.Part0 = Base
  1108. Weld.Part1 = Weld.Parent
  1109. Weld.C0 = CFrame.new(2.75, 3.6, 0)
  1110.  
  1111. Wall = Wall:Clone()
  1112. Wall.Parent = Exterior
  1113. Wall.Size = Vector3.new(0.5, 7, 5)
  1114. Weld = Instance.new("Weld", Wall)
  1115. Weld.Part0 = Base
  1116. Weld.Part1 = Weld.Parent
  1117. Weld.C0 = CFrame.new(-2.75, 3.6, 0)
  1118.  
  1119. Corner = Wall:Clone()
  1120. Corner.Parent = Exterior
  1121. Corner.Name = "Corner"
  1122. Corner.BrickColor = BrickColor.new("Medium stone grey")
  1123. Corner.Size = Vector3.new(1, 7, 1)
  1124. Weld = Instance.new("Weld", Corner)
  1125. Weld.Part0 = Base
  1126. Weld.Part1 = Weld.Parent
  1127. Weld.C0 = CFrame.new(3, 3.6, 3)
  1128.  
  1129. Corner = Corner:Clone()
  1130. Corner.Parent = Exterior
  1131. Weld = Instance.new("Weld", Corner)
  1132. Weld.Part0 = Base
  1133. Weld.Part1 = Weld.Parent
  1134. Weld.C0 = CFrame.new(-3, 3.6, 3)
  1135.  
  1136. Corner = Corner:Clone()
  1137. Corner.Parent = Exterior
  1138. Weld = Instance.new("Weld", Corner)
  1139. Weld.Part0 = Base
  1140. Weld.Part1 = Weld.Parent
  1141. Weld.C0 = CFrame.new(-3, 3.6, -3)
  1142.  
  1143. Corner = Corner:Clone()
  1144. Corner.Parent = Exterior
  1145. Weld = Instance.new("Weld", Corner)
  1146. Weld.Part0 = Base
  1147. Weld.Part1 = Weld.Parent
  1148. Weld.C0 = CFrame.new(3, 3.6, -3)
  1149.  
  1150. Top = Base:Clone()
  1151. Top.Parent = Exterior
  1152. Top.Name = "Top"
  1153. Weld = Instance.new("Weld", Top)
  1154. Weld.Part0 = Base
  1155. Weld.Part1 = Weld.Parent
  1156. Weld.C0 = CFrame.new(0, 7.2, 0)
  1157.  
  1158. LightBase = Wall:Clone()
  1159. LightBase.Parent = Exterior
  1160. LightBase.Name = "Light Base"
  1161. LightBase.BrickColor = BrickColor.new("Dark stone grey")
  1162. LightBase.Size = Vector3.new(1, 0.5, 1)
  1163. Mesh = Instance.new("CylinderMesh", LightBase)
  1164. Weld = Instance.new("Weld", LightBase)
  1165. Weld.Part0 = Top
  1166. Weld.Part1 = Weld.Parent
  1167. Weld.C0 = CFrame.new(0, 0.35, 0)
  1168.  
  1169. Light = LightBase:Clone()
  1170. Light.Parent = Exterior
  1171. Light.Name = "Light"
  1172. Light.BrickColor = BrickColor.new("Bright blue")
  1173. Light.Transparency = 0.5
  1174. Light.Size = Vector3.new(1, 1, 1)
  1175. Weld = Instance.new("Weld", Light)
  1176. Weld.Part0 = LightBase
  1177. Weld.Part1 = Weld.Parent
  1178. Weld.C0 = CFrame.new(0, 0.75, 0)
  1179.  
  1180. LightTop = LightBase:Clone()
  1181. LightTop.Parent = Exterior
  1182. LightTop.Name = "Light Top"
  1183. Weld = Instance.new("Weld", LightTop)
  1184. Weld.Part0 = Light
  1185. Weld.Part1 = Weld.Parent
  1186. Weld.C0 = CFrame.new(0, 0.75, 0)
  1187.  
  1188. Sign = Top:Clone()
  1189. Sign.Parent = Exterior
  1190. Sign.Name = "Sign"
  1191. Sign.Size = Vector3.new(2, 2, 0.2)
  1192. Decal = Instance.new("Decal", Sign)
  1193. Decal.Texture = "http://www.roblox.com/Asset/?id=49400995"
  1194. Decal.Face = "Front"
  1195. Weld = Instance.new("Weld", Sign)
  1196. Weld.Part0 = Door
  1197. Weld.Part1 = Weld.Parent
  1198. Weld.C0 = CFrame.new(0, 1.75, -0.3)
  1199.  
  1200. Sign = Sign:Clone()
  1201. Sign.Parent = Exterior
  1202. Weld = Instance.new("Weld", Sign)
  1203. Weld.Part0 = Base
  1204. Weld.Part1 = Weld.Parent
  1205. Weld.C0 = CFrame.new(0, 5.4, 3.1) * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  1206.  
  1207. Sign = Sign:Clone()
  1208. Sign.Parent = Exterior
  1209. Weld = Instance.new("Weld", Sign)
  1210. Weld.Part0 = Base
  1211. Weld.Part1 = Weld.Parent
  1212. Weld.C0 = CFrame.new(-3.1, 5.4, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1213.  
  1214. Sign = Sign:Clone()
  1215. Sign.Parent = Exterior
  1216. Weld = Instance.new("Weld", Sign)
  1217. Weld.Part0 = Base
  1218. Weld.Part1 = Weld.Parent
  1219. Weld.C0 = CFrame.new(3.1, 5.4, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1220.  
  1221. Teleport = Wall:Clone()
  1222. Teleport.Parent = Exterior
  1223. Teleport.Name = "Teleport"
  1224. Teleport.Size = Vector3.new(2, 2, 0.2)
  1225. Teleport.Transparency = 1
  1226. Weld = Instance.new("Weld", Teleport)
  1227. Weld.Part0 = Base
  1228. Weld.Part1 = Weld.Parent
  1229. Weld.C0 = CFrame.new(0, 4.2, 1.5)
  1230. Teleport.Touched:connect(function(Hit)
  1231. pcall(function()
  1232. if DoorDebounce == false or DoorOpen == false then return end
  1233. if Hit.Parent:FindFirstChild("Torso") ~= nil and Hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1234. Position = Interior.Teleport.CFrame * CFrame.new(0, 0, -2)
  1235. while Hit.Parent.Torso.CFrame ~= Position do
  1236. Hit.Parent.Torso.CFrame = Position
  1237. end
  1238. DoorDebounce = false
  1239. coroutine.wrap(function()
  1240. wait(1)
  1241. DoorDebounce = true
  1242. end)()
  1243. end
  1244. end)
  1245. end)
  1246.  
  1247. for i = 0, 1, 1 / 25 do
  1248. Shadow = Wall:Clone()
  1249. Shadow.Parent = Exterior
  1250. Shadow.Name = "Shadow"
  1251. Shadow.Transparency = i
  1252. Shadow.BrickColor = BrickColor.new("Really black")
  1253. Shadow.Size = Vector3.new(5, 7, 0.2)
  1254. Shadow.CanCollide = false
  1255. Weld = Instance.new("Weld", Shadow)
  1256. Weld.Part0 = Base
  1257. Weld.Part1 = Weld.Parent
  1258. Weld.C0 = CFrame.new(0, 3.6, 2.4 - (0.2 * (i * 25)))
  1259. end
  1260.  
  1261. -- Functions.
  1262.  
  1263. for _, Part in pairs(Exterior:GetChildren()) do
  1264. local Joint = nil
  1265. for _, Joints in pairs(Part:GetChildren()) do
  1266. if Joints:IsA("JointInstance") then
  1267. Joint = Joints
  1268. end
  1269. end
  1270. table.insert(RepairParts, {
  1271. Part = Part,
  1272. Joint = Joint
  1273. })
  1274. Part.ChildRemoved:connect(function(Part2)
  1275. if Part2:IsA("JointInstance") and Part2.Name == Part2.className then
  1276. if math.floor(math.random(1, ((1 - (EnergyToShield * 0.99)) * 100) + 1)) == 1 and DamageHealth > 0 then
  1277. for i = 1, #RepairParts do
  1278. if RepairParts[i].Part == Part then
  1279. local NewJoint = RepairParts[i].Joint:Clone()
  1280. NewJoint.Parent = Part
  1281. Part:MakeJoints()
  1282. local Sound = Instance.new("Sound", Part)
  1283. Sound.Name = "Heal Sound"
  1284. Sound.Pitch = math.random(250, 400) / 100
  1285. Sound.Volume = 1
  1286. Sound.SoundId = "http://www.roblox.com/Asset/?id=2785493"
  1287. Sound:Play()
  1288. coroutine.wrap(function()
  1289. wait(1)
  1290. Sound:Remove()
  1291. end)()
  1292. end
  1293. end
  1294. local TARDISShield = Instance.new("SelectionBox", Part)
  1295. TARDISShield.Name = "TARDIS Shield"
  1296. TARDISShield.Adornee = Part
  1297. coroutine.wrap(function()
  1298. while TARDISShield.Parent ~= nil do
  1299. TARDISShield.Color = BrickColor.new(Color3.new(0, 0, math.random(100, 255) / 255))
  1300. wait()
  1301. end
  1302. end)()
  1303. coroutine.wrap(function()
  1304. wait(2)
  1305. TARDISShield:Remove()
  1306. end)()
  1307. else
  1308. if Part.Name == "Wall" or Part.Name == "Top" then
  1309. Destroy()
  1310. else
  1311. DamageHealth = DamageHealth - math.random(25, 50)
  1312. end
  1313. end
  1314. end
  1315. end)
  1316. Part.Changed:connect(function(Property)
  1317. if Property == "Parent" and Part.Parent ~= Exterior then
  1318. if math.floor(math.random(1, ((1 - (EnergyToShield * 0.99)) * 100) + 1)) == 1 and DamageHealth > 0 then
  1319. Part.Parent = Exterior
  1320. else
  1321. if Part.Name == "Wall" or Part.Name == "Top" or Part.Name == "Base" then
  1322. Destroy()
  1323. else
  1324. DamageHealth = DamageHealth - math.random(10, 100)
  1325. end
  1326. end
  1327. end
  1328. end)
  1329. Part.Touched:connect(function(Hit)
  1330. for i = 1, #DamageEffect do
  1331. if Hit == DamageEffect[i] then
  1332. return
  1333. end
  1334. end
  1335. if DamageCanHit == false then return end
  1336. local SoundId = math.random(1, 3)
  1337. local Sound = Instance.new("Sound", Part)
  1338. Sound.Name = "Hit Sound"
  1339. Sound.Volume = (Part.Velocity.x + Part.Velocity.y + Part.Velocity.z + Part.RotVelocity.x + Part.RotVelocity.y + Part.RotVelocity.z + Hit.Velocity.x + Hit.Velocity.y + Hit.Velocity.z + Hit.RotVelocity.x + Hit.RotVelocity.y + Hit.RotVelocity.z) / 200
  1340. Sound.Pitch = math.random(75, 125) / 100
  1341. if SoundId == 1 then
  1342. Sound.SoundId = "rbxasset://sounds\\metal.ogg"
  1343. elseif SoundId == 2 then
  1344. Sound.SoundId = "rbxasset://sounds\\metal2.ogg"
  1345. elseif SoundId == 3 then
  1346. Sound.SoundId = "rbxasset://sounds\\metal3.ogg"
  1347. end
  1348. wait()
  1349. Sound:Play()
  1350. coroutine.wrap(function()
  1351. wait(1)
  1352. Sound:Remove()
  1353. end)()
  1354. if Hit.Parent == nil then return end
  1355. if Hit.Parent == Exterior then return end
  1356. if Part:FindFirstChild("Weld") == nil then return end
  1357. DamageCanHit = false
  1358. local velocity1 = {
  1359. math.abs(Part.Velocity.x),
  1360. math.abs(Part.Velocity.y),
  1361. math.abs(Part.Velocity.z)
  1362. }
  1363. local rotvelocity1 = {
  1364. math.abs(Part.RotVelocity.x),
  1365. math.abs(Part.RotVelocity.y),
  1366. math.abs(Part.RotVelocity.z)
  1367. }
  1368. local velocity2 = {
  1369. math.abs(Hit.Velocity.x),
  1370. math.abs(Hit.Velocity.y),
  1371. math.abs(Hit.Velocity.z)
  1372. }
  1373. local rotvelocity2 = {
  1374. math.abs(Hit.RotVelocity.x),
  1375. math.abs(Hit.RotVelocity.y),
  1376. math.abs(Hit.RotVelocity.z)
  1377. }
  1378. for i = 1, #velocity1 do
  1379. local Total = math.abs(velocity1[i] - velocity2[i])
  1380. if Total > 75 then
  1381. if math.floor(math.random(1, ((1 - (EnergyToShield * 0.99)) * 100) + 1)) == 1 then
  1382. local TARDISShield = Instance.new("ForceField", Part)
  1383. TARDISShield.Name = "TARDIS Shield"
  1384. coroutine.wrap(function()
  1385. wait(1)
  1386. TARDISShield:Remove()
  1387. end)()
  1388. else
  1389. if Total > 125 and Hit:GetMass() > 3 and Hit.Name ~= "Wall" and Hit.Name ~= "Base" and Hit.Name ~= "Top" then
  1390. Flying = false
  1391. ExteriorVelocity.maxForce = Vector3.new()
  1392. for _, Joints in pairs(Part:GetChildren()) do
  1393. if Joints:IsA("JointInstance") then
  1394. Joints:Remove()
  1395. end
  1396. end
  1397. Part.Velocity = Part.Velocity + Vector3.new(math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10))
  1398. Part.RotVelocity = Part.RotVelocity + Vector3.new(math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25))
  1399. elseif Total > 100 then
  1400. DamageHealth = DamageHealth - (Total / 25)
  1401. else
  1402. DamageHealth = DamageHealth - (Total / 50)
  1403. end
  1404. end
  1405. end
  1406. if Total > math.random(50, 75) then
  1407. if math.random(1, 3) == 1 then
  1408. if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1409. local Tag1 = Instance.new("ObjectValue", Hit.Parent.Humanoid)
  1410. Tag1.Name = "creator"
  1411. Tag1.Value = FlyPlayer
  1412. local Tag2 = Instance.new("StringValue", Hit.Parent.Humanoid)
  1413. Tag2.Name = "creatorType1"
  1414. Tag2.Value = "TARDIS"
  1415. local Tag3 = Instance.new("StringValue", Hit.Parent.Humanoid)
  1416. Tag3.Name = "creatorType2"
  1417. Tag3.Value = "hit"
  1418. coroutine.wrap(function() wait(1) Tag1:Remove() Tag2:Remove() Tag3:Remove() end)()
  1419. end
  1420. Hit:BreakJoints()
  1421. end
  1422. end
  1423. end
  1424. for i = 1, #rotvelocity1 do
  1425. local Total = math.abs(rotvelocity1[i] - rotvelocity2[i])
  1426. if Total > 25 then
  1427. if math.floor(math.random(1, ((1 - (EnergyToShield * 0.99)) * 100) + 1)) == 1 then
  1428. local TARDISShield = Instance.new("ForceField", Part)
  1429. TARDISShield.Name = "TARDIS Shield"
  1430. coroutine.wrap(function()
  1431. wait(1)
  1432. TARDISShield:Remove()
  1433. end)()
  1434. else
  1435. if Total > 50 and Hit:GetMass() > 3 and Hit.Name ~= "Wall" and Hit.Name ~= "Base" and Hit.Name ~= "Top" then
  1436. Flying = false
  1437. ExteriorVelocity.maxForce = Vector3.new()
  1438. for _, Joints in pairs(Part:GetChildren()) do
  1439. if Joints:IsA("JointInstance") then
  1440. Joints:Remove()
  1441. end
  1442. end
  1443. Part.Velocity = Part.Velocity + Vector3.new(math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10), math.random(-Total / 10, Total / 10))
  1444. Part.RotVelocity = Part.RotVelocity + Vector3.new(math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25), math.random(-Total / 25, Total / 25))
  1445. elseif Total > 35 then
  1446. DamageHealth = DamageHealth - (Total / 10)
  1447. else
  1448. DamageHealth = DamageHealth - (Total / 25)
  1449. end
  1450. end
  1451. end
  1452. if Total > math.random(35, 75) then
  1453. if math.random(1, 3) == 1 then
  1454. if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1455. local Tag1 = Instance.new("ObjectValue", Hit.Parent.Humanoid)
  1456. Tag1.Name = "creator"
  1457. Tag1.Value = FlyPlayer
  1458. local Tag2 = Instance.new("StringValue", Hit.Parent.Humanoid)
  1459. Tag2.Name = "creatorType1"
  1460. Tag2.Value = "TARDIS"
  1461. local Tag3 = Instance.new("StringValue", Hit.Parent.Humanoid)
  1462. Tag3.Name = "creatorType2"
  1463. Tag3.Value = "hit"
  1464. coroutine.wrap(function() wait(1) Tag1:Remove() Tag2:Remove() Tag3:Remove() end)()
  1465. end
  1466. Hit:BreakJoints()
  1467. end
  1468. end
  1469. end
  1470. wait(0.075)
  1471. DamageCanHit = true
  1472. end)
  1473. end
  1474.  
  1475. for _, Part in pairs(Interior:GetChildren()) do
  1476. Part.ChildRemoved:connect(function(Part2)
  1477. if Part2.className == "Weld" and Part2.Name == "Weld" then
  1478. if Part.Name == "Wall" or Part.Name == "Top" then
  1479. Destroy()
  1480. else
  1481. DamageHealth = DamageHealth - math.random(25, 50)
  1482. end
  1483. end
  1484. end)
  1485. Part.Changed:connect(function(Property)
  1486. if Property == "Parent" then
  1487. if Part.Name == "Wall" or Part.Name == "Top" or Part.Name == "Base" then
  1488. Destroy()
  1489. else
  1490. DamageHealth = DamageHealth - math.random(50, 100)
  1491. end
  1492. end
  1493. end)
  1494. end
  1495.  
  1496. function Destroy()
  1497. coroutine.wrap(function()
  1498. wait()
  1499. if TARDIS.Parent == nil or Interior.Parent == nil or Exterior.Parent == nil then return end
  1500. if DamageHealth <= -math.huge then return end
  1501. DamageHealth = -math.huge
  1502. InteriorPosition:Remove()
  1503. InteriorGyro:Remove()
  1504. ExteriorVelocity:Remove()
  1505. ExteriorGyro:Remove()
  1506. TeleportReady = false
  1507. DoorOpen = false
  1508. DoorLocked = true
  1509. local Position = nil
  1510. if Exterior:FindFirstChild("Base") ~= nil then
  1511. Position = (Exterior.Base.CFrame * CFrame.new(0, 3, 0)).p
  1512. else
  1513. for _, Part in pairs(Exterior:GetChildren()) do
  1514. if Part:IsA("BasePart") then
  1515. Position = Part.Position
  1516. break
  1517. end
  1518. end
  1519. end
  1520. if Position == nil then return end
  1521. local function Move(Part)
  1522. Part:BreakJoints()
  1523. Part.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  1524. Part.Velocity = (Part.Position - Position).unit * math.random(0, 50)
  1525. Part.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  1526. end
  1527. for i = 1, #DamageEffect do
  1528. pcall(function()
  1529. DamageEffect[i].Anchored = false
  1530. Move(DamageEffect[i])
  1531. end)
  1532. DamageEffect[i] = nil
  1533. DamageEffectPart[i] = nil
  1534. end
  1535. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  1536. if PlayerList.Character ~= nil then
  1537. if PlayerList.Character:FindFirstChild("Torso") ~= nil then
  1538. if (PlayerList.Character.Torso.Position - TARDIS.Interior.Base.Position).magnitude < 250 then
  1539. for _, Part in pairs(PlayerList.Character:GetChildren()) do
  1540. if Part:IsA("BasePart") then
  1541. Move(Part)
  1542. elseif Part:IsA("Accoutrement") then
  1543. if Part:FindFirstChild("Handle") ~= nil then
  1544. Part.Parent = game:service("Workspace")
  1545. Move(Part.Handle)
  1546. end
  1547. end
  1548. end
  1549. end
  1550. end
  1551. end
  1552. end
  1553. for _, Part in pairs(Exterior:GetChildren()) do
  1554. if Part.Name == "Shadow" or Part.Name == "Teleport" then
  1555. Part:Remove()
  1556. elseif Part:IsA("BasePart") then
  1557. Move(Part)
  1558. end
  1559. end
  1560. for _, Part in pairs(Interior:GetChildren()) do
  1561. if Part.Name == "Shadow" or Part.Name == "Teleport" or Part.Name == "Base" then
  1562. Part:Remove()
  1563. elseif Part:IsA("BasePart") then
  1564. Move(Part)
  1565. end
  1566. end
  1567. for _, Part in pairs(TARDIS:GetChildren()) do
  1568. if Part.Name == "TARDIS Link" then
  1569. Part:Remove()
  1570. end
  1571. end
  1572. local Sound = Instance.new("Sound", workspace)
  1573. Sound.SoundId = "http://www.roblox.com/Asset/?id=2101159"
  1574. Sound.Volume = 1
  1575. Sound.Pitch = math.random(90, 110) / 100
  1576. Sound:Play()
  1577. local Sound = Instance.new("Sound", workspace)
  1578. Sound.SoundId = "http://www.roblox.com/Asset/?id=3087031"
  1579. Sound.Volume = 1
  1580. Sound.Pitch = math.random(90, 110) / 100
  1581. Sound:Play()
  1582. for i = 1, math.random(5, 7) do
  1583. local ExplosionBall = Instance.new("Part", game:service("Workspace"))
  1584. ExplosionBall.Name = "TARDIS Explosion Ball"
  1585. ExplosionBall.formFactor = "Custom"
  1586. ExplosionBall.TopSurface = 0
  1587. ExplosionBall.BottomSurface = 0
  1588. ExplosionBall.Anchored = true
  1589. ExplosionBall.CanCollide = false
  1590. ExplosionBall.Size = Vector3.new(1, 1, 1)
  1591. ExplosionBall.BrickColor = BrickColor.new((function()
  1592. local Choice = math.random(1, 5)
  1593. if Choice == 1 then
  1594. return "Institutional white"
  1595. elseif Choice == 2 then
  1596. return "White"
  1597. elseif Choice == 3 then
  1598. return "Really red"
  1599. elseif Choice == 4 then
  1600. return "New Yeller"
  1601. elseif Choice == 5 then
  1602. return "Black"
  1603. end
  1604. end)())
  1605. ExplosionBall.CFrame = CFrame.new(Position)
  1606. Instance.new("SpecialMesh", ExplosionBall).MeshType = "Sphere"
  1607. coroutine.wrap(function()
  1608. for i = 0, 1, 0.005 do
  1609. ExplosionBall.Transparency = (1 - i)
  1610. ExplosionBall.Mesh.Scale = Vector3.new(i * 250, i * 250, i * 250)
  1611. ExplosionBall.CFrame = CFrame.new(Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * i))
  1612. if math.random(1, 25) == 1 then
  1613. local Explosion = Instance.new("Explosion")
  1614. Explosion.Position = ExplosionBall.Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * i)
  1615. Explosion.BlastPressure = 10000 * i
  1616. Explosion.BlastRadius = i * 250
  1617. Explosion.Parent = game:service("Workspace")
  1618. end
  1619. wait()
  1620. end
  1621. for i = 0, 1, 0.05 do
  1622. ExplosionBall.Transparency = i
  1623. ExplosionBall.CFrame = CFrame.new(Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * (1 - i)))
  1624. wait()
  1625. end
  1626. ExplosionBall:Remove()
  1627. end)()
  1628. end
  1629. end)()
  1630. coroutine.wrap(function()
  1631. wait(25)
  1632. TARDIS:Remove()
  1633. script:Remove()
  1634. end)()
  1635. end
  1636.  
  1637. function Teleport(Position)
  1638. if TeleportReady == false or DoorOpen == true then
  1639. return
  1640. end
  1641. TeleportReady = false
  1642. ExteriorGyro.maxTorque = Vector3.new(math.huge, 0, math.huge)
  1643. FlyStabalize = true
  1644. coroutine.wrap(function()
  1645. while FlyStabalize == true do
  1646. ExteriorGyro.cframe = CFrame.new(Exterior.Base.Position) * CFrame.new(0, 0, 10)
  1647. wait()
  1648. end
  1649. end)()
  1650. local BoomSound1 = Instance.new("Sound", Interior.Base)
  1651. BoomSound1.SoundId = "http://www.roblox.com/Asset/?id=11984254"
  1652. BoomSound1.Pitch = 2
  1653. BoomSound1.Volume = 1
  1654. BoomSound1:Play()
  1655. local BoomSound2 = BoomSound1:Clone()
  1656. BoomSound2.Parent = Exterior.Base
  1657. BoomSound2:Play()
  1658. wait(2)
  1659. BoomSound1:Remove()
  1660. BoomSound2:Remove()
  1661. local Wind1 = Instance.new("Sound", Exterior.Base)
  1662. Wind1.SoundId = "http://www.roblox.com/Asset/?id=18435238"
  1663. Wind1.Pitch = 0.25
  1664. Wind1.Volume = 1
  1665. Wind1:Play()
  1666. local Wind2 = Wind1:Clone()
  1667. Wind2.Parent = Interior.Base
  1668. Wind2:Play()
  1669. wait(1)
  1670. local Whoosh1 = Wind1:Clone()
  1671. Whoosh1.Parent = Interior.Base
  1672. Whoosh1.Pitch = math.random(300, 400) / 100
  1673. Whoosh1.Looped = true
  1674. Whoosh1:Play()
  1675. local Whoosh2 = Whoosh1:Clone()
  1676. Whoosh2.Parent = Exterior.Base
  1677. Whoosh2:Play()
  1678. local SoundPart = Instance.new("Part", game:service("Workspace"))
  1679. SoundPart.Name = ""
  1680. SoundPart.Transparency = 1
  1681. SoundPart.TopSurface = 0
  1682. SoundPart.BottomSurface = 0
  1683. SoundPart.formFactor = "Custom"
  1684. SoundPart.Size = Vector3.new(6, 0.2, 6)
  1685. SoundPart.Anchored = true
  1686. SoundPart.CanCollide = false
  1687. SoundPart:BreakJoints()
  1688. SoundPart.Position = Position
  1689. local Wind3 = Wind1:Clone()
  1690. Wind3.Parent = SoundPart
  1691. Wind3:Play()
  1692. local Whoosh3 = Whoosh1:Clone()
  1693. Whoosh3.Parent = SoundPart
  1694. Whoosh3:Play()
  1695. local Transparency = {}
  1696. for x, Part in pairs(Exterior:GetChildren()) do
  1697. Transparency[x] = Part.Transparency
  1698. end
  1699. local Decals = {}
  1700. for x, Part in pairs(Exterior:GetChildren()) do
  1701. if Part:FindFirstChild("Decal") ~= nil then
  1702. Decals[x] = Part.Decal.Texture
  1703. Part.Decal.Texture = ""
  1704. end
  1705. end
  1706. for i = 0, 1, (EnergyToTeleport / 75) + 0.005 do
  1707. for x, Part in pairs(Exterior:GetChildren()) do
  1708. Part.Transparency = Transparency[x] + ((1 - Transparency[x]) * i)
  1709. end
  1710. for _, Part in pairs(Interior:GetChildren()) do
  1711. if Part.Name == "Power Rod 1" then
  1712. pcall(function() Part.Weld.C1 = CFrame.new(0, (((math.sin(i * 10) + 1) / 2) * 4), 0) end)
  1713. elseif Part.Name == "Power Rod 2" then
  1714. pcall(function() Part.Weld.C1 = CFrame.new(0, -(((math.sin(i * 10) + 1) / 2) * 4), 0) end)
  1715. end
  1716. end
  1717. wait()
  1718. end
  1719. wait(math.random(0, EnergyToTeleport * 100) / 100)
  1720. for x, Part in pairs(Exterior:GetChildren()) do
  1721. Part.Velocity = Vector3.new()
  1722. Part.RotVelocity = Vector3.new()
  1723. Part.Transparency = 1
  1724. end
  1725. SoundPart.CFrame = CFrame.new(Exterior.Base.Position)
  1726. coroutine.wrap(function()
  1727. local SoundIds = {
  1728. "http://www.roblox.com/Asset/?id=13775466",
  1729. "http://www.roblox.com/Asset/?id=22968437",
  1730. "http://www.roblox.com/Asset/?id=13775494"
  1731. }
  1732. for i = 1, math.random(3, 10) do
  1733. wait(math.random(100, 2000) / 1000)
  1734. local AfterSound = Instance.new("Sound", SoundPart)
  1735. AfterSound.Pitch = math.random(2000, 3500) / 1000
  1736. AfterSound.Volume = 1
  1737. AfterSound.SoundId = SoundIds[math.random(1, #SoundIds)]
  1738. for i = 1, 0, -0.1 do
  1739. AfterSound:Play()
  1740. AfterSound.Volume = i
  1741. wait(((1 - AfterSound.Pitch / 3.5) * 0.3) + 0.05)
  1742. end
  1743. AfterSound:Remove()
  1744. end
  1745. SoundPart:Remove()
  1746. end)()
  1747. Exterior:MoveTo(Position + Vector3.new(math.random(-(1 - EnergyToTeleport) * 100, (1 - EnergyToTeleport) * 100), math.random(-(1 - EnergyToTeleport) * 100, (1 - EnergyToTeleport) * 100), math.random(-(1 - EnergyToTeleport) * 100, (1 - EnergyToTeleport) * 100)))
  1748. ExteriorOffset = Interior.Base.Position - (Exterior.Base.Position / 10)
  1749. for i = 1, 0, -((EnergyToTeleport / 25) + 0.01) do
  1750. for x, Part in pairs(Exterior:GetChildren()) do
  1751. Part.Transparency = Transparency[x] + ((1 - Transparency[x]) * i)
  1752. end
  1753. for x, Part in pairs(Interior:GetChildren()) do
  1754. if Part.Name == "Power Rod 1" then
  1755. pcall(function() Part.Weld.C1 = CFrame.new(0, (((math.sin(i * 20) + 1) / 2) * 4), 0) end)
  1756. elseif Part.Name == "Power Rod 2" then
  1757. pcall(function() Part.Weld.C1 = CFrame.new(0, -(((math.sin(i * 20) + 1) / 2) * 4), 0) end)
  1758. end
  1759. end
  1760. wait()
  1761. end
  1762. for x, Part in pairs(Exterior:GetChildren()) do
  1763. Part.Transparency = Transparency[x]
  1764. if Decals[x] ~= nil and Part:FindFirstChild("Decal") ~= nil then
  1765. Part.Decal.Texture = Decals[x]
  1766. end
  1767. end
  1768. for x, Part in pairs(Interior:GetChildren()) do
  1769. if Part.Name == "Power Rod 1" then
  1770. pcall(function() Part.Weld.C1 = CFrame.new() end)
  1771. elseif Part.Name == "Power Rod 2" then
  1772. pcall(function() Part.Weld.C1 = CFrame.new() end)
  1773. end
  1774. end
  1775. Whoosh1.Looped = false
  1776. Whoosh2.Looped = false
  1777. Whoosh3.Looped = false
  1778. wait(1.5)
  1779. Wind1:Remove()
  1780. Wind2:Remove()
  1781. Wind3:Remove()
  1782. Whoosh1:Remove()
  1783. Whoosh2:Remove()
  1784. Whoosh3:Remove()
  1785. ExteriorGyro.maxTorque = Vector3.new()
  1786. FlyStabalize = false
  1787. TeleportReady = true
  1788. end
  1789.  
  1790. -- Final stuff.
  1791.  
  1792. InteriorPosition = Instance.new("BodyPosition", Interior.Base)
  1793. InteriorPosition.D = 1500
  1794. InteriorPosition.P = 7500
  1795. InteriorPosition.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1796. InteriorPosition.position = ExteriorOffset
  1797.  
  1798. InteriorGyro = Instance.new("BodyGyro", Interior.Base)
  1799. InteriorGyro.D = 750
  1800. InteriorGyro.P = 2500
  1801. InteriorGyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1802.  
  1803. ExteriorVelocity = Instance.new("BodyVelocity", Exterior.Base)
  1804. ExteriorVelocity.P = 1500
  1805. ExteriorVelocity.maxForce = Vector3.new()
  1806. ExteriorVelocity.velocity = Vector3.new()
  1807. coroutine.wrap(function()
  1808. while ExteriorVelocity.Parent ~= nil do
  1809. if math.abs(ExteriorVelocityTarget.x - ExteriorVelocity.velocity.x) < ExteriorVelocityTargetSpeed and math.abs(ExteriorVelocityTarget.y - ExteriorVelocity.velocity.y) < ExteriorVelocityTargetSpeed and math.abs(ExteriorVelocityTarget.z - ExteriorVelocity.velocity.z) < ExteriorVelocityTargetSpeed then
  1810. ExteriorVelocity.velocity = ExteriorVelocityTarget
  1811. else
  1812. ExteriorVelocity.velocity = Vector3.new(
  1813. ExteriorVelocity.velocity.x + (function()
  1814. if ExteriorVelocityTarget.x - ExteriorVelocity.velocity.x > ExteriorVelocityTargetSpeed then
  1815. return ExteriorVelocityTargetSpeed
  1816. elseif ExteriorVelocityTarget.x - ExteriorVelocity.velocity.x < -ExteriorVelocityTargetSpeed then
  1817. return -ExteriorVelocityTargetSpeed
  1818. else
  1819. return ExteriorVelocityTarget.x - ExteriorVelocity.velocity.x
  1820. end
  1821. end)(),
  1822. ExteriorVelocity.velocity.y + (function()
  1823. if ExteriorVelocityTarget.y - ExteriorVelocity.velocity.y > ExteriorVelocityTargetSpeed then
  1824. return ExteriorVelocityTargetSpeed
  1825. elseif ExteriorVelocityTarget.y - ExteriorVelocity.velocity.y < -ExteriorVelocityTargetSpeed then
  1826. return -ExteriorVelocityTargetSpeed
  1827. else
  1828. return ExteriorVelocityTarget.y - ExteriorVelocity.velocity.y
  1829. end
  1830. end)(),
  1831. ExteriorVelocity.velocity.z + (function()
  1832. if ExteriorVelocityTarget.z - ExteriorVelocity.velocity.z > ExteriorVelocityTargetSpeed then
  1833. return ExteriorVelocityTargetSpeed
  1834. elseif ExteriorVelocityTarget.z - ExteriorVelocity.velocity.z < -ExteriorVelocityTargetSpeed then
  1835. return -ExteriorVelocityTargetSpeed
  1836. else
  1837. return ExteriorVelocityTarget.z - ExteriorVelocity.velocity.z
  1838. end
  1839. end)()
  1840. )
  1841. end
  1842. wait()
  1843. end
  1844. end)()
  1845.  
  1846. ExteriorGyro = Instance.new("BodyGyro", Exterior.Base)
  1847. ExteriorGyro.D = 500
  1848. ExteriorGyro.P = 3000
  1849. ExteriorGyro.maxTorque = Vector3.new()
  1850.  
  1851. Exterior:MoveTo(Vector3.new(0, 0, 10))
  1852. pcall(function() Exterior:MoveTo(workspace.raj99.Torso.Position + Vector3.new(0, 0, 10)) end)
  1853. Interior:MoveTo((Exterior.Base.Position / 10) + ExteriorOffset)
  1854.  
  1855. while true do
  1856. if DamageHealth <= 0 then Destroy() break end
  1857. pcall(function()
  1858. InteriorPosition.position = (Exterior.Base.Position / 10) + ExteriorOffset
  1859. InteriorGyro.cframe = Exterior.Base.CFrame * CFrame.new(-Exterior.Base.Position)
  1860. end)
  1861. pcall(function()
  1862. ExteriorVelocity.P = 1000 * ((EnergyToFly / 2) + 0.5)
  1863. end)
  1864. ExteriorVelocityTargetSpeed = 2.5 * ((EnergyToFly / 2) + 0.5)
  1865. local Seat = Interior:FindFirstChild("Teleport Seat")
  1866. if Seat ~= nil then
  1867. if Seat:FindFirstChild("SeatWeld") ~= nil and TeleportPlayer == nil then
  1868. local Part1 = Seat.SeatWeld.Part1
  1869. if Part1 ~= nil then
  1870. TeleportPlayer = game:service("Players"):GetPlayerFromCharacter(Part1.Parent)
  1871. if TeleportPlayer ~= nil then
  1872. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  1873. Camera.CameraSubject.Value = Exterior.Base
  1874. Camera.CameraType.Value = Enum.CameraType.Track.Value
  1875. Camera.Disabled = false
  1876. wait(0.05)
  1877. Camera.Parent = Part1.Parent
  1878. local PlayerGui = TeleportPlayer:FindFirstChild("PlayerGui")
  1879. if PlayerGui == nil then return end
  1880. local TeleportGui = Instance.new("ScreenGui", PlayerGui)
  1881. TeleportGui.Name = "TeleportGui"
  1882. local Frame = Instance.new("Frame")
  1883. Frame.Name = "Content"
  1884. Frame.Size = UDim2.new(0, 300, 0, 300)
  1885. Frame.Position = UDim2.new(0, 0, 0.5, -300 / 2)
  1886. Frame.BorderSizePixel = 1
  1887. Frame.BorderColor3 = Color3.new(0, 0, 0)
  1888. Frame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
  1889. Frame.Parent = TeleportGui
  1890. local TextLabel = Instance.new("TextLabel")
  1891. TextLabel.Name = "X Label"
  1892. TextLabel.Size = UDim2.new(1, -15, 0, 15)
  1893. TextLabel.Position = UDim2.new(0, 15, 0, 15)
  1894. TextLabel.BorderSizePixel = 0
  1895. TextLabel.BackgroundTransparency = 1
  1896. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  1897. TextLabel.Text = "X coordinate:"
  1898. TextLabel.TextXAlignment = "Left"
  1899. TextLabel.FontSize = "Size12"
  1900. TextLabel.TextWrap = true
  1901. TextLabel.Parent = TeleportGui.Content
  1902. local TextLabel = TextLabel:Clone()
  1903. TextLabel.Name = "Y Label"
  1904. TextLabel.Position = UDim2.new(0, 15, 0, 45)
  1905. TextLabel.Text = "Y coordinate:"
  1906. TextLabel.Parent = TeleportGui.Content
  1907. local TextLabel = TextLabel:Clone()
  1908. TextLabel.Name = "Z Label"
  1909. TextLabel.Position = UDim2.new(0, 15, 0, 75)
  1910. TextLabel.Text = "Z coordinate:"
  1911. TextLabel.Parent = TeleportGui.Content
  1912. local TextBox = Instance.new("TextBox")
  1913. TextBox.Name = "X"
  1914. TextBox.ClearTextOnFocus = false
  1915. TextBox.Size = UDim2.new(1, -130, 0, 15)
  1916. TextBox.Position = UDim2.new(0, 115, 0, 15)
  1917. TextBox.BorderColor3 = Color3.new(0, 0, 0)
  1918. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  1919. TextBox.TextColor3 = Color3.new(0, 0, 0)
  1920. TextBox.Text = "0"
  1921. TextBox.TextXAlignment = "Left"
  1922. TextBox.FontSize = "Size12"
  1923. TextBox.Parent = TeleportGui.Content
  1924. local TextBox = TextBox:Clone()
  1925. TextBox.Name = "Y"
  1926. TextBox.Position = UDim2.new(0, 115, 0, 45)
  1927. TextBox.Parent = TeleportGui.Content
  1928. local TextBox = TextBox:Clone()
  1929. TextBox.Name = "Z"
  1930. TextBox.Position = UDim2.new(0, 115, 0, 75)
  1931. TextBox.Parent = TeleportGui.Content
  1932. local Divider = Instance.new("Frame")
  1933. Divider.Name = "Divider"
  1934. Divider.Size = UDim2.new(1, -30, 0, 1)
  1935. Divider.Position = UDim2.new(0, 15, 0, 100)
  1936. Divider.BorderSizePixel = 0
  1937. Divider.BackgroundColor3 = Color3.new(1, 1, 1)
  1938. Divider.Parent = TeleportGui.Content
  1939. local TextLabel = TextLabel:Clone()
  1940. TextLabel.Name = "CX"
  1941. TextLabel.Position = UDim2.new(0, 15, 0, 110)
  1942. TextLabel.Text = "Current X coordinate: "
  1943. TextLabel.Parent = TeleportGui.Content
  1944. local TextLabel = TextLabel:Clone()
  1945. TextLabel.Name = "CY"
  1946. TextLabel.Position = UDim2.new(0, 15, 0, 140)
  1947. TextLabel.Text = "Current Y coordinate: "
  1948. TextLabel.Parent = TeleportGui.Content
  1949. local TextLabel = TextLabel:Clone()
  1950. TextLabel.Name = "CZ"
  1951. TextLabel.Position = UDim2.new(0, 15, 0, 170)
  1952. TextLabel.Text = "Current Z coordinate: "
  1953. TextLabel.Parent = TeleportGui.Content
  1954. local Divider = Divider:Clone()
  1955. Divider.Position = UDim2.new(0, 15, 0, 195)
  1956. Divider.BorderSizePixel = 0
  1957. Divider.BackgroundColor3 = Color3.new(1, 1, 1)
  1958. Divider.Parent = TeleportGui.Content
  1959. local TextButton = Instance.new("TextButton")
  1960. TextButton.Name = "Teleport"
  1961. TextButton.Size = UDim2.new(1, -30, 0, 15)
  1962. TextButton.Position = UDim2.new(0, 15, 0, 205)
  1963. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  1964. TextButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  1965. TextButton.TextColor3 = Color3.new(1, 1, 1)
  1966. TextButton.Text = "Begin Teleportation"
  1967. TextButton.FontSize = "Size12"
  1968. TextButton.Parent = TeleportGui.Content
  1969. TextButton.MouseButton1Up:connect(function()
  1970. Teleport(Vector3.new(tonumber(TeleportGui.Content.X.Text), tonumber(TeleportGui.Content.Y.Text), tonumber(TeleportGui.Content.Z.Text)))
  1971. end)
  1972. coroutine.wrap(function()
  1973. wait()
  1974. while TextButton.Parent ~= nil do
  1975. if TeleportReady == false or DoorOpen == true then
  1976. TextButton.AutoButtonColor = false
  1977. TextButton.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  1978. else
  1979. TextButton.AutoButtonColor = true
  1980. TextButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  1981. end
  1982. wait(0.1)
  1983. end
  1984. end)()
  1985. local TextButton = TextButton:Clone()
  1986. TextButton.Name = "Set Inputs to Current Coordinates"
  1987. TextButton.Position = UDim2.new(0, 15, 0, 220)
  1988. TextButton.Text = "Set Inputs to Current Coordinates"
  1989. TextButton.Parent = TeleportGui.Content
  1990. TextButton.MouseButton1Up:connect(function()
  1991. TeleportGui.Content.X.Text = string.sub(Exterior.Base.Position.x, 0, 12)
  1992. TeleportGui.Content.Y.Text = string.sub(Exterior.Base.Position.y, 0, 12)
  1993. TeleportGui.Content.Z.Text = string.sub(Exterior.Base.Position.z, 0, 12)
  1994. end)
  1995. local TextButton = TextButton:Clone()
  1996. TextButton.Name = "Waypoints"
  1997. TextButton.Position = UDim2.new(0, 15, 0, 235)
  1998. TextButton.Text = "Open Waypoints Dialogue..."
  1999. TextButton.Parent = TeleportGui.Content
  2000. TextButton.MouseButton1Up:connect(function()
  2001. pcall(function() TeleportGui.Content["Players List"]:Remove() end)
  2002. pcall(function() TeleportGui.Content["Waypoints List"]:Remove() end)
  2003. local Frame = Frame:Clone()
  2004. Frame.Parent = TeleportGui.Content
  2005. Frame.Name = "Waypoints List"
  2006. Frame.Position = UDim2.new(1, 0, 0, 0)
  2007. Frame.Size = UDim2.new(1, 0, 0, 75)
  2008. for _, Part in pairs(Frame:GetChildren()) do
  2009. Part:Remove()
  2010. end
  2011. for i = 1, #TeleportWaypoints, 2 do
  2012. local TextButton = TextButton:Clone()
  2013. TextButton.Parent = Frame
  2014. TextButton.Name = TeleportWaypoints[i].. " Waypoint"
  2015. TextButton.Text = TeleportWaypoints[i]
  2016. TextButton.Size = UDim2.new(1, -45, 0, 15)
  2017. TextButton.Position = UDim2.new(0, 15, 0, Frame.Size.Y.Offset - 60)
  2018. TextButton.MouseButton1Up:connect(function()
  2019. TeleportGui.Content.X.Text = TeleportWaypoints[i + 1].x
  2020. TeleportGui.Content.Y.Text = TeleportWaypoints[i + 1].y
  2021. TeleportGui.Content.Z.Text = TeleportWaypoints[i + 1].z
  2022. end)
  2023. local TextButton = TextButton:Clone()
  2024. TextButton.Parent = Frame
  2025. TextButton.Name = TeleportWaypoints[i].. " Remove"
  2026. TextButton.Text = "X"
  2027. TextButton.Size = UDim2.new(0, 15, 0, 15)
  2028. TextButton.Position = UDim2.new(1, -30, 0, Frame.Size.Y.Offset - 60)
  2029. Frame.Size = Frame.Size + UDim2.new(0, 0, 0, 15)
  2030. TextButton.MouseButton1Up:connect(function()
  2031. for x = 1, 2 do
  2032. table.remove(TeleportWaypoints, i)
  2033. end
  2034. Frame:Remove()
  2035. end)
  2036. end
  2037. local TextButton = TextButton:Clone()
  2038. TextButton.Parent = Frame
  2039. TextButton.Name = "Create Waypoint"
  2040. TextButton.Text = "Create Waypoint"
  2041. TextButton.Size = UDim2.new(1, -30, 0, 15)
  2042. TextButton.Position = UDim2.new(0, 15, 0, Frame.Size.Y.Offset - 45)
  2043. TextButton.MouseButton1Up:connect(function()
  2044. local WaypointButton = Frame["Create Waypoint"]
  2045. WaypointButton.Parent = nil
  2046. local TextBox = TextBox:Clone()
  2047. TextBox.Parent = Frame
  2048. TextBox.Name = "Waypoint Name"
  2049. TextBox.Size = UDim2.new(1, -60, 0, 15)
  2050. TextBox.Position = WaypointButton.Position
  2051. TextBox.Text = "Waypoint Name"
  2052. local TextButton = TextButton:Clone()
  2053. TextButton.Parent = Frame
  2054. TextButton.Name = "Cancel"
  2055. TextButton.Size = UDim2.new(0, 15, 0, 15)
  2056. TextButton.Text = "X"
  2057. TextButton.Position = UDim2.new(1, -45, 0, WaypointButton.Position.Y.Offset)
  2058. TextButton.MouseButton1Up:connect(function()
  2059. Frame["Waypoint Name"]:Remove()
  2060. Frame["Cancel"]:Remove()
  2061. Frame["Save"]:Remove()
  2062. WaypointButton.Parent = Frame
  2063. end)
  2064. local TextButton = TextButton:Clone()
  2065. TextButton.Parent = Frame
  2066. TextButton.Name = "Save"
  2067. TextButton.Size = UDim2.new(0, 15, 0, 15)
  2068. TextButton.Text = ">"
  2069. TextButton.Position = UDim2.new(1, -30, 0, WaypointButton.Position.Y.Offset)
  2070. TextButton.MouseButton1Up:connect(function()
  2071. table.insert(TeleportWaypoints, TextBox.Text)
  2072. table.insert(TeleportWaypoints, Vector3.new(tonumber(string.sub(Exterior.Base.Position.x, 0, 12)), tonumber(string.sub(Exterior.Base.Position.y, 0, 12)), tonumber(string.sub(Exterior.Base.Position.z, 0, 12))))
  2073. Frame:Remove()
  2074. end)
  2075. end)
  2076. local TextButton = TextButton:Clone()
  2077. TextButton.Parent = Frame
  2078. TextButton.Name = "Close"
  2079. TextButton.Text = "Close"
  2080. TextButton.Position = UDim2.new(0, 15, 0, Frame.Size.Y.Offset - 30)
  2081. TextButton.MouseButton1Up:connect(function() Frame:Remove() end)
  2082. end)
  2083. local TextButton = TextButton:Clone()
  2084. TextButton.Name = "Players"
  2085. TextButton.Position = UDim2.new(0, 15, 0, 250)
  2086. TextButton.Text = "Open Players Dialogue..."
  2087. TextButton.Parent = TeleportGui.Content
  2088. TextButton.MouseButton1Up:connect(function()
  2089. pcall(function() TeleportGui.Content["Players List"]:Remove() end)
  2090. pcall(function() TeleportGui.Content["Waypoints List"]:Remove() end)
  2091. local Frame = Frame:Clone()
  2092. Frame.Parent = TeleportGui.Content
  2093. Frame.Name = "Players List"
  2094. Frame.Position = UDim2.new(1, 0, 0, 0)
  2095. Frame.Size = UDim2.new(1, 0, 0, 60)
  2096. for _, Part in pairs(Frame:GetChildren()) do
  2097. Part:Remove()
  2098. end
  2099. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  2100. local TextButton = TextButton:Clone()
  2101. TextButton.Parent = Frame
  2102. TextButton.Name = PlayerList.Name
  2103. TextButton.Text = PlayerList.Name
  2104. TextButton.Position = UDim2.new(0, 15, 0, Frame.Size.Y.Offset - 45)
  2105. Frame.Size = Frame.Size + UDim2.new(0, 0, 0, 15)
  2106. if (function()
  2107. if PlayerList == TeleportPlayer then return false end
  2108. if PlayerList.Character == nil then return false end
  2109. if PlayerList.Character:FindFirstChild("Torso") == nil then return false end
  2110. if (PlayerList.Character.Torso.Position - TARDIS.Interior.Base.Position).magnitude < 250 then return false end
  2111. return true
  2112. end)() == false then
  2113. TextButton.AutoButtonColor = false
  2114. TextButton.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2115. else
  2116. TextButton.MouseButton1Up:connect(function()
  2117. pcall(function()
  2118. TeleportGui.Content.X.Text = PlayerList.Character.Torso.Position.x
  2119. TeleportGui.Content.Y.Text = PlayerList.Character.Torso.Position.y
  2120. TeleportGui.Content.Z.Text = PlayerList.Character.Torso.Position.z
  2121. end)
  2122. end)
  2123. end
  2124. end
  2125. local TextButton = TextButton:Clone()
  2126. TextButton.Parent = Frame
  2127. TextButton.Name = "Close"
  2128. TextButton.Text = "Close"
  2129. TextButton.Position = UDim2.new(0, 15, 0, Frame.Size.Y.Offset - 30)
  2130. TextButton.MouseButton1Up:connect(function() Frame:Remove() end)
  2131. end)
  2132. local TextButton = TextButton:Clone()
  2133. TextButton.Name = "Clear"
  2134. TextButton.Position = UDim2.new(0, 15, 0, 265)
  2135. TextButton.Text = "Clear Inputs"
  2136. TextButton.Parent = TeleportGui.Content
  2137. TextButton.MouseButton1Up:connect(function()
  2138. TeleportGui.Content.X.Text = 0
  2139. TeleportGui.Content.Y.Text = 0
  2140. TeleportGui.Content.Z.Text = 0
  2141. end)
  2142. coroutine.wrap(function()
  2143. local TextCX = TeleportGui.Content.CX.Text
  2144. local TextCY = TeleportGui.Content.CY.Text
  2145. local TextCZ = TeleportGui.Content.CZ.Text
  2146. while TeleportGui.Parent ~= nil do
  2147. TeleportGui.Content.CX.Text = TextCX .. string.sub(Exterior.Base.Position.x, 0, 12)
  2148. TeleportGui.Content.CY.Text = TextCY .. string.sub(Exterior.Base.Position.y, 0, 12)
  2149. TeleportGui.Content.CZ.Text = TextCZ .. string.sub(Exterior.Base.Position.z, 0, 12)
  2150. wait()
  2151. end
  2152. end)()
  2153. end
  2154. end
  2155. elseif Seat:FindFirstChild("SeatWeld") == nil and TeleportPlayer ~= nil then
  2156. if TeleportPlayer:FindFirstChild("PlayerGui") ~= nil then
  2157. if TeleportPlayer.PlayerGui:FindFirstChild("TeleportGui") ~= nil then
  2158. TeleportPlayer.PlayerGui.TeleportGui:Remove()
  2159. end
  2160. end
  2161. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2162. Camera.CameraSubject.Value = TeleportPlayer.Character.Humanoid
  2163. Camera.CameraType.Value = Enum.CameraType.Custom.Value
  2164. Camera.Disabled = false
  2165. wait(0.05)
  2166. Camera.Parent = TeleportPlayer.Character
  2167. TeleportPlayer = nil
  2168. end
  2169. end
  2170. local Seat = Interior:FindFirstChild("Radar Seat")
  2171. if Seat ~= nil then
  2172. if Seat:FindFirstChild("SeatWeld") ~= nil and RadarPlayer == nil then
  2173. local Part1 = Seat.SeatWeld.Part1
  2174. if Part1 ~= nil then
  2175. RadarPlayer = game:service("Players"):GetPlayerFromCharacter(Part1.Parent)
  2176. if RadarPlayer ~= nil then
  2177. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2178. Camera.CameraSubject.Value = Exterior.Base
  2179. Camera.CameraType.Value = Enum.CameraType.Track.Value
  2180. Camera.Disabled = false
  2181. wait(0.05)
  2182. Camera.Parent = Part1.Parent
  2183. local PlayerGui = RadarPlayer:FindFirstChild("PlayerGui")
  2184. if PlayerGui == nil then return end
  2185. local RadarGui = Instance.new("ScreenGui", PlayerGui)
  2186. RadarGui.Name = "RadarGui"
  2187. local ImageLabel = Instance.new("ImageLabel")
  2188. ImageLabel.Name = "Content"
  2189. ImageLabel.Image = "http://www.roblox.com/Asset/?id=19617472"
  2190. ImageLabel.Size = UDim2.new(0, 400, 0, 400)
  2191. ImageLabel.Position = UDim2.new(0, 0, 0.5, -400 / 2)
  2192. ImageLabel.BorderSizePixel = 0
  2193. ImageLabel.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
  2194. ImageLabel.Parent = RadarGui
  2195. local TextLabel = Instance.new("TextLabel")
  2196. TextLabel.Name = "Current Coordinates"
  2197. TextLabel.Size = UDim2.new(1, 0, 0, 15)
  2198. TextLabel.Position = UDim2.new(0, 15, 1, -20)
  2199. TextLabel.BorderSizePixel = 0
  2200. TextLabel.BackgroundTransparency = 1
  2201. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  2202. TextLabel.Text = "Current coordinates: "
  2203. TextLabel.TextXAlignment = "Left"
  2204. TextLabel.FontSize = "Size12"
  2205. TextLabel.Parent = ImageLabel
  2206. coroutine.wrap(function()
  2207. local Text = RadarGui.Content["Current Coordinates"].Text
  2208. local Blip = Instance.new("Frame")
  2209. Blip.Name = "Blip"
  2210. Blip.BorderColor3 = Color3.new(0, 0, 0)
  2211. Blip.BackgroundColor3 = Color3.new(0, 1, 0)
  2212. Blip.Size = UDim2.new(0, 10, 0, 10)
  2213. local BlipText = TextLabel:Clone()
  2214. BlipText.Name = "Blip Text"
  2215. BlipText.TextColor3 = Color3.new(0, 1, 0)
  2216. BlipText.Size = UDim2.new(0, 0, 0, 15)
  2217. BlipText.TextXAlignment = "Center"
  2218. while RadarGui.Parent ~= nil do
  2219. RadarGui.Content["Current Coordinates"].Text = Text.. "(" ..math.floor(Exterior.Base.Position.x).. ", " ..math.floor(Exterior.Base.Position.y).. ", " ..math.floor(Exterior.Base.Position.z).. ")"
  2220. for _, Part in pairs(RadarGui.Content:GetChildren()) do
  2221. if Part.Name == "Blip" or Part.Name == "Blip Text" then
  2222. Part:Remove()
  2223. end
  2224. end
  2225. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  2226. if PlayerList.Character ~= nil then
  2227. if PlayerList.Character:FindFirstChild("Torso") ~= nil then
  2228. local Distance = (Exterior.Base.Position - PlayerList.Character.Torso.Position)
  2229. if Distance.magnitude < RadarMaxDistance then
  2230. local NewBlip = Blip:Clone()
  2231. NewBlip.Parent = RadarGui.Content
  2232. NewBlip.Position = UDim2.new(0, (Distance.x * ((RadarGui.Content.Size.X.Offset / RadarMaxDistance) / 2)) + (RadarGui.Content.Size.X.Offset / 2) + 5, 0, (Distance.z * ((RadarGui.Content.Size.Y.Offset / RadarMaxDistance) / 2)) + (RadarGui.Content.Size.Y.Offset / 2) + 5)
  2233. local NewBlipText = BlipText:Clone()
  2234. NewBlipText.Parent = RadarGui.Content
  2235. NewBlipText.Text = PlayerList.Name
  2236. NewBlipText.Position = NewBlip.Position + UDim2.new(0, 5, 0, 15)
  2237. end
  2238. end
  2239. end
  2240. end
  2241. wait(0.1)
  2242. end
  2243. end)()
  2244. end
  2245. end
  2246. elseif Seat:FindFirstChild("SeatWeld") == nil and RadarPlayer ~= nil then
  2247. if RadarPlayer:FindFirstChild("PlayerGui") ~= nil then
  2248. if RadarPlayer.PlayerGui:FindFirstChild("RadarGui") ~= nil then
  2249. RadarPlayer.PlayerGui.RadarGui:Remove()
  2250. end
  2251. end
  2252. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2253. Camera.CameraSubject.Value = RadarPlayer.Character.Humanoid
  2254. Camera.CameraType.Value = Enum.CameraType.Custom.Value
  2255. Camera.Disabled = false
  2256. wait(0.05)
  2257. Camera.Parent = RadarPlayer.Character
  2258. RadarPlayer = nil
  2259. end
  2260. end
  2261. local Seat = Interior:FindFirstChild("Fly Seat")
  2262. if Seat ~= nil then
  2263. if Seat:FindFirstChild("SeatWeld") ~= nil and FlyPlayer == nil then
  2264. local Part1 = Seat.SeatWeld.Part1
  2265. if Part1 ~= nil then
  2266. FlyPlayer = game:service("Players"):GetPlayerFromCharacter(Part1.Parent)
  2267. if FlyPlayer ~= nil then
  2268. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2269. Camera.CameraSubject.Value = Exterior.Base
  2270. Camera.CameraType.Value = Enum.CameraType.Track.Value
  2271. Camera.Disabled = false
  2272. wait(0.05)
  2273. Camera.Parent = Part1.Parent
  2274. local PlayerGui = FlyPlayer:FindFirstChild("PlayerGui")
  2275. if PlayerGui == nil then return end
  2276. local FlyGui = Instance.new("ScreenGui", PlayerGui)
  2277. FlyGui.Name = "FlyGui"
  2278. local Frame = Instance.new("Frame")
  2279. Frame.Name = "Content"
  2280. Frame.Size = UDim2.new(0, 150, 0, 300)
  2281. Frame.Position = UDim2.new(0, 0, 0.5, -300 / 2)
  2282. Frame.BorderSizePixel = 1
  2283. Frame.BorderColor3 = Color3.new(0, 0, 0)
  2284. Frame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
  2285. Frame.Parent = FlyGui
  2286. local TextLabel = Instance.new("TextLabel")
  2287. TextLabel.Name = "Speed"
  2288. TextLabel.Size = UDim2.new(0, 95, 0, 15)
  2289. TextLabel.Position = UDim2.new(0, 0, 0, 0)
  2290. TextLabel.BorderSizePixel = 0
  2291. TextLabel.BackgroundTransparency = 1
  2292. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  2293. TextLabel.Text = "Speed: "
  2294. TextLabel.TextXAlignment = "Left"
  2295. TextLabel.FontSize = "Size12"
  2296. TextLabel.Parent = FlyGui.Content
  2297. local TextLabel = TextLabel:Clone()
  2298. TextLabel.Name = "XS"
  2299. TextLabel.Size = UDim2.new(0, 50, 0, 15)
  2300. TextLabel.Position = UDim2.new(1, -50, 0, 0)
  2301. TextLabel.Text = "X: "
  2302. TextLabel.Parent = FlyGui.Content
  2303. local TextLabel = TextLabel:Clone()
  2304. TextLabel.Name = "YS"
  2305. TextLabel.Position = UDim2.new(1, -50, 0, 17)
  2306. TextLabel.Text = "Y: "
  2307. TextLabel.Parent = FlyGui.Content
  2308. local TextLabel = TextLabel:Clone()
  2309. TextLabel.Name = "ZS"
  2310. TextLabel.Position = UDim2.new(1, -50, 0, 34)
  2311. TextLabel.Text = "Z: "
  2312. TextLabel.Parent = FlyGui.Content
  2313. local TextButton = Instance.new("TextButton")
  2314. TextButton.Name = "X+"
  2315. TextButton.Size = UDim2.new(0, 50, 0, 50)
  2316. TextButton.Position = UDim2.new(0, 0, 0, 100)
  2317. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  2318. TextButton.BackgroundColor3 = Color3.new(0.9, 0, 0)
  2319. TextButton.TextColor3 = Color3.new(1, 1, 1)
  2320. TextButton.Text = "X +"
  2321. TextButton.FontSize = "Size18"
  2322. TextButton.Parent = FlyGui.Content
  2323. TextButton.MouseButton1Up:connect(function()
  2324. Flying = true
  2325. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2326. ExteriorVelocityTarget = Vector3.new(FlySpeed, ExteriorVelocity.velocity.y, ExteriorVelocity.velocity.z)
  2327. end)
  2328. local TextButton = TextButton:Clone()
  2329. TextButton.Name = "X-"
  2330. TextButton.Position = UDim2.new(0, 100, 0, 100)
  2331. TextButton.Text = "X -"
  2332. TextButton.Parent = FlyGui.Content
  2333. TextButton.MouseButton1Up:connect(function()
  2334. Flying = true
  2335. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2336. ExteriorVelocityTarget = Vector3.new(-FlySpeed, ExteriorVelocity.velocity.y, ExteriorVelocity.velocity.z)
  2337. end)
  2338. local TextButton = TextButton:Clone()
  2339. TextButton.Name = "Y+"
  2340. TextButton.Position = UDim2.new(0, 100, 0, 50)
  2341. TextButton.BackgroundColor3 = Color3.new(0, 0.9, 0)
  2342. TextButton.Text = "Y +"
  2343. TextButton.Parent = FlyGui.Content
  2344. TextButton.MouseButton1Up:connect(function()
  2345. Flying = true
  2346. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2347. ExteriorVelocityTarget = Vector3.new(ExteriorVelocity.velocity.x, FlySpeed, ExteriorVelocity.velocity.z)
  2348. end)
  2349. local TextButton = TextButton:Clone()
  2350. TextButton.Name = "Y-"
  2351. TextButton.Position = UDim2.new(0, 100, 0, 150)
  2352. TextButton.Text = "Y -"
  2353. TextButton.Parent = FlyGui.Content
  2354. TextButton.MouseButton1Up:connect(function()
  2355. Flying = true
  2356. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2357. ExteriorVelocityTarget = Vector3.new(ExteriorVelocity.velocity.x, -FlySpeed, ExteriorVelocity.velocity.z)
  2358. end)
  2359. local TextButton = TextButton:Clone()
  2360. TextButton.Name = "Z+"
  2361. TextButton.Position = UDim2.new(0, 50, 0, 50)
  2362. TextButton.BackgroundColor3 = Color3.new(0, 0, 0.9)
  2363. TextButton.Text = "Z +"
  2364. TextButton.Parent = FlyGui.Content
  2365. TextButton.MouseButton1Up:connect(function()
  2366. Flying = true
  2367. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2368. ExteriorVelocityTarget = Vector3.new(ExteriorVelocity.velocity.x, ExteriorVelocity.velocity.y, FlySpeed)
  2369. end)
  2370. local TextButton = TextButton:Clone()
  2371. TextButton.Name = "Z-"
  2372. TextButton.Position = UDim2.new(0, 50, 0, 150)
  2373. TextButton.Text = "Z -"
  2374. TextButton.Parent = FlyGui.Content
  2375. TextButton.MouseButton1Up:connect(function()
  2376. Flying = true
  2377. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2378. ExteriorVelocityTarget = Vector3.new(ExteriorVelocity.velocity.x, ExteriorVelocity.velocity.y, -FlySpeed)
  2379. end)
  2380. local TextButton = TextButton:Clone()
  2381. TextButton.Name = "S+"
  2382. TextButton.Position = UDim2.new(0, 0, 0, 50)
  2383. TextButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  2384. TextButton.Text = "S +"
  2385. TextButton.Parent = FlyGui.Content
  2386. local SpeedUp = false
  2387. TextButton.MouseButton1Down:connect(function()
  2388. SpeedUp = true
  2389. FlySpeed = FlySpeed + 1
  2390. for i = 0, 0.5, wait() do
  2391. if SpeedUp == false then return end
  2392. wait()
  2393. end
  2394. while SpeedUp == true do
  2395. FlySpeed = FlySpeed + 1
  2396. wait()
  2397. end
  2398. end)
  2399. TextButton.MouseButton1Up:connect(function()
  2400. SpeedUp = false
  2401. end)
  2402. local TextButton = TextButton:Clone()
  2403. TextButton.Name = "S-"
  2404. TextButton.Position = UDim2.new(0, 0, 0, 150)
  2405. TextButton.Text = "S -"
  2406. TextButton.Parent = FlyGui.Content
  2407. local SpeedDown = false
  2408. TextButton.MouseButton1Down:connect(function()
  2409. SpeedDown = true
  2410. FlySpeed = FlySpeed - 1
  2411. for i = 0, 0.5, wait() do
  2412. if SpeedDown == false then return end
  2413. wait()
  2414. end
  2415. while SpeedDown == true do
  2416. FlySpeed = FlySpeed - 1
  2417. wait()
  2418. end
  2419. end)
  2420. TextButton.MouseButton1Up:connect(function()
  2421. SpeedDown = false
  2422. end)
  2423. local TextButton = TextButton:Clone()
  2424. TextButton.Name = "Stop"
  2425. TextButton.Position = UDim2.new(0, 50, 0, 100)
  2426. TextButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  2427. TextButton.Text = "Stop"
  2428. TextButton.Parent = FlyGui.Content
  2429. TextButton.MouseButton1Up:connect(function()
  2430. Flying = true
  2431. ExteriorVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2432. ExteriorVelocityTarget = Vector3.new()
  2433. end)
  2434. local TextButton = TextButton:Clone()
  2435. TextButton.Name = "Land"
  2436. TextButton.Size = UDim2.new(1, 0, 0, 50)
  2437. TextButton.Position = UDim2.new(0, 0, 0, 200)
  2438. TextButton.Text = "Land"
  2439. TextButton.Parent = FlyGui.Content
  2440. TextButton.MouseButton1Up:connect(function()
  2441. Flying = false
  2442. ExteriorVelocity.maxForce = Vector3.new()
  2443. ExteriorVelocityTarget = Vector3.new()
  2444. end)
  2445. local Divider = Instance.new("Frame")
  2446. Divider.Name = "Divider"
  2447. Divider.Size = UDim2.new(1, -30, 0, 2)
  2448. Divider.Position = UDim2.new(0, 15, 0, 257)
  2449. Divider.BorderSizePixel = 0
  2450. Divider.BackgroundColor3 = Color3.new(1, 1, 1)
  2451. Divider.Parent = FlyGui.Content
  2452. local TextButton = TextButton:Clone()
  2453. TextButton.Name = "Stabalize"
  2454. TextButton.Size = UDim2.new(1, -30, 0, 15)
  2455. TextButton.Position = UDim2.new(0, 15, 0, 270)
  2456. TextButton.Text = (FlyStabalize == false and "S" or "Des").. "tabalize"
  2457. TextButton.FontSize = "Size12"
  2458. TextButton.Parent = FlyGui.Content
  2459. TextButton.MouseButton1Up:connect(function()
  2460. if TeleportReady == false then return end
  2461. if FlyStabalize == false then
  2462. FlyStabalize = true
  2463. ExteriorGyro.maxTorque = Vector3.new(math.huge, 0, math.huge)
  2464. while FlyStabalize == true do
  2465. ExteriorGyro.cframe = CFrame.new(Exterior.Base.Position) * CFrame.new(0, 0, 10)
  2466. wait()
  2467. end
  2468. else
  2469. FlyStabalize = false
  2470. ExteriorGyro.maxTorque = Vector3.new()
  2471. end
  2472. end)
  2473. coroutine.wrap(function()
  2474. wait()
  2475. while TextButton.Parent ~= nil do
  2476. if TeleportReady == false then
  2477. TextButton.AutoButtonColor = false
  2478. TextButton.Text = "Please wait..."
  2479. TextButton.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2480. else
  2481. TextButton.AutoButtonColor = true
  2482. TextButton.Text = (FlyStabalize == false and "S" or "Des").. "tabalize"
  2483. TextButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  2484. end
  2485. wait(0.1)
  2486. end
  2487. end)()
  2488. coroutine.wrap(function()
  2489. local TextSpeed = FlyGui.Content.Speed.Text
  2490. local TextXS = FlyGui.Content.XS.Text
  2491. local TextYS = FlyGui.Content.YS.Text
  2492. local TextZS = FlyGui.Content.ZS.Text
  2493. while FlyGui.Parent ~= nil do
  2494. FlyGui.Content.Speed.Text = TextSpeed .. FlySpeed
  2495. FlyGui.Content.XS.Text = TextXS .. ExteriorVelocity.velocity.x
  2496. FlyGui.Content.YS.Text = TextYS .. ExteriorVelocity.velocity.y
  2497. FlyGui.Content.ZS.Text = TextZS .. ExteriorVelocity.velocity.z
  2498. wait()
  2499. end
  2500. end)()
  2501. end
  2502. end
  2503. elseif Seat:FindFirstChild("SeatWeld") == nil and FlyPlayer ~= nil then
  2504. if FlyPlayer:FindFirstChild("PlayerGui") ~= nil then
  2505. if FlyPlayer.PlayerGui:FindFirstChild("FlyGui") ~= nil then
  2506. FlyPlayer.PlayerGui.FlyGui:Remove()
  2507. end
  2508. end
  2509. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2510. Camera.CameraSubject.Value = FlyPlayer.Character.Humanoid
  2511. Camera.CameraType.Value = Enum.CameraType.Custom.Value
  2512. Camera.Disabled = false
  2513. wait(0.05)
  2514. Camera.Parent = FlyPlayer.Character
  2515. FlyPlayer = nil
  2516. end
  2517. end
  2518. local Seat = Interior:FindFirstChild("Weapon Seat")
  2519. if Seat ~= nil then
  2520. if Seat:FindFirstChild("SeatWeld") ~= nil and WeaponPlayer == nil then
  2521. local Part1 = Seat.SeatWeld.Part1
  2522. if Part1 ~= nil then
  2523. WeaponPlayer = game:service("Players"):GetPlayerFromCharacter(Part1.Parent)
  2524. if WeaponPlayer ~= nil then
  2525. local Base = [=[function Break(Position, Range, Damage, BreakChance, Source, Children)
  2526. if Source == nil then Source = game:service("Workspace") end
  2527. if Children == nil then Children = {} end
  2528. for _, Part in pairs(Source:GetChildren()) do
  2529. if Part:IsA("BasePart") then
  2530. if (Part.Position - Position).magnitude < Range then
  2531. table.insert(Children, Part)
  2532. local Percent = 1 - ((Part.Position - Position).magnitude / Range)
  2533. if Part.Anchored == false then
  2534. Part.Velocity = Part.Velocity + ((Part.Position - Position).unit * (Damage * Percent))
  2535. end
  2536. if BreakChance ~= nil then
  2537. if math.random(0, BreakChance * ((Part.Position - Position).magnitude / Range)) == 0 then
  2538. Part:BreakJoints()
  2539. if Part:GetMass() < Damage * 10 then
  2540. Part.Anchored = false
  2541. end
  2542. end
  2543. end
  2544. if Part.Parent:FindFirstChild("Humanoid") ~= nil then
  2545. pcall(function()
  2546. Part.Parent.Humanoid:TakeDamage(Damage * Percent)
  2547. if math.random(0, (1 - Percent) * 5) == 0 then Part.Parent.Humanoid.Sit = true end
  2548. end)
  2549. end
  2550. end
  2551. end
  2552. Break(Position, Range, Damage, BreakChance, Part, Children)
  2553. end
  2554. return Children
  2555. end
  2556. function PlaySound(Name, SoundId, Pitch, Volume, Looped, Parent)
  2557. local NewScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  2558. NewScript.Name = "PlaySound"
  2559. NewScript.NewSource.Value = [[local Sound = Instance.new("Sound")
  2560. Sound.Name = "]] ..(Name == nil and "Sound" or Name).. [["
  2561. Sound.SoundId = "]] ..(SoundId == nil and "" or SoundId).. [["
  2562. Sound.Pitch = ]] ..(Pitch == nil and 1 or Pitch).. [[
  2563. Sound.Volume = ]] ..(Volume == nil and 1 or Volume).. [[
  2564. Sound.Looped = ]] ..(Looped == true and "true" or "false").. [[
  2565. Sound.Parent = script.Parent
  2566. Sound:Play()
  2567. script:Remove()]]
  2568. NewScript.Debug:Remove()
  2569. NewScript.Parent = Parent
  2570. end
  2571. function SetPartTouched(Function, Parent)
  2572. pcall(function() Parent.TouchConnector:Remove() end)
  2573. local NewScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  2574. NewScript.Name = "TouchConnector"
  2575. NewScript.NewSource.Value = [[script.Parent.Touched:connect(function(Hit)
  2576. ]] ..Function.. [[
  2577. end)]]
  2578. NewScript.Debug:Remove()
  2579. NewScript.Parent = Parent
  2580. end
  2581. ]=]
  2582. WeaponLaser = Instance.new("HopperBin")
  2583. WeaponLaser.Name = "Laser"
  2584. game:service("InsertService"):LoadAsset(52060642):GetChildren()[1].Parent = WeaponLaser
  2585. local WeaponLaserScript = game:service("InsertService"):LoadAsset(54471119)["QuickLocalScript"]
  2586. WeaponLaserScript.Name = "Main"
  2587. WeaponLaserScript.NewSource.Value = Base ..[=[
  2588. local SourcePart = script.SourcePart.Value
  2589. local Button1Down = false
  2590. local Debounce = false
  2591. script.Parent.Selected:connect(function(Mouse)
  2592. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  2593. Mouse.Button1Down:connect(function()
  2594. Button1Down = true
  2595. if Debounce == true then
  2596. PlaySound("Tick", "http://www.roblox.com/Asset/?id=14863866", 2, 1, false, SourcePart)
  2597. return
  2598. end
  2599. Mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  2600. Debounce = true
  2601. while Button1Down == true do
  2602. if Mouse.Target == nil then
  2603. PlaySound("Tick", "http://www.roblox.com/Asset/?id=14863866", 1, 1, false, SourcePart)
  2604. else
  2605. local Position = _G.RCS.RayCast(CFrame.new(SourcePart.Position, Mouse.Hit.p) * CFrame.new(0, 0, -5), 500, 0.5)
  2606. local Laser = Instance.new("Part", game:service("Workspace"))
  2607. Laser.Name = "TARDIS Laser"
  2608. Laser.BrickColor = BrickColor.new("Bright blue")
  2609. Laser.TopSurface = 0
  2610. Laser.BottomSurface = 0
  2611. Laser.formFactor = "Custom"
  2612. Laser.Transparency = 0.5
  2613. Laser.Size = Vector3.new((script.Power.Value * 1.5), (script.Power.Value * 1.5), (SourcePart.Position - Position).magnitude)
  2614. Laser.Anchored = true
  2615. Laser.CanCollide = false
  2616. Laser.CFrame = CFrame.new((SourcePart.Position + Position) / 2, Position)
  2617. game:service("Debris"):AddItem(Laser, 3)
  2618. PlaySound("Laser", "http://www.roblox.com/Asset/?id=13775480", 2, 1, false, Laser)
  2619. local Explosion = Laser:Clone()
  2620. Explosion.Parent = game:service("Workspace")
  2621. Explosion.Name = "TARDIS Laser Explosion"
  2622. Explosion.Transparency = 0
  2623. Explosion.Size = Vector3.new(1, 1, 1)
  2624. Explosion.CFrame = CFrame.new(Position)
  2625. local Mesh = Instance.new("SpecialMesh", Explosion)
  2626. Mesh.MeshType = "Sphere"
  2627. game:service("Debris"):AddItem(Explosion, 3)
  2628. local Glow = Explosion:Clone()
  2629. Glow.Parent = game:service("Workspace")
  2630. Glow.Name = "TARDIS Laser Glow"
  2631. Glow.CFrame = CFrame.new(SourcePart.Position)
  2632. game:service("Debris"):AddItem(Glow, 3)
  2633. Break(Position, script.Power.Value * 20, script.Power.Value * 50, (1 - script.Power.Value) * 75 + 10)
  2634. coroutine.wrap(function()
  2635. local OldCFrame = Laser.CFrame
  2636. for i = Laser.Transparency, 1, 0.05 do
  2637. Laser.Size = Vector3.new(Laser.Size.x / 1.05, Laser.Size.y / 1.05, Laser.Size.z)
  2638. Laser.CFrame = OldCFrame
  2639. Laser.Transparency = i
  2640. Laser.Anchored = true
  2641. Laser.Velocity = Vector3.new()
  2642. Laser.RotVelocity = Vector3.new()
  2643. wait()
  2644. end
  2645. Laser:Remove()
  2646. end)()
  2647. coroutine.wrap(function()
  2648. for i = Explosion.Transparency, 1, 0.025 do
  2649. Explosion.Mesh.Scale = Explosion.Mesh.Scale + Vector3.new((1 - i) * (script.Power.Value * 2.5), (1 - i) * (script.Power.Value * 2.5), (1 - i) * (script.Power.Value * 2.5))
  2650. Explosion.Transparency = i
  2651. Explosion.Anchored = true
  2652. Explosion.Velocity = Vector3.new()
  2653. Explosion.RotVelocity = Vector3.new()
  2654. wait()
  2655. end
  2656. Explosion:Remove()
  2657. end)()
  2658. coroutine.wrap(function()
  2659. for i = Glow.Transparency, 1, 0.075 do
  2660. Glow.Mesh.Scale = Glow.Mesh.Scale + Vector3.new((1 - i) * (script.Power.Value * 1.5), (1 - i) * (script.Power.Value * 1.5), (1 - i) * (script.Power.Value * 1.5))
  2661. Glow.Transparency = i
  2662. Glow.Anchored = true
  2663. Glow.Velocity = Vector3.new()
  2664. Glow.RotVelocity = Vector3.new()
  2665. wait()
  2666. end
  2667. Glow:Remove()
  2668. end)()
  2669. end
  2670. wait((1 - script.Power.Value) * 2.25 + 0.75)
  2671. end
  2672. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  2673. Debounce = false
  2674. end)
  2675. Mouse.Button1Up:connect(function()
  2676. Button1Down = false
  2677. end)
  2678. end)
  2679. script.Parent.Deselected:connect(function()
  2680. Button1Down = false
  2681. end)]=]
  2682. Instance.new("ObjectValue", WeaponLaserScript)
  2683. WeaponLaserScript.Value.Value = Exterior.Light
  2684. WeaponLaserScript.Value.Name = "SourcePart"
  2685. Instance.new("NumberValue", WeaponLaserScript)
  2686. WeaponLaserScript.Value.Value = 1
  2687. WeaponLaserScript.Value.Name = "Power"
  2688. WeaponLaserScript.Parent = WeaponLaser
  2689. WeaponLaser.Parent = WeaponPlayer.Backpack
  2690. wait(0.05)
  2691. WeaponBomb = Instance.new("HopperBin", WeaponPlayer.Backpack)
  2692. WeaponBomb.Name = "Bomb"
  2693. local WeaponBombScript = game:service("InsertService"):LoadAsset(54471119)["QuickLocalScript"]
  2694. WeaponBombScript.Name = "Main"
  2695. WeaponBombScript.NewSource.Value = Base ..[=[
  2696. local SourcePart = script.SourcePart.Value
  2697. local Button1Down = false
  2698. local Debounce = false
  2699. script.Parent.Selected:connect(function(Mouse)
  2700. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  2701. Mouse.Button1Down:connect(function()
  2702. Button1Down = true
  2703. if Debounce == true then
  2704. PlaySound("Tick", "http://www.roblox.com/Asset/?id=14863866", 2, 1, false, SourcePart)
  2705. return
  2706. end
  2707. Mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  2708. Debounce = true
  2709. while Button1Down == true do
  2710. local Bomb = Instance.new("Part", game:service("Workspace"))
  2711. Bomb.Name = "TARDIS Bomb"
  2712. Bomb.BrickColor = BrickColor.new("Bright blue")
  2713. Bomb.TopSurface = 0
  2714. Bomb.BottomSurface = 0
  2715. Bomb.formFactor = "Custom"
  2716. Bomb.Transparency = 0.5
  2717. Bomb.Size = Vector3.new(1, 1, 1) * ((script.Power.Value * 5) + 1)
  2718. Bomb.CFrame = SourcePart.CFrame * CFrame.new(0, (-script.Power.Value * 2.75) - 1, 0)
  2719. local Mesh = Instance.new("SpecialMesh", Bomb)
  2720. Mesh.MeshType = "Sphere"
  2721. game:service("Debris"):AddItem(Bomb, 10)
  2722. local BodyVelocity = Instance.new("BodyVelocity", Bomb)
  2723. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2724. BodyVelocity.velocity = Vector3.new(math.random(-10, 10), math.random(-500, -250), math.random(-10, 10))
  2725. local Glow = Bomb:Clone()
  2726. Glow.Parent = game:service("Workspace")
  2727. Glow.Name = "TARDIS Bomb Glow"
  2728. Glow.Size = Vector3.new(1, 1, 1)
  2729. Glow.Anchored = true
  2730. Glow.CanCollide = false
  2731. Glow.CFrame = CFrame.new(SourcePart.Position)
  2732. game:service("Debris"):AddItem(Glow, 3)
  2733. coroutine.wrap(function()
  2734. for i = 1, Bomb.Transparency, -0.075 do
  2735. Bomb.Transparency = i
  2736. wait()
  2737. end
  2738. end)()
  2739. coroutine.wrap(function()
  2740. for i = Glow.Transparency, 1, 0.075 do
  2741. Glow.Mesh.Scale = Glow.Mesh.Scale + (Vector3.new(1, 1, 1) * ((1 - i) * (script.Power.Value * 5) + 2))
  2742. Glow.Transparency = i
  2743. Glow.Anchored = true
  2744. Glow.Velocity = Vector3.new()
  2745. Glow.RotVelocity = Vector3.new()
  2746. wait()
  2747. end
  2748. Glow:Remove()
  2749. end)()
  2750. PlaySound("Bomb", "http://www.roblox.com/Asset/?id=13775480", 0.25, 1, false, Bomb)
  2751. coroutine.wrap(function()
  2752. wait(0.25)
  2753. SetPartTouched([[
  2754. script.Parent.Parent = nil
  2755. local Explosion = Instance.new("Part", game:service("Workspace"))
  2756. Explosion.Name = "TARDIS Bomb Explosion"
  2757. Explosion.BrickColor = BrickColor.new("Bright blue")
  2758. Explosion.TopSurface = 0
  2759. Explosion.BottomSurface = 0
  2760. Explosion.formFactor = "Custom"
  2761. Explosion.Size = Vector3.new(1, 1, 1)
  2762. Explosion.Anchored = true
  2763. Explosion.CanCollide = false
  2764. Explosion.CFrame = CFrame.new(script.Parent.Position)
  2765. local Mesh = Instance.new("SpecialMesh", Explosion)
  2766. Mesh.MeshType = "Sphere"
  2767. Mesh.Scale = Vector3.new(10, 10, 10)
  2768. game:service("Debris"):AddItem(Explosion, 3)
  2769. local Sound = Instance.new("Sound", Explosion)
  2770. Sound.Name = "TARDIS Bomb Sound"
  2771. Sound.SoundId = "http://www.roblox.com/Asset/?id=2101159"
  2772. Sound.Volume = 1
  2773. Sound.Pitch = ((1 - script.Power.Value) * 3) + 2
  2774. Sound:Play()
  2775. Break(script.Parent.Position, script.Power.Value * 50, script.Power.Value * 150, (1 - script.Power.Value) * 25 + 1)
  2776. for i = Explosion.Transparency, 1, 0.025 do
  2777. Explosion.Mesh.Scale = Explosion.Mesh.Scale + (Vector3.new(1, 1, 1) * ((1 - i) * (script.Power.Value * 10) + 2))
  2778. Explosion.Transparency = i
  2779. Explosion.Anchored = true
  2780. Explosion.Velocity = Vector3.new()
  2781. Explosion.RotVelocity = Vector3.new()
  2782. wait()
  2783. end
  2784. Explosion:Remove()
  2785. ]], Bomb)
  2786. end)()
  2787. wait((1 - script.Power.Value) * 5 + 1)
  2788. end
  2789. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  2790. Debounce = false
  2791. end)
  2792. Mouse.Button1Up:connect(function()
  2793. Button1Down = false
  2794. end)
  2795. end)
  2796. script.Parent.Deselected:connect(function()
  2797. Button1Down = false
  2798. end)]=]
  2799. Instance.new("ObjectValue", WeaponBombScript)
  2800. WeaponBombScript.Value.Value = Exterior.Base
  2801. WeaponBombScript.Value.Name = "SourcePart"
  2802. Instance.new("NumberValue", WeaponBombScript)
  2803. WeaponBombScript.Value.Value = 1
  2804. WeaponBombScript.Value.Name = "Power"
  2805. WeaponBombScript.Parent = WeaponBomb
  2806. WeaponBomb.Parent = WeaponPlayer.Backpack
  2807. coroutine.wrap(function()
  2808. while WeaponPlayer ~= nil do
  2809. if WeaponLaser:FindFirstChild("Main") == nil then
  2810. WeaponLaser:Remove()
  2811. else
  2812. if WeaponLaser.Main:FindFirstChild("Power") ~= nil then
  2813. WeaponLaser.Main.Power.Value = EnergyToWeapon
  2814. else
  2815. WeaponLaser:Remove()
  2816. end
  2817. end
  2818. if WeaponBomb:FindFirstChild("Main") == nil then
  2819. WeaponBomb:Remove()
  2820. else
  2821. if WeaponBomb.Main:FindFirstChild("Power") ~= nil then
  2822. WeaponBomb.Main.Power.Value = EnergyToWeapon
  2823. else
  2824. WeaponBomb:Remove()
  2825. end
  2826. end
  2827. if Exterior:FindFirstChild("Light") == nil then
  2828. WeaponLaser:Remove()
  2829. else
  2830. if Exterior.Light:FindFirstChild("Weld") == nil then
  2831. WeaponLaser:Remove()
  2832. end
  2833. end
  2834. if Exterior:FindFirstChild("Base") == nil then
  2835. WeaponBomb:Remove()
  2836. end
  2837. wait()
  2838. end
  2839. end)()
  2840. wait(0.05)
  2841. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2842. Camera.CameraSubject.Value = Exterior.Base
  2843. Camera.CameraType.Value = Enum.CameraType.Track.Value
  2844. Camera.Disabled = false
  2845. wait(0.05)
  2846. Camera.Parent = Part1.Parent
  2847. end
  2848. end
  2849. elseif Seat:FindFirstChild("SeatWeld") == nil and WeaponPlayer ~= nil then
  2850. WeaponLaser.Parent = nil
  2851. WeaponBomb.Parent = nil
  2852. local Camera = game:service("InsertService"):LoadAsset(49712909).Camera
  2853. Camera.CameraSubject.Value = WeaponPlayer.Character.Humanoid
  2854. Camera.CameraType.Value = Enum.CameraType.Custom.Value
  2855. Camera.Disabled = false
  2856. wait(0.05)
  2857. Camera.Parent = WeaponPlayer.Character
  2858. WeaponPlayer = nil
  2859. end
  2860. end
  2861. local Seat = Interior:FindFirstChild("Energy Seat")
  2862. if Seat ~= nil then
  2863. if Seat:FindFirstChild("SeatWeld") ~= nil and EnergyPlayer == nil then
  2864. local Part1 = Seat.SeatWeld.Part1
  2865. if Part1 ~= nil then
  2866. EnergyPlayer = game:service("Players"):GetPlayerFromCharacter(Part1.Parent)
  2867. if EnergyPlayer ~= nil then
  2868. local PlayerGui = EnergyPlayer:FindFirstChild("PlayerGui")
  2869. if PlayerGui == nil then return end
  2870. local EnergyGui = Instance.new("ScreenGui", PlayerGui)
  2871. EnergyGui.Name = "EnergyGui"
  2872. local Frame = Instance.new("Frame")
  2873. Frame.Name = "Content"
  2874. Frame.Size = UDim2.new(0, 500, 0, 550)
  2875. --Frame.Position = UDim2.new(0.5, -500 / 2, 0.5, -500 / 2)
  2876. Frame.Position = UDim2.new(0, 0, 0.5, -500 / 2)
  2877. Frame.BorderSizePixel = 1
  2878. Frame.BorderColor3 = Color3.new(0, 0, 0)
  2879. Frame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
  2880. Frame.Parent = EnergyGui
  2881. local TextLabel = Instance.new("TextLabel")
  2882. TextLabel.Name = "Energy to Weapons"
  2883. TextLabel.Size = UDim2.new(1, -60, 0, 30)
  2884. TextLabel.Position = UDim2.new(0, 30, 0, 10)
  2885. TextLabel.BorderSizePixel = 0
  2886. TextLabel.BackgroundTransparency = 1
  2887. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  2888. TextLabel.Text = "Energy to Weapons"
  2889. TextLabel.TextXAlignment = "Left"
  2890. TextLabel.FontSize = "Size14"
  2891. TextLabel.Parent = Frame
  2892. local EnergyToWeaponSlider1 = Instance.new("TextButton")
  2893. EnergyToWeaponSlider1.Name = "Energy to Weapons Slider BG"
  2894. EnergyToWeaponSlider1.AutoButtonColor = false
  2895. EnergyToWeaponSlider1.Text = ""
  2896. EnergyToWeaponSlider1.Size = UDim2.new(1, -30, 0, 50)
  2897. EnergyToWeaponSlider1.Position = UDim2.new(0, 15, 0, 50)
  2898. EnergyToWeaponSlider1.BorderSizePixel = 1
  2899. EnergyToWeaponSlider1.BorderColor3 = Color3.new(0, 0, 0)
  2900. EnergyToWeaponSlider1.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  2901. EnergyToWeaponSlider1.Parent = Frame
  2902. local EnergyToWeaponSlider2 = EnergyToWeaponSlider1:Clone()
  2903. EnergyToWeaponSlider2.Active = false
  2904. EnergyToWeaponSlider2.Name = "Energy to Weapons Slider"
  2905. EnergyToWeaponSlider2.Size = UDim2.new(EnergyToWeapon, -2, 1, -2)
  2906. EnergyToWeaponSlider2.Position = UDim2.new(0, 1, 0, 1)
  2907. EnergyToWeaponSlider2.BorderSizePixel = 0
  2908. EnergyToWeaponSlider2.BackgroundColor3 = Color3.new(EnergyToWeapon, 0, 0)
  2909. EnergyToWeaponSlider2.Parent = EnergyToWeaponSlider1
  2910. local EnergyToWeaponSliderDown = false
  2911. EnergyToWeaponSlider1.MouseButton1Down:connect(function() EnergyToWeaponSliderDown = true end)
  2912. EnergyToWeaponSlider1.MouseMoved:connect(function(x, y)
  2913. if EnergyToWeaponSliderDown == true then
  2914. EnergyToWeapon = (x - EnergyToWeaponSlider1.AbsolutePosition.x) / EnergyToWeaponSlider1.AbsoluteSize.x
  2915. end
  2916. end)
  2917. EnergyToWeaponSlider1.MouseButton1Up:connect(function() EnergyToWeaponSliderDown = false end)
  2918. EnergyToWeaponSlider1.MouseLeave:connect(function() EnergyToWeaponSliderDown = false end)
  2919. EnergyToWeaponSlider2.MouseButton1Down:connect(function() EnergyToWeaponSliderDown = true end)
  2920. EnergyToWeaponSlider2.MouseButton1Up:connect(function() EnergyToWeaponSliderDown = false end)
  2921. coroutine.wrap(function()
  2922. while true do
  2923. EnergyToWeaponSlider2.Size = UDim2.new(EnergyToWeapon, EnergyToWeaponSlider2.Size.X.Offset, EnergyToWeaponSlider2.Size.Y.Scale, EnergyToWeaponSlider2.Size.Y.Offset)
  2924. EnergyToWeaponSlider2.BackgroundColor3 = Color3.new(EnergyToWeapon, 0, 0)
  2925. wait()
  2926. end
  2927. end)()
  2928.  
  2929. local TextLabel = TextLabel:Clone()
  2930. TextLabel.Name = "Energy to Shields"
  2931. TextLabel.Position = UDim2.new(0, 30, 0, 110)
  2932. TextLabel.Text = "Energy to Shields"
  2933. TextLabel.Parent = Frame
  2934. local EnergyToShieldSlider1 = EnergyToWeaponSlider1:Clone()
  2935. EnergyToShieldSlider1.Name = "Energy to Shields Slider BG"
  2936. EnergyToShieldSlider1.Position = UDim2.new(0, 15, 0, 150)
  2937. EnergyToShieldSlider1.Parent = Frame
  2938. local EnergyToShieldSlider2 = EnergyToShieldSlider1["Energy to Weapons Slider"]
  2939. EnergyToShieldSlider2.Active = false
  2940. EnergyToShieldSlider2.Name = "Energy to Shields Slider"
  2941. EnergyToShieldSlider2.Size = UDim2.new(EnergyToShield, -2, 1, -2)
  2942. EnergyToShieldSlider2.BackgroundColor3 = Color3.new(0, 0, EnergyToShield)
  2943. EnergyToShieldSlider2.Parent = EnergyToShieldSlider1
  2944. local EnergyToShieldSliderDown = false
  2945. EnergyToShieldSlider1.MouseButton1Down:connect(function() EnergyToShieldSliderDown = true end)
  2946. EnergyToShieldSlider1.MouseMoved:connect(function(x, y)
  2947. if EnergyToShieldSliderDown == true then
  2948. EnergyToShield = (x - EnergyToShieldSlider1.AbsolutePosition.x) / EnergyToShieldSlider1.AbsoluteSize.x
  2949. end
  2950. end)
  2951. EnergyToShieldSlider1.MouseButton1Up:connect(function() EnergyToShieldSliderDown = false end)
  2952. EnergyToShieldSlider1.MouseLeave:connect(function() EnergyToShieldSliderDown = false end)
  2953. EnergyToShieldSlider2.MouseButton1Down:connect(function() EnergyToShieldSliderDown = true end)
  2954. EnergyToShieldSlider2.MouseButton1Up:connect(function() EnergyToShieldSliderDown = false end)
  2955. coroutine.wrap(function()
  2956. while true do
  2957. EnergyToShieldSlider2.Size = UDim2.new(EnergyToShield, EnergyToShieldSlider2.Size.X.Offset, EnergyToShieldSlider2.Size.Y.Scale, EnergyToShieldSlider2.Size.Y.Offset)
  2958. EnergyToShieldSlider2.BackgroundColor3 = Color3.new(EnergyToShield, 0, EnergyToShield)
  2959. wait()
  2960. end
  2961. end)()
  2962.  
  2963. local TextLabel = TextLabel:Clone()
  2964. TextLabel.Name = "Energy to Fly"
  2965. TextLabel.Position = UDim2.new(0, 30, 0, 210)
  2966. TextLabel.Text = "Energy to Thrusters"
  2967. TextLabel.Parent = Frame
  2968. local EnergyToFlySlider1 = EnergyToWeaponSlider1:Clone()
  2969. EnergyToFlySlider1.Name = "Energy to Fly Slider BG"
  2970. EnergyToFlySlider1.Position = UDim2.new(0, 15, 0, 250)
  2971. EnergyToFlySlider1.Parent = Frame
  2972. local EnergyToFlySlider2 = EnergyToFlySlider1["Energy to Weapons Slider"]
  2973. EnergyToFlySlider2.Active = false
  2974. EnergyToFlySlider2.Name = "Energy to Fly Slider"
  2975. EnergyToFlySlider2.Size = UDim2.new(EnergyToShield, -2, 1, -2)
  2976. EnergyToFlySlider2.BackgroundColor3 = Color3.new(0, 0, EnergyToShield)
  2977. EnergyToFlySlider2.Parent = EnergyToFlySlider1
  2978. local EnergyToFlySliderDown = false
  2979. EnergyToFlySlider1.MouseButton1Down:connect(function() EnergyToFlySliderDown = true end)
  2980. EnergyToFlySlider1.MouseMoved:connect(function(x, y)
  2981. if EnergyToFlySliderDown == true then
  2982. EnergyToFly = (x - EnergyToFlySlider1.AbsolutePosition.x) / EnergyToFlySlider1.AbsoluteSize.x
  2983. end
  2984. end)
  2985. EnergyToFlySlider1.MouseButton1Up:connect(function() EnergyToFlySliderDown = false end)
  2986. EnergyToFlySlider1.MouseLeave:connect(function() EnergyToFlySliderDown = false end)
  2987. EnergyToFlySlider2.MouseButton1Down:connect(function() EnergyToFlySliderDown = true end)
  2988. EnergyToFlySlider2.MouseButton1Up:connect(function() EnergyToFlySliderDown = false end)
  2989. coroutine.wrap(function()
  2990. while true do
  2991. EnergyToFlySlider2.Size = UDim2.new(EnergyToFly, EnergyToFlySlider2.Size.X.Offset, EnergyToFlySlider2.Size.Y.Scale, EnergyToFlySlider2.Size.Y.Offset)
  2992. EnergyToFlySlider2.BackgroundColor3 = Color3.new(EnergyToFly, EnergyToFly, EnergyToFly)
  2993. wait()
  2994. end
  2995. end)()
  2996.  
  2997. local TextLabel = TextLabel:Clone()
  2998. TextLabel.Name = "Energy to Teleport"
  2999. TextLabel.Position = UDim2.new(0, 30, 0, 310)
  3000. TextLabel.Text = "Energy to Teleportation Matrix"
  3001. TextLabel.Parent = Frame
  3002. local EnergyToTeleportSlider1 = EnergyToWeaponSlider1:Clone()
  3003. EnergyToTeleportSlider1.Name = "Energy to Fly Slider BG"
  3004. EnergyToTeleportSlider1.Position = UDim2.new(0, 15, 0, 350)
  3005. EnergyToTeleportSlider1.Parent = Frame
  3006. local EnergyToTeleportSlider2 = EnergyToTeleportSlider1["Energy to Weapons Slider"]
  3007. EnergyToTeleportSlider2.Active = false
  3008. EnergyToTeleportSlider2.Name = "Energy to Fly Slider"
  3009. EnergyToTeleportSlider2.Size = UDim2.new(EnergyToShield, -2, 1, -2)
  3010. EnergyToTeleportSlider2.BackgroundColor3 = Color3.new(0, 0, EnergyToShield)
  3011. EnergyToTeleportSlider2.Parent = EnergyToTeleportSlider1
  3012. local EnergyToTeleportSliderDown = false
  3013. EnergyToTeleportSlider1.MouseButton1Down:connect(function() EnergyToTeleportSliderDown = true end)
  3014. EnergyToTeleportSlider1.MouseMoved:connect(function(x, y)
  3015. if EnergyToTeleportSliderDown == true then
  3016. EnergyToTeleport = (x - EnergyToTeleportSlider1.AbsolutePosition.x) / EnergyToTeleportSlider1.AbsoluteSize.x
  3017. end
  3018. end)
  3019. EnergyToTeleportSlider1.MouseButton1Up:connect(function() EnergyToTeleportSliderDown = false end)
  3020. EnergyToTeleportSlider1.MouseLeave:connect(function() EnergyToTeleportSliderDown = false end)
  3021. EnergyToTeleportSlider2.MouseButton1Down:connect(function() EnergyToTeleportSliderDown = true end)
  3022. EnergyToTeleportSlider2.MouseButton1Up:connect(function() EnergyToTeleportSliderDown = false end)
  3023. coroutine.wrap(function()
  3024. while true do
  3025. EnergyToTeleportSlider2.Size = UDim2.new(EnergyToTeleport, EnergyToTeleportSlider2.Size.X.Offset, EnergyToTeleportSlider2.Size.Y.Scale, EnergyToTeleportSlider2.Size.Y.Offset)
  3026. EnergyToTeleportSlider2.BackgroundColor3 = Color3.new(0, 0, EnergyToTeleport)
  3027. wait()
  3028. end
  3029. end)()
  3030.  
  3031. local TextLabel = TextLabel:Clone()
  3032. TextLabel.Name = "Energy to Repair"
  3033. TextLabel.Position = UDim2.new(0, 30, 0, 410)
  3034. TextLabel.Text = "Energy to Repair Functions"
  3035. TextLabel.Parent = Frame
  3036. local EnergyToRepairSlider1 = EnergyToWeaponSlider1:Clone()
  3037. EnergyToRepairSlider1.Name = "Energy to Fly Slider BG"
  3038. EnergyToRepairSlider1.Position = UDim2.new(0, 15, 0, 450)
  3039. EnergyToRepairSlider1.Parent = Frame
  3040. local EnergyToRepairSlider2 = EnergyToRepairSlider1["Energy to Weapons Slider"]
  3041. EnergyToRepairSlider2.Active = false
  3042. EnergyToRepairSlider2.Name = "Energy to Fly Slider"
  3043. EnergyToRepairSlider2.Size = UDim2.new(EnergyToShield, -2, 1, -2)
  3044. EnergyToRepairSlider2.BackgroundColor3 = Color3.new(0, 0, EnergyToShield)
  3045. EnergyToRepairSlider2.Parent = EnergyToRepairSlider1
  3046. local EnergyToRepairSliderDown = false
  3047. EnergyToRepairSlider1.MouseButton1Down:connect(function() EnergyToRepairSliderDown = true end)
  3048. EnergyToRepairSlider1.MouseMoved:connect(function(x, y)
  3049. if EnergyToRepairSliderDown == true then
  3050. EnergyToRepair = (x - EnergyToRepairSlider1.AbsolutePosition.x) / EnergyToRepairSlider1.AbsoluteSize.x
  3051. end
  3052. end)
  3053. EnergyToRepairSlider1.MouseButton1Up:connect(function() EnergyToRepairSliderDown = false end)
  3054. EnergyToRepairSlider1.MouseLeave:connect(function() EnergyToRepairSliderDown = false end)
  3055. EnergyToRepairSlider2.MouseButton1Down:connect(function() EnergyToRepairSliderDown = true end)
  3056. EnergyToRepairSlider2.MouseButton1Up:connect(function() EnergyToRepairSliderDown = false end)
  3057. coroutine.wrap(function()
  3058. while true do
  3059. EnergyToRepairSlider2.Size = UDim2.new(EnergyToRepair, EnergyToRepairSlider2.Size.X.Offset, EnergyToRepairSlider2.Size.Y.Scale, EnergyToRepairSlider2.Size.Y.Offset)
  3060. EnergyToRepairSlider2.BackgroundColor3 = Color3.new(0, 0, EnergyToRepair)
  3061. wait()
  3062. end
  3063. end)()
  3064.  
  3065. local TextLabel = TextLabel:Clone()
  3066. TextLabel.Name = "Energy Usage"
  3067. TextLabel.Size = UDim2.new(1, -60, 0, 30)
  3068. TextLabel.Position = UDim2.new(0, 30, 1, -40)
  3069. TextLabel.BorderSizePixel = 0
  3070. TextLabel.BackgroundTransparency = 1
  3071. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  3072. TextLabel.Text = "Energy used: "
  3073. TextLabel.TextXAlignment = "Left"
  3074. TextLabel.FontSize = "Size14"
  3075. TextLabel.Parent = Frame
  3076. coroutine.wrap(function()
  3077. local Prefix = TextLabel.Text
  3078. while true do
  3079. while EnergyToWeapon + EnergyToShield + EnergyToFly + EnergyToTeleport + EnergyToRepair > EnergyMax do
  3080. if EnergyToWeaponSliderDown ~= true then EnergyToWeapon = EnergyToWeapon - 0.001 end
  3081. if EnergyToShieldSliderDown ~= true then EnergyToShield = EnergyToShield - 0.001 end
  3082. if EnergyToFlySliderDown ~= true then EnergyToFly = EnergyToFly - 0.001 end
  3083. if EnergyToTeleportSliderDown ~= true then EnergyToTeleport = EnergyToTeleport - 0.001 end
  3084. if EnergyToRepairSliderDown ~= true then EnergyToRepair = EnergyToRepair - 0.001 end
  3085. end
  3086.  
  3087. if EnergyToWeapon > 1 then EnergyToWeapon = 1 end
  3088. if EnergyToShield > 1 then EnergyToShield = 1 end
  3089. if EnergyToFly > 1 then EnergyToFly = 1 end
  3090. if EnergyToTeleport > 1 then EnergyToTeleport = 1 end
  3091. if EnergyToRepair > 1 then EnergyToRepair = 1 end
  3092.  
  3093. if EnergyToWeapon < 0 then EnergyToWeapon = 0 end
  3094. if EnergyToShield < 0 then EnergyToShield = 0 end
  3095. if EnergyToFly < 0 then EnergyToFly = 0 end
  3096. if EnergyToTeleport < 0 then EnergyToTeleport = 0 end
  3097. if EnergyToRepair < 0 then EnergyToRepair = 0 end
  3098.  
  3099. TextLabel.Text = Prefix..tostring(math.ceil(((EnergyToWeapon + EnergyToShield + EnergyToFly + EnergyToTeleport + EnergyToRepair) * 100) / EnergyMax)).. "%"
  3100. wait()
  3101. end
  3102. end)()
  3103. end
  3104. end
  3105. elseif Seat:FindFirstChild("SeatWeld") == nil and EnergyPlayer ~= nil then
  3106. if EnergyPlayer:FindFirstChild("PlayerGui") ~= nil then
  3107. if EnergyPlayer.PlayerGui:FindFirstChild("EnergyGui") ~= nil then
  3108. EnergyPlayer.PlayerGui.EnergyGui:Remove()
  3109. end
  3110. end
  3111. EnergyPlayer = nil
  3112. end
  3113. end
  3114. if DamageHealth <= DamageMaxHealth / 10 then
  3115. pcall(function() if DamageEffect[1].Parent == nil then DamageEffect[1] = nil end end)
  3116. if DamageEffect[1] == nil then
  3117. DamageEffect[1] = DamageEffectBase:Clone()
  3118. DamageEffect[1].Parent = Exterior
  3119. DamageEffect[1].Fire.Enabled = true
  3120. DamageEffect[1].Fire.Heat = 10
  3121. DamageEffect[1].Fire.Size = 10
  3122. DamageEffect[1].Smoke.Enabled = true
  3123. DamageEffect[1].Smoke.RiseVelocity = 5
  3124. DamageEffect[1].Smoke.Size = 8
  3125. DamageEffect[1].Smoke.Color = Color3.new(0.3, 0.3, 0.3)
  3126. DamageEffect[1]:BreakJoints()
  3127. end
  3128. while DamageEffectPart[1] == nil do
  3129. local Choice = math.random(2, #Exterior:GetChildren())
  3130. for i, Part in pairs(Exterior:GetChildren()) do
  3131. if i == Choice and Part:FindFirstChild("Weld") ~= nil then
  3132. DamageEffectPart[1] = Part
  3133. end
  3134. end
  3135. end
  3136. DamageEffect[1].CFrame = CFrame.new(DamageEffectPart[1].Position)
  3137. else
  3138. pcall(function() DamageEffect[1]:Remove() end)
  3139. pcall(function() DamageEffectPart[1] = nil end)
  3140. end
  3141. if DamageHealth <= DamageMaxHealth / 5 then
  3142. pcall(function() if DamageEffect[2].Parent == nil then DamageEffect[2] = nil end end)
  3143. if DamageEffect[2] == nil then
  3144. DamageEffect[2] = DamageEffectBase:Clone()
  3145. DamageEffect[2].Parent = Exterior
  3146. DamageEffect[2].Fire.Enabled = true
  3147. DamageEffect[2].Fire.Heat = 10
  3148. DamageEffect[2].Fire.Size = 10
  3149. DamageEffect[2].Smoke.Enabled = true
  3150. DamageEffect[2].Smoke.RiseVelocity = 5
  3151. DamageEffect[2].Smoke.Size = 8
  3152. DamageEffect[2].Smoke.Color = Color3.new(0.3, 0.3, 0.3)
  3153. DamageEffect[2]:BreakJoints()
  3154. end
  3155. while DamageEffectPart[2] == nil do
  3156. local Choice = math.random(2, #Exterior:GetChildren())
  3157. for i, Part in pairs(Exterior:GetChildren()) do
  3158. if i == Choice and Part:FindFirstChild("Weld") ~= nil then
  3159. DamageEffectPart[2] = Part
  3160. end
  3161. end
  3162. end
  3163. DamageEffect[2].CFrame = CFrame.new(DamageEffectPart[2].Position)
  3164. else
  3165. pcall(function() DamageEffect[1]:Remove() end)
  3166. pcall(function() DamageEffectPart[2] = nil end)
  3167. end
  3168. if DamageHealth <= DamageMaxHealth / 2 then
  3169. pcall(function() if DamageEffect[2].Parent == nil then DamageEffect[2] = nil end end)
  3170. if DamageEffect[2] == nil then
  3171. DamageEffect[2] = DamageEffectBase:Clone()
  3172. DamageEffect[2].Parent = Exterior
  3173. DamageEffect[2].Smoke.Enabled = true
  3174. DamageEffect[2].Smoke.RiseVelocity = 4
  3175. DamageEffect[2].Smoke.Size = 3
  3176. DamageEffect[2]:BreakJoints()
  3177. end
  3178. while DamageEffectPart[2] == nil do
  3179. local Choice = math.random(2, #Exterior:GetChildren())
  3180. for i, Part in pairs(Exterior:GetChildren()) do
  3181. if i == Choice and Part:FindFirstChild("Weld") ~= nil then
  3182. DamageEffectPart[2] = Part
  3183. end
  3184. end
  3185. end
  3186. DamageEffect[2].CFrame = CFrame.new(DamageEffectPart[2].Position)
  3187. else
  3188. pcall(function() DamageEffect[2]:Remove() end)
  3189. pcall(function() DamageEffectPart[2] = nil end)
  3190. end
  3191. if FlySpeed > 100 then
  3192. FlySpeed = 100
  3193. elseif FlySpeed < 10 then
  3194. FlySpeed = 10
  3195. end
  3196. wait()
  3197. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement