If you have 2 tools, the script only names 1 of them even though they are the same

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I got a upcoming burger restaurant and I have this issue where the naming script for the burger only names 1 of them if you got the same tool even though I have the same toppings on it.
  2. What is the issue? Include screenshots / videos if possible!
    Above.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yea, found nothing.
local tool = script.Parent.Parent["Raw Beef"]
local cheese = script.Parent.Cheese
local onions = script.Parent.Onions
local lettuce = script.Parent.Lettuce
local pickles = script.Parent.Pickles
local tomato = script.Parent.Tomato
local chili = script.Parent.Chili

local rename = function ()
	if cheese.Transparency == 0 then
		tool.Name = "CheeseBurger"
	end
end

cheese:GetPropertyChangedSignal("Transparency"):Connect(rename)

Fixed it LOL, It was a line of code that was the issue.

Mark your message a solution or just close down this post.