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

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

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

1 comment

0

When you own the game pass it only still equips 4 pets not 8 why?

1 answer

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

1 comment

0

It doesn't work still

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