So I'm trying to make a game like horrific housing, where houses will spawn for every player in the server, so 3 players 3 houses will spawn, and I have wrote some code and a table incase I need to use a table for this, but the code won't work, it's not giving me any errors in the output.
local Houses = {
[1] = game.ServerStorage.House1,
[2] = game.ServerStorage.House2,
[3] = game.ServerStorage.House3,
[4] = game.ServerStorage.House4,
[5] = game.ServerStorage.House5,
[6] = game.ServerStorage.House6,
[7] = game.ServerStorage.House7,
[8] = game.ServerStorage.House8
}
while true do
wait(1)
if game.Players:GetPlayers() == 1 then
if game.Workspace.House1 then
return
else
game.ServerStorage.House1:Clone(game.Workspace)
end
end
end

1 comment
im surprised this isn't giving you an error. You don't need the extra param on :Clone() and line 15 would error because there is no end. Make sure to put that cloned part into a variable and parent it to workspace using .Parent, make sure to use SetPrimaryPartCFrame to move the house