I am wondering if there is a way where I can make a TextLabel show players in the game the last time my game updated? I am wondering this because I don’t want to change the text every time my game updates, but instead, let a script handle that part. Like is there something I can do with HTTPSService or something else? Let me know if there is a Tutorial I can learn this from.
You can use MarketplaceService to get when the game last updated.
local gameId = 0000 -- set assetId here
local assetInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId, Enum.InfoType.Asset)
print(assetInfo.Updated)
local gameId = 0000 -- set assetId here
local assetInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId, Enum.InfoType.Asset)
script.Parent.Text = string.split(assetInfo.Updated)
(I did set up the gameID, I just don’t want to share my game ID.)
Here is my error: Unable to assign property Text. string expected, got table
local gameId = 0000 -- set assetId here
local assetInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId, Enum.InfoType.Asset)
script.Parent.Text = string.split(assetInfo.Updated,"T")[1]