Clone script only cloning once instead of repeating?
Asked by
4 years ago Edited 4 years ago
I am attempting to make something that clones a brick repeatedly on a timer. But it isn't working. Someone else's post on the DevForum said to move the script into a different brick and have it work from there but that isn't working either. I also tried turning it into a function and I am just very confused. Also I can't use Instance.New because the place that I am spawning from is a moving object.
Here is my script:
01 | local MarbleL = script.Parent.Parent.Parent.MarbleLeft:Clone() |
02 | local Marble 1 = script.Parent.Parent.Parent.MarbleLeft |
07 | function CreateMarble() |
10 | MarbleL.Parent = game.Workspace.TireMarbles |
11 | MarbleL.Transparency = 0 |
12 | MarbleL.CanCollide = true |
13 | MarbleL:ClearAllChildren() |
I hope I formatted this right, thanks in advance for your help :)
Edit: I only started scripting like 2 days ago so if my scripting is sloppy or bad that's probably why