Selection Character

local rp = game:GetService("ReplicatedStorage")
local CharacterSelec = rp:WaitForChild("CharacterSelec")

local SS = game:GetService("ServerStorage")
local Character = SS:WaitForChild("CharsPack")

CharacterSelec.OnServerEvent:Connect(function(Player,CharacterName)
	local Backpack = Player.Backpack
	
	local Selection = Character:FindFirstChild(CharacterName)
	if Selection then
		local moveset = Character:FindFirstChild(CharacterName):Clone()
		moveset.Parent = Backpack
	end
end)

I did a script, but I’m stuck.
I wanted to do a script when you click “confirm”
His clone backpack character I wanted but I can’t put his Character
Could someone help me?

Are you getting any errors? Is there more to this script? Does the character exist?

My script works well until now
But I just want to add to my “Clone Character” script
I show you another script

local Background = script.Parent

local CharacterFrame = script.Parent.Parent.Parent.Parent

local rp = game:GetService("ReplicatedStorage")
local CharacterSelec = rp:WaitForChild("CharacterSelec")

for _, button in pairs(Background:GetChildren()) do
	if button:IsA("TextButton") then
		button.MouseButton1Click:Connect(function()
			
			CharacterSelec:FireServer(button.Name)
		end)
	end
end
´´´´

The inly thing I can think of is that the character you are attempting to get does not exist, try using breakpoints.