I've tried different versions of Clone() but I can't seem to make anything clone more than once?
I was trying to build a building that is sort of like a spiral staircase that will copy or clone the first level, then rotates it as it gets higher, and then stacks the next level on top of the earlier level, and then repeats that many times, but I couldn't find anything on how to do it by code.
For example, I have built the first level and want to find a way to clone it more than one time while also and rotating it. This is instead of manually copying, rotating and pasting it 100 times.
My first and biggest obstacle so far is that I can't seem to make something clone more than once.
I've read a number of help articles and watched videos on YouTube but I am new to this kind of scripting and I think I am missing something obvious.
Right now, here is what I have in the code -- I figure I need to get this first step working before I can move on to the other things I want to do:
2 | local fullbase = game.ServerStorage.fullbase:Clone() |
3 | fullbase.Parent = game.Workspace |
4 | fullbase.Position = Vector 3. new( 0 , 9 , 0 ) |
"fullbase" is the object that is made up of several pieces put together.
I got the idea to put the part in ServerStorage from another posting, and anyway when I run this code, the fullbase object appears, but only once. From what I see, maybe only one of the lines is making it go to the workspace which is why I think it is showing up just once.
I have already tried a number of other code snippets from many other posts on cloning (below) but none of them work! I think maybe the other help posts leave out some sort of detail that I am missing?
Here are the other versions I've tried (commented out):
I just need to figure out this first step and then I hope I can do the rest of it by myself. Thank you so much!