You could probably simplify it by defining a function instead, otherwise I don’t think there’s any syntax sugary way of doing it.
local function incrementAttr(name, increment)
local oldValue = player.PlayerData:GetAttribute(name)
local newValue = oldValue + increment
player.PlayerData:SetAttribute(name, newValue)
end
You could make this modular so you can use it in numerous places without copy-pasting.