I'm trying to make an infinite capacity gamepass but it isn't working, nor in studio or the actual game.
here's my script:
local gamepassId = 10621202
local service = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if service:UserOwnsGamePassAsync(player.UserId, gamepassId) then
player:WaitForChild("MaxBrainSize").Value = 9999999999999999999999
end
end)

6 comments
but it isn't working, specify! also usemath.hugeinstead of 9999999it isn't working, i dont know why, no errors.
math.huge sets it to -9223372036854775808
2147483647 this should be big enough and not to big to overflow
Is this game in a group? and is there any errors?
Nevermind i fixed it :P