i created a script that when you click, he will use 2 stringvalue, one for crafting1 and the other for crafting2, he will use the value in both sentences to reach the model, but dont work, i added something wrong?

function Click(mouse)
    if c1 == "None" and c2 == "None" or c1 == "None" or c2 == "None" then
        script.Parent.Parent.Failed.Visible = true
        wait(4)
        script.Parent.Parent.Failed.Visible = false 
    else
        script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.stats.r3.Value = "Yes"
        script.Parent.Parent.Result.r3.Visible = true



    end



end

c1 = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.stats.Creation1.Value
c2 = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.stats.Creation2.Value
r1 = game.Lighting.AkumaNoMi[script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.stats.AkumaNoMi.Value].c1.c2
r2 = r1:GetChildren()
r3 = r2.Name
script.Parent.MouseButton1Down:connect(Click)


PS: somebody called Goulstem closed my quest, and i dont know why, i created this script and dont work, so i dont see where is the problem with this question

2 comments

0

I explained why I closed it in the last comments. You need to elaborate. Provide error(s) and give more details because all the .Parents give us answerers no context.

0

Not going to omit moderation rep loss this time cause you failed to increase the quality of the question.