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

My Script Wont Give Me Bonus Items For Game Pass?

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

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!

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