1 | game.ReplicatedStorage.test:WaitForChild( "Part" ) |
2 | local part = game.ReplicatedStorage.test.Part |
3 | while true do |
4 | wait( 2 ) |
5 | part:Clone() |
6 | part.Parent = game.Workspace |
7 | end |
Test is just a folder in the replicatedstorage. What it does for some reason is just take the part out of the replicatedstorage into the workspace instead of cloning it. What did i do wrong?
try this:
1 | game.ReplicatedStorage.test:WaitForChild( "Part" ) |
2 | local part = game.ReplicatedStorage.test.Part |
3 | while true do |
4 | wait( 2 ) |
5 | local clone = part:Clone() |
6 | clone.Parent = game.Workspace |
7 | end |
**or try this : **
1 | game.ReplicatedStorage.test:WaitForChild( "Part" ) |
2 | local part = game.ReplicatedStorage.test.Part |
3 | while true do |
4 | wait( 2 ) |
5 | part:Clone().Parent = game.Workspace |
6 | end |