How would I go about making a map selector GUI for a VIP server owner?

I have seen multiple games like Offensive (Offensive - Roblox) and th3ltgrounds (th3ltgrounds - Roblox) that allow the VIP server owners to select whatever map they feel like, I want to make a game like this for myself and I can make everything else I just want a idea on how I would do this

I have looked in multiple places for help on this subject but I just lead to random map selectors and I want one for only VIP server owners, I have an idea on how to make a VIP server owner only GUI but not the map selector

game.Players.PlayerAdded:Connect(function(plr)
if plr.UserId == game.PrivateServerOwnerId then
local cloned = gui:Clone()
cloned.Parent = plr:WaitForChild(“PlayerGui”)
end
end)

I would love if someone could get me started on this map selector as I am newer to scripting!

1 Like

Use a local script and place it in StarterGui (Feel free to reach out to me if it doesn’t work):

local plr = game.Players.LocalPlayer
if plr.UserId == game.PrivateServerOwnerId then
local cloned = gui:Clone()
cloned.Parent = plr:WaitForChild("PlayerGui")
end
end)
2 Likes