What I mean I if a player has Roblox Premium I want only them to be able to see the GUI and players who don't have premium can't see it.
COMMUNITY QUESTION
How do I make a premium only player gui?
1 answer
Use it in local script inside starter player script.
Make sure your gui is NOT checked to reset when respawn.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local GUI_NAME = "Name"
if player.MembershipType == Enum.MembershipType.Premium then
local GUI = player.PlayerGui:FindFirstChild(GUI_NAME)
if GUI then
GUI.Enabled = true
end
end
More details and articles about membership type:Wiki.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
https://developer.roblox.com/en-us/api-reference/property/Player/MembershipType