I want to make candy spawn within a spawn area but randomly, the code that I have is below but the code is not spawning them in the correct area, please correct this to the correct variations or even just scrap it and help me figure out the correct way.
candy.Position = Vector3.new(math.random(candyspawn.Position.X, candyspawn.Position.Y), candyspawn.Position.Y, math.random(candyspawn.Position.X, candyspawn.Position.Y))
** NOTE: The candy is spawning its just not spawning in the correct places **

2 comments
Thanks!
No problem!