Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Clone won't work?

Asked by 8 years ago

I made a clone script but for some odd reason it doesn't work. I cannot figure out why as theres 0 console errors.

if game.ServerStorage:FindFirstChild("Map Stuff").Map.Value == 1 then
    game.ServerStorage.Map1:Clone(game.Workspace)
    wait(20)
end

The Model (AKA Map1) Doesn't show up in the workspace. If I look in explorer it hasn't moved either.

1 answer

Log in to vote
1
Answered by 8 years ago

You didn't move it to Workspace
That's not how it works.

if game.ServerStorage:FindFirstChild("Map Stuff").Map.Value == 1 then
    game.ServerStorage.Map1:Clone().Parent = game.Workspace
    wait(20)
end

What changed?
Instead of using workspace as a Parameter, I set the Parent property of the new clone to be Workspace.

Ad

Answer this question