Create a clone to make randomly leaves repartition on trees

Hello, I need help because I wanted make a randomly repartition of leaves on trees to make more realistic (Because alway have identical trees is annoying), I create this code

local object = game.Workspace.Terrain.Tree.Leaves
local clonedObject = object:clone()
clonedObject.Parent = object.Parent
clonedObject.position = Vector3.new(0, 272, 0)
clonedObject.Name = “Leaves”

But it’s don’t work, when I play to my game, I can’t see news part displayed on explorer. Can you help me to find the bug ?

First, clone() is deprecated you should use Clone().
Also, could you share any errors that are being shown in the output? This will help me with your problem.

There was no errors in the output. And it’s still don’t wotk after replace clone() by Clone()

Well it looks like its cloning all of the things into the same position, is that correct?

:Clone() and :clone() do the exact same things, I don’t believe there is any difference other than the fact one lacks a capital letter.

Anyways, is the “Terrain” instance the actual Terrain object (Terrain | Documentation - Roblox Creator Hub) or an object named Terrain?