I was making an Avatar Editor gui for a game, but I ran into a problem. When the player clicked on the image button, it was supposed to give them the superhero package, but instead, output says this: "Attempt to index nil with Character". It's in a local script, by the way, so I don't know if that's preventing it from working.

local p = script:GetChildren() -- superhero package is inside the script
local b = script.Parent

b.MouseButton1Click:Connect(function(player)
	local char = player.Character
	local newp = p:Clone()
	newp.Parent = char
end)