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

I have a GUI that I want to be a premium item. But Gamepass only GUI Script is not working?

Asked by 5 years ago

The name of the GUI is PremiumDances, it's in the StarterGUI, and the first Frame is literally called frame to make this easy. I followed three different (maybe outdated) tutorials, all to no avail.

local id = 4682788

game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(char) if game:GetService('GamePassService'):PlayerHasPass(Player,id) then Player.PlayerGui.PremiumDances.Frame.Visible = true end end) end)

I don't seem to be getting any error codes but the script is not working as the currently invisible GUI stays invisible even for gamepass owners.

0
I tried once to make a GUI to appear but it didnt work. I dont remember exactly what was the solution. If I will find it I will come back and help you. HeyItzDanniee 252 — 5y
0
That would be awesome. I have been working, rewriting, watching tutorials, asking for help with this for the last 36 hours. I cannot move past this point and it's truly driving me nuts. SuperRo 0 — 5y

Answer this question