with Subsz's answer i could do all of this!
game.Players.PlayerAdded:Connect(function(player)
player:WaitForDataReady()
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg or passIdh or passIdi or passIdj or passIdk) then
player.PlayerGui.GiveDie.Who.Visible = true
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the extra standard die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the extra multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdi) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the 20 sided die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the 20 sided multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a standard and multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdi) then
player.PlayerGui.GiveDie.Text = "Who will you give the standard and standard 20 sided die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a standard die and a 20 sided multiplier to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a standard die and a personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh and passIdi) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a multiplier and 20 sided die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh and passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a multiplier and 20 sided multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a multiplier and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdi and passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a 20 sided and 20 sided multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdi and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a 20 sided and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdj and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give a 20 sided multiplier and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh and passIdi) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the standard, multiplier and 20 sided die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh and passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the standard, multiplier and 20 sided multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the standard, multiplier and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh and passIdi and passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the multiplier, 20 sided and 20 sided multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh and passIdj and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the multiplier, 20 sided and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdi and passIdj and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the 20 sided, 20 sided multiplier and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh and passIdi and passIdj) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the standard, multiplier, 20 sided and 20 sided multiplier die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh and passIdj and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the standard, multiplier, 20 sided multiplier and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdh and passIdi and passIdj and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give the multiplier, 20 sided, 20 sided multiplier and personal die to?"
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passIdg and passIdh and passIdi and passIdj and passIdk) then
player.PlayerGui.GiveDie.Who.Text = "Who will you give all the dice to?"
else
print(player.Name .. " does not own a give a die pass.")
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end)
1 comment
yay this works