I'm trying to make the brick called Raw Beef (with the texture 434015273) change to the new texture (173590676) when it touches the brick with the script but it's not working?? Please help!!
function touch(hit)
if hit.Name == "Raw Beef" then
wait(5)
script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=173590676"
hit.Cooked.Value = true
end
end
script.Parent.Touched:connect(touch)

2 comments
What does "not working" mean? Are there any errors? Have you done any debugging to figure out whether or not the event fires? Whether or not the
ifcondition is true?I mean like why is the brick not changing textures.