Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

help! why is it not changing texture?

Asked by 7 years ago

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)
0
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 `if` condition is true? BlueTaslem 18071 — 7y
0
I mean like why is the brick not changing textures. lce_bear 31 — 7y

Answer this question