Hey, so i was seeing the eppobot’s tutorial on gamepasses but when i tried to make it didn’t work
could you help me?
Script inside statergui:
local player = game.Players.LocalPlayer
local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,9471122)
if ownsGamepass then
local sword = game:GetService("ReplicatedStorage"):WaitForChild("Tool"):Clone()
sword.Parent = player.Backpack
end
Move the first(server script one that has no player in its icon) script to ServerScriptService. And also it might be when you buy it server already checked if it was bought or not.
There are a lot of things that you could of done better but, I don’t think it’s working because you didn’t even purchase the game pass yet. The script will check it before you purchased it, so add a wait .
It’s a local script, localscripts only work on the player and are only replicated on the client itself, so others won’t see it. Convert it to a server script.