So I tried to create my own random tree spawner, but its not working. Its not argent, but can someone tell me why?
while true do h = game.Lighting.Tree:clone() h.Parent = game.Workspace h:MoveTo(math.random(),(10),math.random()) wait(1) end
Can someone Help me?
math.random() accepts two arguments: minimum and maximum.
while true do h = game.Lighting.Tree:clone() h.Parent = game.Workspace h:MoveTo(Vector3.new(math.random(-50,50),10,math.random(-50,50))) -- -50 is minimum position, and 50 is max. wait(1) end