WinslowMau

Untitled

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