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.