I have two scripts, a server script in the ServerScriptService, and a local script in the StarterGui. I want to make it so the server script creates the global dictionary while the local script finds to see if a value is apart of that dictionary, and if so, it will run something.
Server Script (ServerScriptService)
_G.Inventory = {
BodyTypesOwned = {"DefaultBody"},
BodyColorsOwned = {"2", "3"}
}
Local Script (PlayerGui)
if _G.Inventory.BodyTypesOwned["DefaultBody"] then
print("Found")
else
BodyTypeFrame.BuyButton.TextButton.Text = print("Not Found")
end

1 comment
Thanks!