I'm working on this game and if you buy a certain gamepass a gui button will show up on the side of your screen (clicking it will result in a popup gui that allows you to choose your chat color) The only problem is I have tried, several times, to get the button to show up and it hasn't(and yes, I did also try it in a server yet it still failed). Here is what I have so far, a word of warning I am an extremely novice scripter :)
The script is under ServerScriptStorage and it reads :
local id = 6328358 game.Players.PlayerAdded:connect(function(player) if local HasPass = Game:GetService("GamePassService"):PlayerHasPass(player, id) then player.PlayerGui:WaitForChild("ColorGui").Enabled = true end end)

4 comments
^ still a nub to covering links too.
I think your code works, however it did not fix the problem :(
Yea i see, i will re edit
Also dont use shirts as gamepasses tho