Advertisement
idkwhatiam

elevator (Discontinued) (old)

May 31st, 2019
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.28 KB | None | 0 0
  1. -- /'''''''''''\ --
  2. --|  elevator   |--
  3. -- \___________/ --
  4.  
  5. --run script as raw or it wont load--
  6.  
  7. model = Instance.new("Model")
  8. model.Parent = workspace
  9. model.Name = "Elevator"
  10. floor = Instance.new("Part")
  11. floor.Parent = model
  12. floor.Name = "floor"
  13. floor.Position = Vector3.new(0, 0.5, 0)
  14. floor.BrickColor = BrickColor.new("Medium stone grey")
  15. floor.Material = "Concrete"
  16. floor.CanCollide = true
  17. floor.Anchored = true
  18. floor.TopSurface = "Smooth"
  19. floor.Locked = true
  20. floor.Size = Vector3.new(18, 1, 18)
  21. light = Instance.new("Part")
  22. light.Parent = model
  23. light.Name = "light"
  24. light.Locked = true
  25. light.Transparency = 1
  26. light.Anchored = true
  27. light.CanCollide = false
  28. light.Locked = true
  29. light.Size = Vector3.new(4, 1, 2)
  30. light.Position = Vector3.new(-1, 8.5, -1)
  31. pointlight = Instance.new("PointLight")
  32. pointlight.Parent = light
  33. pointlight.Color = Color3.new(255, 255, 255)
  34. pointlight.Range = 15
  35. pointlight.Shadows = false
  36. pointlight.Name = "PointLight"
  37. pointlight.Enabled = true
  38. pointlight.Brightness = 1
  39. door = Instance.new("Part")
  40. door.Parent = model
  41. door.Name = "door"
  42. door.BrickColor = BrickColor.new("Medium stone grey")
  43. door.Material = "Metal"
  44. door.Position = Vector3.new(-0.5, 4, 9.5)
  45. door.Anchored = true
  46. door.CanCollide = true
  47. door.TopSurface = "Smooth"
  48. door.Size = Vector3.new(7, 8, 1)
  49. roof = Instance.new("Part")
  50. roof.Parent = model
  51. roof.Locked = true
  52. roof.Size = Vector3.new(18, 1, 18)
  53. roof.Anchored = true
  54. roof.CanCollide = false
  55. roof.Position = Vector3.new(0, 17.5, 0)
  56. roof.Material = "WoodPlanks"
  57. roof.BrickColor = BrickColor.new("Dark orange")
  58. front1 = Instance.new("Part")
  59. front1.Parent = model
  60. front1.Locked = true
  61. front1.BrickColor = BrickColor.new("Cool yellow")
  62. front1.Material = "Wood"
  63. front1.Position = Vector3.new(-7, 9, 9.5)
  64. front1.Size = Vector3.new(6, 18, 1)
  65. front1.Anchored = true
  66. front1.CanCollide = true
  67. front2 = Instance.new("Part")
  68. front2.Parent = model
  69. front2.Locked = true
  70. front2.BrickColor = BrickColor.new("Cool yellow")
  71. front2.Material = "Wood"
  72. front2.Position = Vector3.new(-0.5, 13, 9.5)
  73. front2.Size = Vector3.new(7, 10, 1)
  74. front2.Anchored = true
  75. front2.CanCollide = true
  76. front3 = Instance.new("Part")
  77. front3.Parent = model
  78. front3.Locked = true
  79. front3.BrickColor = BrickColor.new("Cool yellow")
  80. front3.Material = "Wood"
  81. front3.Position = Vector3.new(6.5, 9, 9.5)
  82. front3.Size = Vector3.new(7, 18, 1)
  83. front3.Anchored = true
  84. front3.CanCollide = true
  85. part1 = Instance.new("Part")
  86. part1.Parent = model
  87. part1.Locked = true
  88. part1.BrickColor = BrickColor.new("Cool yellow")
  89. part1.Material = "Wood"
  90. part1.Position = Vector3.new(0, 9, -9.5)
  91. part1.Size = Vector3.new(20, 18, 1)
  92. part1.Anchored = true
  93. part1.CanCollide = true
  94. part2 = Instance.new("Part")
  95. part2.Parent = model
  96. part2.Locked = true
  97. part2.BrickColor = BrickColor.new("Cool yellow")
  98. part2.Material = "Wood"
  99. part2.Position = Vector3.new(-9.5, 9, 0)
  100. part2.Size = Vector3.new(1, 18, 18)
  101. part2.Anchored = true
  102. part2.CanCollide = true
  103. part3 = Instance.new("Part")
  104. part3.Parent = model
  105. part3.Locked = true
  106. part3.BrickColor = BrickColor.new("Cool yellow")
  107. part3.Material = "Wood"
  108. part3.Position = Vector3.new(9.5, 9, 0)
  109. part3.Size = Vector3.new(1, 18, 18)
  110. part3.Anchored = true
  111. part3.CanCollide = true
  112. sp = Instance.new("SpawnLocation")
  113. sp.Parent = model
  114. sp.Transparency = 1
  115. sp.Anchored = true
  116. sp.CanCollide = false
  117. sp.Position = Vector3.new(-1, 1.025, 1)
  118. sp.Size = Vector3.new(2, 0.05, 2)
  119. sp.Locked = true
  120. sp.Enabled = true
  121.  
  122. --elevator song--
  123. es = Instance.new("Sound")
  124. es.Parent = light
  125. es.SoundId = "rbxassetid://573374397"
  126. es.Volume = 9999999999999999999999999999999999999999999
  127. es.Looped = true
  128. es.Playing = true
  129.    
  130. --elevator events--
  131. while true do
  132.     game.Workspace.Base.CanCollide = true
  133.     --cat event--
  134.     wait(10)
  135.     door.CanCollide = true
  136.     door.Transparency = 0.5
  137.     wait(0.12)
  138.     door.Transparency = 1
  139.     es.Playing = false
  140.     game.Workspace.Base.CanCollide = true
  141.     es.Playing = false
  142.     catmusic = Instance.new("Sound")
  143.     catmusic.Parent = light
  144.     catmusic.Playing = true
  145.     catmusic.Looped = true
  146.     catmusic.SoundId = "rbxassetid://224845627"
  147.     catmusic.Volume = 4
  148.     cat = Instance.new("Part")
  149.     cat.Position = door.Position + Vector3.new(0, 0.5, 3)
  150.     cat.Anchored = true
  151.     cat.CanCollide = false
  152.     cat.Locked = true
  153.     cat.Parent = model
  154.     cat.Name = "event_cat_kittycatmodel"
  155.     mcat = Instance.new("SpecialMesh")
  156.     mcat.Parent = cat
  157.     mcat.Scale = Vector3.new(7, 7, 7)
  158.     mcat.MeshId = "rbxassetid://998226551"
  159.     mcat.TextureId = "rbxassetid://998226560"
  160.     wait(1)
  161.     cat.Orientation = Vector3.new(10, 40, 23)
  162.     wait(1)
  163.     cat.Orientation = Vector3.new(23, 9, 31)
  164.     wait(1)
  165.     cat.Orientation = Vector3.new(50, 21, 78)
  166.     wait(1)
  167.     cat.Orientation = Vector3.new(25, 54, 12)
  168.     wait(1)
  169.     cat.Orientation = Vector3.new(24, 157, 76)
  170.     wait(1)
  171.     cat.Orientation = Vector3.new(566, 32, 886)
  172.     wait(1)
  173.     cat.Orientation = Vector3.new(842, 600, 329)
  174.     wait(1)
  175.     cat.Orientation = Vector3.new(424, 502, 193)
  176.     wait(1)
  177.     cat.Orientation = Vector3.new(100, 57, 76)
  178.     wait(1.5)
  179.     catmusic:Destroy()
  180.     cat:Destroy()
  181.     mcat:Destroy()
  182.     door.Transparency = 0.5
  183.     wait(0.12)
  184.     door.Transparency = 0
  185.     es.Playing = true
  186.     wait(10)
  187.     --shark escape--
  188.     door.Transparency = 0.5
  189.     es.Playing = true
  190.     wait(0.12)
  191.     door.Transparency = 1
  192.     door.CanCollide = false
  193.     water = Instance.new("Part")
  194.     water.Parent = model
  195.     water.Locked = true
  196.     water.Anchored = true
  197.     water.CanCollide = false
  198.     water.Transparency = 0.3
  199.     water.Material = "Sand"
  200.     water.Name = "sharkescape_water"
  201.     water.BrickColor = BrickColor.new("Medium blue")
  202.     water.Position = Vector3.new(0, 0, 44)
  203.     water.Size = Vector3.new(1000, 1, 1000)
  204.    
  205.     function die(hit)
  206.         thing = hit.Parent:FindFirstChild("Humanoid")
  207.         hp = 0
  208.         thing = hp
  209.     end
  210.     water.Touched:Connect(die)
  211.    
  212.     wood1 = Instance.new("Part")
  213.     wood1.Parent = model
  214.     wood1.Name = "wood1"
  215.     wood1.Locked = true
  216.     wood1.Anchored = true
  217.     wood1.CanCollide = true
  218.     wood1.Material = "WoodPlanks"
  219.     wood1.Position = Vector3.new(-2.13, 1, 19.134)
  220.     wood1.Size = Vector3.new(10, 1, 3)
  221.     wood1.BrickColor = BrickColor.new("Dark orange")
  222.     wood2 = Instance.new("Part")
  223.     wood2.Parent = model
  224.     wood2.Name = "wood2"
  225.     wood2.Locked = true
  226.     wood2.Anchored = true
  227.     wood2.CanCollide = true
  228.     wood2.Material = "WoodPlanks"
  229.     wood2.Position = Vector3.new(2.87, 1, 27.134)
  230.     wood2.Size = Vector3.new(10, 1, 3)
  231.     wood2.Transparency = 0
  232.     wood2.BrickColor = BrickColor.new("Dark orange")
  233.     wood3 = Instance.new("Part")
  234.     wood3.Parent = model
  235.     wood3.Name = "wood3"
  236.     wood3.Locked = true
  237.     wood3.Orientation = Vector3.new(0, 45, 0)
  238.     wood3.Anchored = true
  239.     wood3.CanCollide = true
  240.     wood3.Transparency = 0
  241.     wood3.BrickColor = BrickColor.new("Dark orange")
  242.     wood3.Position = Vector3.new(-5.13, 1, 35.134)
  243.     wood3.Size = Vector3.new(10, 1, 3)
  244.     wood3.Material = "WoodPlanks"
  245.     wood4 = Instance.new("Part")
  246.     wood4.Parent = model
  247.     wood4.Name = "wood4"
  248.     wood4.Locked = true
  249.     wood4.Orientation = Vector3.new(0, -75, 0)
  250.     wood4.Material = "WoodPlanks"
  251.     wood4.BrickColor = BrickColor.new("Dark orange")
  252.     wood4.Position = Vector3.new(-7.13, 1, 47)
  253.     wood4.Size = Vector3.new(10, 1, 3)
  254.     wood5 = Instance.new("Part")
  255.     wood5.Parent = model
  256.     wood5.Name = "wood5"
  257.     wood5.Locked = true
  258.     wood5.Material = "WoodPlanks"
  259.     wood5.Position = Vector3.new(2.87, 1, 55.134)
  260.     wood5.Size = Vector3.new(10, 1, 3)
  261.     wood5.Anchored = true
  262.     wood5.CanCollide = true
  263.     wood5.BrickColor = BrickColor.new("Dark orange")
  264.     wood6 = Instance.new("Part")
  265.     wood6.Parent = model
  266.     wood6.Name = "wood6"
  267.     wood6.Locked = true
  268.     wood6.Material = "WoodPlanks"
  269.     wood6.BrickColor = BrickColor.new("Dark orange")
  270.     wood6.Position = Vector3.new(-3.13, 1, 69.134)
  271.     wood6.Size = Vector3.new(10, 1, 3)
  272.     wood6.Anchored = true
  273.     win = Instance.new("Part")
  274.     win.Parent = model
  275.     win.Locked = true
  276.     win.Anchored = true
  277.     win.Name = "Win"
  278.     win.CanCollide = true
  279.     win.BrickColor = BrickColor.new("Lime green")
  280.     win.Material = "WoodPlanks"
  281.     win.Size = Vector3.new(20, 1, 19)
  282.     win.Position = Vector3.new(0, 0.5, 87.5)
  283.     win.Touched:Connect(function()
  284.         ws = Instance.new("Sound")
  285.         ws.Parent = win
  286.         ws.Playing = true
  287.         ws.SoundId = "rbxassetid://12222253"
  288.         wait(1)
  289.         ws:Destroy()
  290.     end)
  291.     es.SoundId = "rbxassetid://2663958637"
  292.     game.Workspace.Base.CanCollide = false
  293.     wait(1.7)
  294.     shark = Instance.new("Part")
  295.     shark.Parent = model
  296.     shark.Name = "shark"
  297.     shark.Locked = true
  298.     shark.Anchored = true
  299.     shark.CanCollide = true
  300.     shark.Position = Vector3.new(0, 25, -70)
  301.     shark.Size = Vector3.new(50, 51.44, 132.109)
  302.     shark.Orientation = Vector3.new(0, 180, 0)
  303.     function eaten(hit)
  304.         eat = hit.Parent
  305.        
  306.         eat:Destroy()
  307.     end
  308.     mshark = Instance.new("SpecialMesh")
  309.     mshark.Parent = shark
  310.     mshark.MeshId = "rbxassetid://2041810005"
  311.     mshark.TextureId = "rbxassetid://2041810021"
  312.     wait(1)
  313.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  314.     wait(1)
  315.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  316.     wait(1)
  317.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  318.     wait(1)
  319.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  320.     wait(1)
  321.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  322.     wait(1)
  323.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  324.     wait(1)
  325.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  326.     wait(1)
  327.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  328.     wait(1)
  329.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  330.     wait(1)
  331.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  332.     wait(1)
  333.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  334.     wait(1)
  335.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  336.     wait(1)
  337.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  338.     wait(1)
  339.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  340.     wait(1)
  341.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  342.     wait(1)
  343.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  344.     wait(1)
  345.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  346.     wait(1)
  347.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  348.     wait(1)
  349.     shark.Position = shark.Position + Vector3.new(0, 0, 7)
  350.     wait(5)
  351.     shark:Destroy()
  352.     wood1:Destroy()
  353.     wood2:Destroy()
  354.     water:Destroy()
  355.     wood3:Destroy()
  356.     wood4:Destroy()
  357.     wood5:Destroy()
  358.     wood6:Destroy()
  359.     win:Destroy()
  360.     wait(0.12)
  361.     door.Transparency = 0.5
  362.     wait(0.12)
  363.     door.Transparency = 0
  364.     door.CanCollide = true
  365.     game.Workspace.Base.CanCollide = true
  366.     es.Playing = true
  367.     es.SoundId ="rbxassetid://2687649276"
  368.     wait(5)
  369. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement