I just want the cloned block to stay inside the bounds of the dirt block that it's parented to but it goes out of the bounds of it. How can I fix that?
function cloneCrop1()
crop1:clone().Parent = dirt
crop1.Position = Vector3.new(math.random(0,35),1.8,0) -- Not sure how to make it randomly clone only on the x-axis while staying inside the bounds of the dirt
end

6 comments
Is this going to work for a ServerScript I added it and it just stopped working? I changed script.Parent to the dirt which I have before it all.
Lol I forgot to parent it, you're good.
Hmm, still spawns outside for some reason.. Could I invite you to a TeamCreate and you can take a look at it?
Sure.
Added you to it: https://www.roblox.com/games/581829726/Goulstem
Thanks for the help!