Invalid argument #2 (string expected, got Instance)

local ReplicatedStorage		=		game:GetService("ReplicatedStorage")

local Events = ReplicatedStorage.Events
local LoadoutEvent = Events.LoadoutEvent

local Weapon = ReplicatedStorage.Weapon

LoadoutEvent.OnServerEvent:Connect(function(Player, Primary, Primary_Parent, Secondary, Secondary_Parent)
	
	local Primary_Name = tostring(Primary)
	local Secondary_Name = tostring(Secondary)
	
	print(Primary_Name)
	print(Secondary_Name)
	
	local Loadout = Player.Loadout
	
	local Primary_Tag = Loadout.Primary
	local Secondary_Tag = Loadout.Secondary
	
	Primary_Tag.Value = Weapon[Primary_Parent][Primary_Name]
	Secondary_Tag.Value = Weapon[Secondary_Parent][Secondary_Name]

	
end)

image

invalid argument #2 (string expected, got Instance)

I don’t know what to do.

I assume Primary_Parent and Secondary_Parent are both Instances?

Well they are the parent’s of the instances

image