You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
I want to make a GUI that is accessible to people who own a game pass. More specifically, I want to make a VIP menu that can be toggled by a button but can only be accessed by people who buy a VIP game pass. -
What is the issue? Include screenshots / videos if possible!
When I try to find a script for this issue it just won’t work. The button the toggle the whole GUI doesn’t show up. What I tried doing is putting the script into ServerScriptService, and then the ScreenGUI into that script. Nothing happened.
Current Script
game.Players.PlayerAdded:Connect(function(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 16868460) then
player.PlayerGui.AnimEnabler.Enabled = true
else
player.PlayerGui.AnimEnabler.Enabled = false
end
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
So far I have tried to find scripts on YouTube and DevFourm, and none were successful. Any help would be appreciated
I have a feeling I placed the ScreenGUI in the wrong place but I have no idea, scripting is a whole new thing for me and I’ve been trying to impove.