I want to make the storage 2^63 - 1, but when I test it out the GUI says Infinite, but the IntValue is -9223372036854775808 instead of 9223372036854775808. Does anyone know how to fix that? Here's the script:
print("test 1")
--If player owns Infinite storage gamepass
print("test 2")
game.Players.PlayerAdded:Connect(function(plr)
print("test 3")
local MarketPlaceService = game:GetService("MarketplaceService")
local GamePassId = 12251737
local storage = game.StarterGui.MainGUI.StorageBar.StorageAmount.Storage
local storageText = game.StarterGui.MainGUI.StorageBar.StorageAmount
local userID = plr.UserId
print("test 4")
if MarketPlaceService:UserOwnsGamePassAsync(userID,GamePassId)then
print(plr.Name .. " owns gamepass.")
storage.Value = 2^63 - 1
storageText.Text = "Infinite"
print("test 5")
end
end)

2 comments
you did
game.starterguiand notgame.players.starterguiThere is no game:GetService("Players").StarterGui. game:GetService("StarterGui") simply replicates to the player.