RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a randomly generating obby using 2 models without using size"
-- server script local model1 = game.ServerStorage.Model1 local model2 = game.ServerStorage.Model2 local models = {model1, model2} local spawnLocation = Vector3.new(0, 0, 0) for i = 1, 10 do local model = models[math.random(#models)]:Clone() model:SetPrimaryPartCFrame(CFrame.new(spawnLocation)) model.Parent = game.Workspace spawnLocation = spawnLocation + Vector3.new(0, 0, model.PrimaryPart.Size.Z) wait(1) end