Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Part")
- o4 = Instance.new("Part")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o7 = Instance.new("Part")
- o8 = Instance.new("Part")
- o9 = Instance.new("Part")
- o10 = Instance.new("Part")
- o11 = Instance.new("Part")
- o12 = Instance.new("Part")
- o13 = Instance.new("Part")
- o14 = Instance.new("Script")
- o15 = Instance.new("Part")
- o16 = Instance.new("Script")
- o1.Parent = mas
- o2.Name = "NotBreakable"
- o2.Parent = o1
- o2.Material = Enum.Material.Wood
- o2.BrickColor = BrickColor.new("Nougat")
- o2.Position = Vector3.new(49.25, 4.30000019, -4.5)
- o2.Rotation = Vector3.new(-0, -90, 0)
- o2.Anchored = true
- o2.Size = Vector3.new(1, 0.5, 0.5)
- o2.CFrame = CFrame.new(49.25, 4.30000019, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o2.Color = Color3.new(0.8, 0.556863, 0.411765)
- o2.Position = Vector3.new(49.25, 4.30000019, -4.5)
- o3.Parent = o1
- o3.Material = Enum.Material.WoodPlanks
- o3.BrickColor = BrickColor.new("Brown")
- o3.Position = Vector3.new(50, 0.25, -1.5)
- o3.Anchored = true
- o3.Size = Vector3.new(10, 0.5, 11)
- o3.CFrame = CFrame.new(50, 0.25, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o3.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o3.Position = Vector3.new(50, 0.25, -1.5)
- o4.Parent = o1
- o4.Material = Enum.Material.WoodPlanks
- o4.BrickColor = BrickColor.new("Brown")
- o4.Position = Vector3.new(50, 2.00000095, -7.5)
- o4.Anchored = true
- o4.Size = Vector3.new(12, 4, 1)
- o4.CFrame = CFrame.new(50, 2.00000095, -7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o4.Position = Vector3.new(50, 2.00000095, -7.5)
- o5.Parent = o1
- o5.Material = Enum.Material.WoodPlanks
- o5.BrickColor = BrickColor.new("Brown")
- o5.Position = Vector3.new(44.5, 2, -1.5)
- o5.Rotation = Vector3.new(-0, -90, 0)
- o5.Anchored = true
- o5.Size = Vector3.new(11, 4, 1)
- o5.CFrame = CFrame.new(44.5, 2, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o5.Position = Vector3.new(44.5, 2, -1.5)
- o6.Name = "NotBreakable"
- o6.Parent = o1
- o6.Material = Enum.Material.Wood
- o6.BrickColor = BrickColor.new("Nougat")
- o6.Position = Vector3.new(50.25, 4.30000019, -4.5)
- o6.Rotation = Vector3.new(-0, -90, 0)
- o6.Anchored = true
- o6.Size = Vector3.new(1, 0.5, 0.5)
- o6.CFrame = CFrame.new(50.25, 4.30000019, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- o6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.Color = Color3.new(0.8, 0.556863, 0.411765)
- o6.Position = Vector3.new(50.25, 4.30000019, -4.5)
- o7.Parent = o1
- o7.Material = Enum.Material.WoodPlanks
- o7.BrickColor = BrickColor.new("Brown")
- o7.Position = Vector3.new(50, 2, 4.5)
- o7.Anchored = true
- o7.Size = Vector3.new(12, 4, 1)
- o7.CFrame = CFrame.new(50, 2, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o7.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o7.Position = Vector3.new(50, 2, 4.5)
- o8.Parent = o1
- o8.Material = Enum.Material.WoodPlanks
- o8.BrickColor = BrickColor.new("Brown")
- o8.Position = Vector3.new(55.5, 2, -1.50000012)
- o8.Rotation = Vector3.new(-0, -90, 0)
- o8.Anchored = true
- o8.Size = Vector3.new(11, 4, 1)
- o8.CFrame = CFrame.new(55.5, 2, -1.50000012, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0)
- o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o8.Position = Vector3.new(55.5, 2, -1.50000012)
- o9.Name = "NotBreakable"
- o9.Parent = o1
- o9.Material = Enum.Material.Wood
- o9.BrickColor = BrickColor.new("Nougat")
- o9.Position = Vector3.new(49.5, 4.30000019, -6.5)
- o9.Rotation = Vector3.new(-0, -90, 0)
- o9.Anchored = true
- o9.Size = Vector3.new(3, 0.5, 2)
- o9.CFrame = CFrame.new(49.5, 4.30000019, -6.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.Color = Color3.new(0.8, 0.556863, 0.411765)
- o9.Position = Vector3.new(49.5, 4.30000019, -6.5)
- o10.Name = "Part1"
- o10.Parent = o1
- o10.Material = Enum.Material.Wood
- o10.BrickColor = BrickColor.new("Nougat")
- o10.Position = Vector3.new(49.5, 4.30000019, -2.49999905)
- o10.Rotation = Vector3.new(0, 90, 0)
- o10.Anchored = true
- o10.Size = Vector3.new(3, 0.5, 2)
- o10.CFrame = CFrame.new(49.5, 4.30000019, -2.49999905, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o10.Color = Color3.new(0.8, 0.556863, 0.411765)
- o10.Position = Vector3.new(49.5, 4.30000019, -2.49999905)
- o11.Name = "Part3"
- o11.Parent = o1
- o11.Material = Enum.Material.Wood
- o11.BrickColor = BrickColor.new("Nougat")
- o11.Position = Vector3.new(48.75, 4.30000019, -4.49999619)
- o11.Rotation = Vector3.new(0, 90, 0)
- o11.Anchored = true
- o11.Size = Vector3.new(1, 0.5, 0.5)
- o11.CFrame = CFrame.new(48.75, 4.30000019, -4.49999619, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.Color = Color3.new(0.8, 0.556863, 0.411765)
- o11.Position = Vector3.new(48.75, 4.30000019, -4.49999619)
- o12.Name = "Part2"
- o12.Parent = o1
- o12.Material = Enum.Material.Wood
- o12.BrickColor = BrickColor.new("Nougat")
- o12.Position = Vector3.new(49.7500038, 4.30000019, -4.50000381)
- o12.Rotation = Vector3.new(0, 90, 0)
- o12.Anchored = true
- o12.Size = Vector3.new(1, 0.5, 0.5)
- o12.CFrame = CFrame.new(49.7500038, 4.30000019, -4.50000381, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.Color = Color3.new(0.8, 0.556863, 0.411765)
- o12.Position = Vector3.new(49.7500038, 4.30000019, -4.50000381)
- o13.Parent = o1
- o13.Transparency = 1
- o13.Position = Vector3.new(49.5, 4.99999475, -2)
- o13.Anchored = true
- o13.CanCollide = false
- o13.Size = Vector3.new(2, 1, 2)
- o13.CFrame = CFrame.new(49.5, 4.99999475, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o13.Position = Vector3.new(49.5, 4.99999475, -2)
- o14.Parent = o13
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- script.Parent.Touched : connect(function()
- wait(2)
- script.Parent.Parent.Part1.Anchored = false
- script.Parent.Parent.Part2.Anchored = false
- script.Parent.Parent.Part3.Anchored = false
- script.Parent.Parent.Part1.CanCollide = false
- script.Parent.Parent.Part1.CanCollide = false
- script.Parent.Parent.Part1.CanCollide = false
- wait(5)
- script.Parent.Parent : Destroy()
- end)
- end,o14)
- end))
- o15.Parent = o1
- o15.Material = Enum.Material.SmoothPlastic
- o15.BrickColor = BrickColor.new("Cyan")
- o15.Reflectance = 0.5
- o15.Transparency = 0.5
- o15.Position = Vector3.new(50, 1.50000405, -1.5)
- o15.Anchored = true
- o15.CanCollide = false
- o15.Size = Vector3.new(10, 3, 11)
- o15.CFrame = CFrame.new(50, 1.50000405, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o15.Position = Vector3.new(50, 1.50000405, -1.5)
- o16.Parent = o15
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- script.Parent.Touched : connect(function(part)
- wait(0.5)
- part : Destroy()
- end)
- end,o16)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement