I want to save an int value in workspace, how would I achieve this?

Ex:

local int = workspace.IntValue

local dss = game:GetService("DataStoreService")
local ds = dss:GetDataStore("Bank")

while true do
	ds:GetAsync("Bank",int)
	wait(10)
end

while true do 
	wait(10)
	local success, errormessage = pcall(function()
		ds:SetAsync("Bank",int)
	end)
end