Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = 0
- Age = 0 --Server Age
- for i, v in pairs(game.Workspace:GetChildren()) do --Move all non-needed objects to terrian.
- MapThumbnail = v:FindFirstChild("MapThumbnail")
- if v:IsA ("Model") or v:IsA ("Part") or v:IsA ("WedgePart") or v:IsA ("MeshPart") or v.Name == "Union" or v:IsA ("UnionOperation") and v.Parent == workspace then
- if MapThumbnail == nil then
- wait()
- --print(v.Name)
- v.Parent = workspace.Terrain
- MapThumbnail = nil
- else
- print("The map is "..v.Name)
- v.Name = "Game"
- v.Parent = workspace.Camera
- end
- elseif v:IsA ("LocalScript") then --Its not needed as its all local
- Age = Age +1
- v:Destroy()
- elseif v:IsA ("Script") then --Its not needed as its all local
- v:Destroy()
- end
- end
- print("The server has been ran " ..Age.." Times")
- for i, v in pairs(game.workspace.Camera.Game:GetChildren()) do
- if v:IsA("Model") and v.Name == "ComputerTable" then --Set generator model.
- N = N +1
- BasePart = v.BasePart
- S = v.Screen
- G = Instance.new("SpecialMesh")
- G.Name = "DBD"
- G.Parent = BasePart
- G.Parent.Size = Vector3.new(4, 5, 4)
- G.MeshId = "rbxassetid://4663242528"
- G.MeshType = "FileMesh"
- G.TextureId = "http://www.roblox.com/asset/?id=4663233506"
- G.Scale = Vector3.new(0.15, 0.125, 0.15)
- G.Offset = Vector3.new(0.25, 1.8, 0.5)
- BasePart.Transparency = 0
- v.Name = ("ComputerTable"..N)
- S.Transparency = 1
- S.ErrorSound.SoundId = "rbxassetid://4663563894"
- S.SoundTyping.SoundId = "rbxassetid://4663563799"
- S.SoundWindowsPopUp.SoundId = "rbxassetid://4663628038"
- for i, v in pairs(v:GetChildren()) do
- if v.Name == "Screen" or v.Name == "BasePart" or v.Name == "ClearWall" or v.Name == "ComputerTrigger1" or v.Name == "ComputerTrigger2" or v.Name == "ComputerTrigger3" then
- else
- v:Destroy()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement