I’m testing out making a random tile generation system, but when I try to offset tiles via getting the size of the previous tile, it doesn’t move them correctly.
The highlight tile is 100 studs, and so the straight line tile should have been offset by 100 studs, yet was only offset by 26
local function buildPrefab(CF: CFrame, Name: string?, Chain: number?)
Name = Name or next(Favorites)
Chain = Chain and Chain + 1 or 1
local Prefab = Prefabs:FindFirstChild(Name):Clone() :: Model
Prefab:PivotTo(CF)
Prefab.Parent = workspace
if Chain == MaxChain then return end
local FavoritePrefabs = Favorites[Name]
local ChosenPrefab = FavoritePrefabs[math.random(1, #FavoritePrefabs)] :: Model
local ChosenSize = ChosenPrefab:GetExtentsSize()
local NewCF = CF * CFrame.new(ChosenSize.X + math.random(1, 5), 0, 0)
buildPrefab(NewCF, ChosenPrefab.Name, Chain)
end
task.defer(buildPrefab, CFrame.new(0, 0, 0))
