Idea Make the textlabel this script is within change based on if they have a specified gamepass.
Problem When I run the code, nothing happens, I own the gamepass as I created it, but it doesn't do anything at all. Any ideas?
Code
-----------------
--| Variables |--
-----------------
local GamePassService = game:GetService('GamePassService')
local PlayersService = game:GetService('Players')
-- Stuffs
local function OnPlayerAdded(player)
if GamePassService:PlayerHasPass(player, 285663117) then
script.Parent.Text = "Your In Gold Club"
end
end
PlayersService.PlayerAdded:connect(OnPlayerAdded)
Thanks :D

6 comments
I hope it works
Try anonymous functions it may help because it is less confusing. And to make the player to get the gui to popup to say "Your a Gold Member" then you would need to make a seperate script or part.
i want to change the text of the scipts parent, not print out anything
Oh ok then go with this I'll edit it but you know gamepass service doesn't work in testing mode.
fixed
it still doesnt change for me :/