script.Parent.Touched:connect(function (part)
if part.Name == "Fire" then
script.Parent.Parent.Name = "Cooked Chicken"
else
local fire = part:FindFirstChild("Fire")
if fire then
script.Parent.Name = "Cooked Chicken"
print("Cooked")
end
end
end)
it prints "Cooked" but it does not change the name. |