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

My Script Wont Give Me Bonus Items For Game Pass?

Asked by
Rukory 0
10 years ago

Here is my Script (This Is Deadzone)

pcall(function() local usedTips = true; if not solo then usedTips = player:LoadBoolean("usedTips"); end

        if not usedTips then
            if game:GetService("GamePassService"):PlayerHasPass(player, 154373494) then
                GUI.inventory.globalItems.page_1["item (5, 5)"].item.Value = "itemSword";
                GUI.inventory.globalItems.page_1["item (5, 5)"].count.Value = 1;
                GUI.inventory.globalItems.page_1["item (5, 5)"].itemName.Text = "Sword";
                GUI.inventory.globalItems.page_1["item (5, 5)"].itemCount.Text = "x1";
                GUI.inventory.globalItems.page_1["item (5, 5)"].itemButton.Image = game.Lighting.assets.items["itemSword"].image.Value;

                player:SaveBoolean("usedTips", true);
            end
        end
    end)

1 answer

Log in to vote
0
Answered by 10 years ago

Here is what I usually do. The GamePassService part is correct I believe. Skip all the GUI.inventory stuff, make a model in lighting and put the bonus items/tools into that model and do game.Lighting.MODELName Im not totally sure how to make it give the player the tools but what I just explained simplifies the location of the tools/bonus items. Sorry I could not be a bigger help. Good luck!

Ad

Answer this question