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

Could anyone help me with the "Attempt to connect failed" error?

Asked by 6 years ago
Buttons = script.Parent.Buttons

one = Buttons.Crystal1.Material
two = Buttons.Crystal2.Material
three = Buttons.Crystal3.Material
four = Buttons.Crystal4.Material
five = Buttons.Crystal5.Material
six = Buttons.Crystal6.Material
seven = Buttons.Crystal7.Material
eight = Buttons.Crystal8.Material

if one == "Neon" and two == "Neon" and three  == "Glass" and four  == "Neon" and five  == "Glass" and six  == "Neon" and seven  == "Glass" and eight  == "Glass" then

        script.Parent.Test.Transparency = 0.5

end

What I got in the output was:

11:04:27.219 - Attempt to connect failed: Passed value is not a function

0
This was supposed to be a Coded Door BTW. iiHypocratic 10 — 6y
0
after every number add a .Name so it's if one.Name == "Neon" ... etc User#19524 175 — 6y

Answer this question