Can't get this script to use two values? (Solved)
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???
01 | Value 1 = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Coin |
02 | Value 2 = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Gem |
06 | if Rig 1. Value > = 10 then |
07 | Rig 1. Value = CraftFunc [ 1 ] .Value - 10 |
09 | if Rig 2. Value = CraftFunc [ 1 ] .Value - 10 then |
10 | Rig 2. Value = CraftFunc [ 1 ] .Value - 10 |
15 | script.Parent.MouseButton 1 Click:connect(onClick) |