I don’t know how to clone stuff from ReplicatedStorage to Worspace

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I want my tycoon dropper to drop models, i know i have to put in my model in replicatedstorage and then clone it to workspace trough a script.

  2. What is the issue?
    The issue is that i’m pretty new to scripting and i don’t know how to clone it over to workspace.

  3. What solutions have you tried so far?
    I have tried finding stuff in forum, but i found nothing.

Please tell me how i can do it! :grinning:

2 Likes

It’s pretty simple.

  1. First, you would put your model or whatever in ReplicatedStorage.

  2. Then, make a script in ServerScriptService.

  3. Insert the following code:

local model = game.ReplicatedStorage.ModelName -- this variable references the model you put into ReplicatedStorage
local clonedModel = model:Clone() -- this function clones the model
clonedModel.Parent = workspace -- this parents the clone to the workspace, so that the clone is now visible to players

If you wanted to set certain properties of the cloned model, do so before parenting it to the workspace.

24 Likes

Thanks! I’ll use this for my droppers!

1 Like