Alright, so I've got:
local value = script.Parent.Currency
local save, err = pcall(function()
currencyStore:SetAsync(player, currency)
end)
(The "value" variable is connected to a number value.)
Then I've got:
value.Changed:Connect()
(I want the pcall function to fire when the value is changed.)
My question is, how can I call the pcall function when the value is changed? I don't want to call a normal function as I will be using this to save a value on a datastore and as such, I want the extra "protection" of a pcall.

5 comments
what is value
well the event runs when it changes so no need for pcall
i mean is it a value object or a variable in the script
local value = 2orlocal value = workspace.ValueThere, I changed up the questions a little bit so that it gives more information.
ty looks like u have answer