I am a pretty new scripter. I understand the basics of most mechanics due to hours of youtube tutorials on what different things did. I am trying to make a lumberjack type of game where the trees respawn in random places after x amount of them have been chopped down. I can seem to make the tree spawn in the area I assign it but instead in its original position before I put it in server storage. I can't tell if I am doing something wrong when I clone it or when I position it.
local treeCopy = game.ServerStorage["Pine Tree"]:Clone()
treeCopy.Parent = game.Workspace
local randomX = math.random(60.5, 84.5)
local randomZ = math.random(56.5, 32.5)
treeCopy.Position = Vector3.new(randomX, 2, randomZ)
** You are now Level 3! **