script.parent.ClickDetector.MouseClick:connect(function(player)
local thevault = game.Workspace.Vault
thevault.Value = thevault.Value - 500
end)
This is something really simple im just confused.
Im trying to get the value inside of an object to change when a user clicks on the actual item itself.
Any suggestions?

3 comments
Hi! First of all, are you getting any errors in output? Next, is thevault a number value? Finally, is this a local or server script, because if it is local, this value you are changing will not change for anybody else.
Hey thanks for the response, the output is this: 17:25:26.976 - Workspace.Block.MoneyClick:4: attempt to perform arithmetic (sub) on Instance and number 17:25:26.977 - Stack Begin 17:25:26.977 - Script 'Workspace.Block.MoneyClick', Line 4 17:25:26.978 - Stack End, and thevault is a parent of a NumberValue, and the script is a normal server script, thanks.
I've just posted an answer, hope it helps! :)