I am making a game for my mother and seeing if she likes it. I need to clone trees because the setting is going to be in the forest.
If you need to clone a tree, you first need a model, which I think you should have. Then in order to clone the tree using a script, you can do the following.
--Place the model of the tree in ServerStorage --Then add a script in ServerScriptStorage or Workspace, either of them works. local ServerStorage = game:GetService("ServerStorage") local Tree = ServerStorage:WaitForChild("Tree") --I am going to assigning a variable name to your tree, I will be calling it "Tree". local treeAmount = 10 --Lets spawn 10 trees, you can change it anytime. local treeSpawned = 0 while treeSpawned < treeAmount do local treeClone = Tree:Clone() --Clone the tree from ServerStorage --You would want your trees to be in different positions, so generate a set of numbers. local randX = math.random(-50, 50) local randZ = math.random(-50, 50) --Set position and parent the tree to the workspace. treeClone:SetPrimaryPartCFrame(CFrame.new(randX, 0, randZ)) --You can set the tree's position using this method. treeClone.Parent = workspace treeSpawned = treeSpawned + 1 wait() end
Select the tree then press ctrl and d at the same time. Then it will clone the tree