#Room Generation System

1 messages · Page 1 of 1 (latest)

last arrow
#
local usablerooms = game.ReplicatedStorage.Rooms:GetChildren()


local roomtables  = usablerooms

warn(usablerooms)
local function getpos()
    for i, room in ipairs(rooms) do
        local xpos = room.Position.X
        local zpos = room.Position.Z
        local ypos = room.Position.Y
        
        local pos = CFrame.new(xpos, ypos, zpos)
        return pos
    end
end

local pos = getpos()




game.Players.PlayerAdded:Connect(function(plr)
    
    while task.wait(1) do
    
    local function getroomtype()
        for i, v in ipairs(roomtables) do
            return v

        end
    end
    local roomclone = getroomtype()
    roomclone:Clone()
    roomclone.Parent = workspace
    print(roomclone)
    
    
    local function getname()
        for i = 1, 1000 do
            return "Room" .. i
        end
    end
    
    local name = getname()
    
    roomclone.Name = name
    roomclone:PivotTo(pos)
    
    end
end)```
tribal island
#

cheers for the free code 🍻

#

big generation, much system

last arrow
#

what

#

can help or no

#

i need help 🙁

tribal island
#

now what am i going to make my Room Generation System with? agony

hybrid gull