#Room copying issues

1 messages · Page 1 of 1 (latest)

frail scarab
#

So im working on a game kind of like doors and exit 8 combined. I want to have the same room with many different objects appear after each other and if some of the objects are missing or are not in their place then u have to go back.

i made a room and a part at the centre of it as a trigger to make a new one once its touched. also, i made a folder called Rooms with a roomCount value in it. i kept trying making scripts for the trigger and debugging it but none works. this is my best try yet. help pls

frail scarab
#

help pls

cobalt thicket
#

each folder will be a loottable put the things you want to spawn in here

#

make a spawner part

#

position the spawner part where you want the things to appear

#

put a script under it

#

get the folder you want

#

makee ur code smt kinda like this

local folder = -- get ur folder
local loottable = folder:GetChilderen()
local clone = loottable[math.random(1, #loottable)]:Clone()
clone.parent = workspace