Skip to main content

Exists

Returns whether a given path exists or not in the users data. Used when working with dynamic arrays.

Parameters:

NameTypeDescription
playerplayerThe player whose data we want to access
pathstringThe path to the user data

Returns:

NameTypeDescription
foundPathbooleanReturns true if the path exists

Example:

local ServerScriptService = game:GetService("ServerScriptService")
local ProStore3 = require(ServerScriptService.ProStore3)

ProStore3.PlayerJoined:Connect(function(player : Player)
print("Exist: ", ProStore3.Exists(player, "DynamicArray.test")) --false
ProStore3.Set(player, "DynamicArray.test", 2)
print("Exist: ", ProStore3.Exists(player, "DynamicArray.test")) --true
end)