“Roblox verifique si el jugador tiene gamepass” Código de respuesta

Roblox verifique si el jugador tiene gamepass

local id = --gamepass id here

game.Players.PlayerAdded:Connect(function(player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,id) then
    	--do what you want to do in here
    end
end)
literal destruction

Roblox verifique si el jugador tiene gamepass

 -- It's not bad code, I just think it could be JUST a bit more organised (if you wanted to add more than one check for gamepasses in the same script)
 
 local id = -- your gamepass id here (look on tutorials on how to get it)
 local marketService = game:GetService("MarketplaceService")

game.Players.PlayerAdded:Connect(function(user)
	if marketService:UserOwnsGamepassAsync(user.UserId, id) then
    	-- code that's related to the gamepass.
	end
end)
Opal

Respuestas similares a “Roblox verifique si el jugador tiene gamepass”

Preguntas similares a “Roblox verifique si el jugador tiene gamepass”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código