Hi guys, so this is my first post here, terribly sorry if I should be asking in a different forum.
Essentially, I have a random number generator pulling between 1-8. I'm trying to make a randomly generated map where the number corresponds to a certain type of room. (Please DON'T tell me how to do this, I'm trying to learn everything myself, and only asking here as a last resort!)
What I do want to know though, is how could I duplicate a group or union (Union is preferred, but group is fine.) and then teleport said union/group to the location of a named part. I've tried simply looking it up, but couldn't find what I was looking for.
I haven't got any code written yet, as I've no clue where to start.
Thanks in advance!

4 comments
Thanks for the help! I'll try this out tommorow, but seems like it should work, I've got some experience with C++, I just don't know the Lua terminology that well. Thanks again!
Having some experience is always nice, happy to help!
Okay update, I tried it now, and when I slotted it into the randomizer, I got the error "Expected identifier when parsing expression, got '['", and the error causing [ is the one in the Clone line. Removing the [, as well as adding an extra end, adding additional identifiers, and even trying {} instead still resulted in the same error. Is this studio just being silly, or a genuine code issue?
I'm so sorry for not being clear, the brackets are not supposed to be there. It should be thingUWannaClone:Clone(), do not add brackets.