Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to make an infinite capacity gamepass in roblox studio?

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

0

but it isn't working, specify! also use math.huge instead of 9999999

0

it isn't working, i dont know why, no errors.

0

math.huge sets it to -9223372036854775808

0

2147483647 this should be big enough and not to big to overflow

0

Is this game in a group? and is there any errors?

0

Nevermind i fixed it :P

2 answers

How did you fix it? I am trying to make one myself, but i have no knowledge on how too. No tutorials or anything talking about it. Mind explaining it a bit? Thanks.

1 comment

0

I used math.huge()

You can disable the script that doesn't allow anything past the capacity if the person owns the gamepass.

local gamepassId = 10621202
local service = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
    if service:UserOwnsGamePassAsync(player.UserId, gamepassId) then
        --put the script disable here
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.