

Всем привет помогите исправить Скрипт! Роблокс студио
я хочу что бы он был как ранний доступ :
Icon.new ()
:setLabel("Cursed child")
:setName("Cursed child")
:setImage(109722401375610)
:changeAutoDeselect(true)
:setCornerRadius(0, 0, 'deselected')
:bindEvent("selected", function(icon)
ClickSound:Play()
local gamepassId = 953565284 -- replace 9999999999 with your gamepass ID
print("PharohFlys made this!") -- players cant see that but I can :)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, gamepassId) then
Comunicator:FireServer('SetMoveset', 'Yuta Okkotsu')
end
if not game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, gamepassId) then
game:GetService("MarketplaceService"):PromptGamePassPurchase(Player, gamepassId)
end
end)
;
Лови
Icon.new()
:setLabel("Cursed child")
:setName("Cursed child")
:setImage(109722401375610)
:changeAutoDeselect(true)
:setCornerRadius(0, 0, 'deselected')
:bindEvent("selected", function(icon)
ClickSound:Play()
local gamepassId = 953565284 -- ID вашего геймпасса
print("PharohFlys made this!") -- Это видно только в консоли
local MarketplaceService = game:GetService("MarketplaceService")
local success, isEarlyAccess = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(Player.UserId, gamepassId)
end)
if success then
if isEarlyAccess then
-- Пользователь имеет ранний доступ
Comunicator:FireServer('SetMoveset', 'Yuta Okkotsu')
else
-- Пользователь не имеет раннего доступа, предложить покупку
MarketplaceService:PromptGamePassPurchase(Player, gamepassId)
end
else
warn("Ошибка при проверке раннего доступа:", isEarlyAccess)
end
end)
https://vk.com/id182441141 готов помочь
не
ии попроси