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

Why wont this work? (Very easy and short code!)

Asked by 10 years ago

script.Parent.ClickDetector.MouseClick:connect(function(p) if p.Backpack:findFirstChild("Fish") then p.Backpack:findFirstChild("Fish").VertexColor = 0.4,0.4,0.4 end end)

1 answer

Log in to vote
0
Answered by
jav2612 180
10 years ago
script.Parent.ClickDetector.MouseClick:connect(function(p)
    if p.Backpack:findFirstChild("Fish") then
        p.Backpack:findFirstChild("Fish").VertexColor =     Vector3.new(0.4,0.4,0.4)
    end
end)
Ad

Answer this question