Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- BillboardGui2 = Instance.new("BillboardGui")
- TextLabel3 = Instance.new("TextLabel")
- Script4 = Instance.new("Script")
- Part5 = Instance.new("Part")
- SurfaceGui6 = Instance.new("SurfaceGui")
- TextLabel7 = Instance.new("TextLabel")
- ManualWeld8 = Instance.new("ManualWeld")
- Part9 = Instance.new("Part")
- Model0.Name = "Elevator"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-5.55000305, 0.509353995, -5.87496901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-5.55000305, 0.509353995, -5.87496901)
- Part1.Size = Vector3.new(5.21999979, 1.01999998, 4.94999981)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- BillboardGui2.Parent = Part1
- BillboardGui2.LightInfluence = 1
- BillboardGui2.Size = UDim2.new(0, 200, 0, 50)
- BillboardGui2.Active = true
- BillboardGui2.ClipsDescendants = true
- BillboardGui2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui2.AlwaysOnTop = true
- TextLabel3.Parent = BillboardGui2
- TextLabel3.Size = UDim2.new(0, 200, 0, 50)
- TextLabel3.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel3.BackgroundTransparency = 1
- TextLabel3.Font = Enum.Font.SourceSans
- TextLabel3.FontSize = Enum.FontSize.Size28
- TextLabel3.Text = "Working Elevator!"
- TextLabel3.TextColor = BrickColor.new("Really red")
- TextLabel3.TextColor3 = Color3.new(1, 0, 0)
- TextLabel3.TextSize = 25
- Script4.Name = "Code"
- Script4.Parent = Part1
- table.insert(cors,sandbox(Script4,function()
- debounce = true
- part = script.Parent
- function onTouched(hit)
- if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
- debounce = false
- wait(1)
- part.Size = Vector3.new(5.22, 2.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 4.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 6.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 8.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 10.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 12.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 14.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 16.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 18.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 20.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 22.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 24.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 26.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 28.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 30.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 32.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 34.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 36.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 38.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 40.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 42.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 44.02, 4.95)
- wait(1)
- part.Size = Vector3.new(5.22, 48.02, 4.95)
- wait(5)
- part.Size = Vector3.new(5.22, 1.02, 4.95)
- wait(1)
- debounce = true
- end
- end
- part.Touched:connect(onTouched)
- end))
- Part5.Name = "Sign"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(17.1914063, 27.7139893, -6.14999723, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part5.Orientation = Vector3.new(0, 90, 0)
- Part5.Position = Vector3.new(17.1914063, 27.7139893, -6.14999723)
- Part5.Rotation = Vector3.new(0, 90, 0)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Size = Vector3.new(4, 2, 0.25)
- Part5.Anchored = true
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.brickColor = BrickColor.new("Institutional white")
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- SurfaceGui6.Parent = Part5
- SurfaceGui6.CanvasSize = Vector2.new(200, 100)
- TextLabel7.Parent = SurfaceGui6
- TextLabel7.Size = UDim2.new(1, 0, 1, 0)
- TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel7.BackgroundTransparency = 1
- TextLabel7.Font = Enum.Font.SourceSansBold
- TextLabel7.FontSize = Enum.FontSize.Size48
- TextLabel7.Text = "Wellcome :D"
- TextLabel7.TextColor = BrickColor.new("Institutional white")
- TextLabel7.TextColor3 = Color3.new(1, 1, 1)
- TextLabel7.TextScaled = true
- TextLabel7.TextSize = 48
- TextLabel7.TextStrokeTransparency = 0
- TextLabel7.TextWrap = true
- TextLabel7.TextWrapped = true
- ManualWeld8.Name = "Sign Terrain Joint"
- ManualWeld8.Parent = Part5
- ManualWeld8.Part1 = Part5
- ManualWeld8.part1 = Part5
- Part9.Name = "top"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(9.58411407, 24.0989914, -5.94499588, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(9.58411407, 24.0989914, -5.94499588)
- Part9.Size = Vector3.new(25.0500069, 1.23000121, 9.06999779)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.TopSurface = Enum.SurfaceType.Smooth
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment