Ive done
1 | player.Values.XP.Changed:connect(Update()) |
2 | player.Values.Gold.Changed:connect(Update()) |
3 | player.Values.Level.Changed:connect(Update()) -- There are about 12 more |
is there a way I can make it one...
Maybe try this, it will run a loop though all the player values and if any of them change the event will run.
1 | pv = player.Values:GetChildren() |
2 |
3 | function Update() |
4 | --Code here |
5 | end |
6 |
7 | for i = 1 ,#pv do |
8 | pv [ i ] .Changed:connect(Update()) --I am not sure if you can have a connection tell the function information... I was reluctant on having the parenthesis in there. |
9 | end |