while true do
local cloned = game.ServerStorage.Boulder:Clone()
local spawn = math.random(1,3)
if spawn == 1 then
cloned.CFrame = CFrame.new(-1467.45, 459.622, 37.152)
end
if spawn == 2 then
cloned.CFrame = CFrame.new(-1467.45, 459.622, 21.152)
end
if spawn == 3 then
cloned.CFrame = CFrame.new(-1467.45, 459.622, 12.152)
end
wait(2)
end
im trying to spawn a boulder randomly but idk why it is not working

1 comment
You're not setting the parent of the cloned boulder. cloned.Parent = workspace.