the variable Framee is not is not updating and i don't know why can you please help me here is code
player.Backpack.ChildAdded:connect(function(instance)
local name=instance.Name
if name==game.Lighting.E:GetChildren()[1].Name or name==game.Lighting.Q:GetChildren()[1].Name or name==game.Lighting.R:GetChildren()[1].Name or name==game.Lighting.F:GetChildren()[1].Name or name==game.Lighting.G:GetChildren()[1].Name then
print(instance.Name .. " added to the backpack by item Clone")
else
print(instance.Name .. " " .. Framee)
player.PlayerGui.Invintory[Framee].Frame1.Visible = true
local FrameNumber = FrameNumber + 1
local Framee = "Frame" .. FrameNumber
end
end)
can anyone tell my why

1 comment
why does it need tostring