I'd really like to simplify this script since I don't want to keep copy and pasting the same 2 lines tons of times once I have put alot of stuff into my game.
math.randomseed(tick())
t = math.random(6)
--
mk1 = 1
mk2 = 2
mk3 = 3
door = 4
wood = 5
robot = 6
--
if t == mk1 then
script.Parent.mk1:Remove()
elseif t == mk2 then
script.Parent.mk2:Remove()
elseif t == mk3 then
script.Parent.mk3:Remove()
elseif t == door then
script.Parent.door:Remove()
elseif t == wood then
script.Parent.wood:Remove()
elseif t == robot then
script.Parent.robot:Remove()
end

4 comments
You could also just put the object reference directly in the table and remove it in less steps!
@Perci1 Heh, you're right. Let me offer that example.
What I mean was something like, list = {workspace.Part, workspace.Brick} list[math.random(1, #list)]:Destroy() wouldn't that work?
@Perci1, Ah, that would work. Although, that seems like it requires a but more typing than my first way, lol