Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make an infinite capacity gamepass in roblox studio?

Asked by 4 years ago

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)
0
`but it isn't working`, specify! also use `math.huge` instead of 9999999 VerdommeMan 1479 — 4y
0
it isn't working, i dont know why, no errors. Scryptol 2 — 4y
0
math.huge sets it to -9223372036854775808 Scryptol 2 — 4y
0
2147483647 this should be big enough and not to big to overflow VerdommeMan 1479 — 4y
View all comments (2 more)
0
Is this game in a group? and is there any errors? DarkDanny04 407 — 4y
0
Nevermind i fixed it :P Scryptol 2 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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.

0
I used math.huge() Scryptol 2 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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)

Answer this question