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)

4 comments
Why is the first if within a if statement, try making them both seperate.
Ive already tryed that...
What is CraftFunc[1] ?
It was a table for my full script