You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I made a script that renames the tool depending on if the transparency = 0 of the content I scripted it to. -
What is the issue? Include screenshots / videos if possible!
If you have multiple transparency in a exact order, you gotta make the items transparency 0 in exact that order or it wont rename the tool. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Couldn’t find anything.
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
cheese:GetPropertyChangedSignal("Transparency"):Connect(function()
onions:GetPropertyChangedSignal("Transparency"):Connect(function()
lettuce:GetPropertyChangedSignal("Transparency"):Connect(function()
pickles:GetPropertyChangedSignal("Transparency"):Connect(function()
tomato:GetPropertyChangedSignal("Transparency"):Connect(function()
if cheese.Transparency == 0 and onions.Transparency == 0 and lettuce.Transparency == 0 and pickles.Transparency == 0 and tomato.Transparency == 0
then
tool.Name = "SmashBurger"
end
end)
end)
end)
end)
end)