Model not cloning

I am trying to make an infinite obby with this script

function NewObby()
	local counter = 0
	wait(10)
	counter += 20
	local ObbyNum = math.round(Random(1 , 6))
	if ObbyNum == 1 then
		local v = game.Workspace.Obby1
		local clone1 = v:clone()
		clone1.Parent = workspace
		clone1.Position = clone1.position + Vector3.new(0, counter*20, 0)
	else
		if ObbyNum == 2 then
			local v = game.Workspace.Obby1
			local clone1 = v:clone()
			clone1.Parent = workspace
			clone1.Position = clone1.position + Vector3.new(0, counter*20, 0)
		else
			if ObbyNum == 3 then
				local v = game.Workspace.Obby1
				local clone1 = v:clone()
				clone1.Parent = workspace
				clone1.Position = clone1.position + Vector3.new(0, counter*20, 0)
			else
				if ObbyNum == 4 then
					local v = game.Workspace.Obby1
					local clone1 = v:clone()
					clone1.Parent = workspace
					clone1.Position = clone1.position + Vector3.new(0, counter*20, 0)
				else
					if ObbyNum == 5 then
						local v = game.Workspace.Obby1
						local clone1 = v:clone()
						clone1.Parent = workspace
						clone1.Position = clone1.position + Vector3.new(0, counter*20, 0)
					else
						if ObbyNum == 6 then
							local v = game.Workspace.Obby1
							local clone1 = v:clone()
							clone1.Parent = workspace
							clone1.Position = clone1.position + Vector3.new(0, counter*20, 0)
							end
					end
				end
			end
		end
	end
end
1 Like

you seem to have never called the function. Im not sure if this is the full script or not, but if it is then that is your problem.