Here is my code
game.ReplicatedStorage.GamePlayEvents.ArmyPlayers -=1
I want it to Subtract 1 from the value but this is the error
attempt to perform arithmetic (sub) on Instance and number
Here is my code
game.ReplicatedStorage.GamePlayEvents.ArmyPlayers -=1
I want it to Subtract 1 from the value but this is the error
attempt to perform arithmetic (sub) on Instance and number
Is this a value?
If so then do
game.ReplicatedStorage.GamePlayEvents.ArmyPlayers.Value -=1
You need to index its “Value” property, as the previous post suggests.