Im trying to make a automatic spawn where
I automatically spawn people ontop of a baseplate
But I can't figure out how to get all the exact positions for x and z axis of a part
I want to drop people ontop of the baseplate by like 10 studs high
I can do that but
I just need help getting all the possible positions of the x and z axis on a baseplate.
If you mean to randomly spawn them on different positions on the baseplate you can do
local xmin = --lowest x where the player can spawn to still be on the baseplate local xmax = -- highest x where the player can spawn to still be on the baseplate local yPosition = game.Workspace.BasePlate.Position.Y + Vector3.new(0,10,0) -- 10 studs above baseplate local zmin = -- lowest z where the player can spawn to still be on the baseplate local zmax = --highest z where the player can spawn to still be on the baseplate character.Head.CFrame = CFrame.new(math.random(xmin, xmax), yPosition, math.random(zmin, zmax))