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

Why is my More Pet Slots Script Not Working in Game?

Asked by 4 years ago
local plr = game:GetService("Players").LocalPlayer;
local id = 7920230
    local tr = 0
        while true do
            wait()
            if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, id) then
                script.Parent.Text = tostring(tr).."/8"
            else
                script.Parent.Text = tostring(tr).."/4"
            end 
            for i, v in pairs(plr:WaitForChild("PetsEquiped"):GetChildren()) do
            if #plr:WaitForChild("PetsEquiped"):GetChildren() >= 1 then
                tr=tr+1
            end
            if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, id) then
                script.Parent.Text = tostring(tr).."/8"
            else
                script.Parent.Text = tostring(tr).."/4"
            end  
        end
    tr = 0
end
0
When you own the game pass it only still equips 4 pets not 8 why? Techo_Dev 2 — 4y

1 answer

Log in to vote
0
Answered by
3wdo 198
4 years ago

im not posting a script because this is a problem that doesnt do with the script. So when this happens i go to the top left corner. Hit File > Publish to Roblox to > then choose your game

0
It doesn't work still Techo_Dev 2 — 4y
Ad

Answer this question