When :UpdateAsync() throws an error (Due to roblox) does it still execute all code within the function?
local bool = false
Datastore:UpdateAsync(Key, function(PastData)
bool = true
return PastData
end)
Will bool be true if the function throws an error due to roblox servers? I know that there are different errors that can occour, will some of them still change bool?
local bool = false
Datastore:UpdateAsync(Key, function(PastData)
bool = true
workspace.Part1.Position = vector3.zero
return PastData
end)
In this example, if there is no Part1 an error will be thrown. Will it still keep the value of bool to equal true or how does it work?