hello, scripters.
I'm trying to make a temporary ore spawn system that spawns ores in a vertical way however this is the first time i've tried and i'm confident this: local newcframe = primarypartcframe * CFrame.new(1,currentWidth+1,1) should work.. what am I doing this wrong?
for i = currentWidth,maxWidth,1 do
--// roll odds
local block = chancemodule:Roll(chancetable.Tier1Layer)
--// clone block
local cloneblock = game.ReplicatedStorage.Ores[block]:Clone()
cloneblock.Parent = workspace
--// set block cframe
local primarypartcframe = cloneblock:GetPrimaryPartCFrame()
local newcframe = primarypartcframe * CFrame.new(1,currentWidth+1,1) --should work?
cloneblock:GetPrimaryPartCFrame(newcframe)
--// print currentWidth
wait()
print("currentwidth = "..i)
end
hopefully this is enough info to help however if you need more info then i'll give it. :)

1 comment
fixed it, thanks for answering!