If statement cancelling block from way further in the script

Literally just what the title says, heres my script, commented the lines causing the issue and the lines being affected. No clue why it’s doing this.

local DoubleWoodGP = 13752222
local TripleWoodGP = 13753544
local RoyalTentGP = 18276207

local ClonedTent = game.ReplicatedStorage.Tents.BasicTent:Clone()

local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, RoyalTentGP) then -- Issue
		ClonedTent = game.ReplicatedStorage.Tents.RoyalTent:Clone() -- Issue
	end -- Issue

	local children = workspace.Map.Camp.PlayerTents:GetChildren()
	local foundTent = false
	for i = 1, #children do
		local child = children[i]
		if child.Taken.Value == false then
			if not foundTent then
				ClonedTent.Parent = child
				ClonedTent:SetPrimaryPartCFrame(child.CFrame)
				child.TentOwner.Value = Player.Name
				foundTent = true
				child.Taken.Value = true
			end
		end
	end
	Player.CharacterAdded:Connect(function(Character)
		if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, DoubleWoodGP) then -- Affecting
			local OwnsDoubleWood = game.ServerStorage.OwnsDoubleWood:Clone() -- Affecting
			OwnsDoubleWood.Parent = Character -- Affecting
		end -- Affecting
		if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, TripleWoodGP) then -- Affecting
			local OwnsTripleWood = game.ServerStorage.OwnsTripleWood:Clone() -- Affecting
			OwnsTripleWood.Parent = Character -- Affectinng
		end -- Affecting
		local FireWoodCollected = game.ReplicatedStorage.FireWoodCollected:Clone() -- Affecting
		FireWoodCollected.Parent = Character -- Affecting
		--Character.Humanoid.Died:Connect(function()
			
		--end)
	end)
end)

I think you might need another end because you have a :Connect and a if statement.
Maybe like this?

Players.PlayerAdded:Connect(function(Player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, RoyalTentGP) then -- Issue
		ClonedTent = game.ReplicatedStorage.Tents.RoyalTent:Clone()
	end
end

I ended up just making a separate script, but thanks for pitching in as it did help me partially.