Basically i'm trying to get 'Two' values in this script, anyway you can see my note where i can't get the script to work, this only a fragment of the real script any help on what i use with it???
Value1 = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Coin Value2 = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Gem function onClick() if Rig1.Value >= 10 then Rig1.Value = CraftFunc[1].Value - 10 if Rig2.Value = CraftFunc[1].Value - 10 then --This is the problem i can't figure out how to fix... Rig2.Value = CraftFunc[1].Value - 10 end end script.Parent.MouseButton1Click:connect(onClick)
I found out what was wrong, i simply used the 'and' in the script and combined them now it works fine! Thanks for trying to help anyway.