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

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)


1 comment

0

You're going to have to elaborate. There's nothing to fix, really, with all those .Parents. +1 to omit moderation rep loss <3