For example, there are 12 players in a game. 2 are admins and the others are normal players. I want to give access to admins to like, for example, change the team of the 5 players to blue and the other 5 players to red. I want to give access to admins to add more teams, too. Oh, by the way, I want to put this in a GUI.
To Give Access To Only Admins You Can Do
local admins = {"RazorXX2", "OTHERUSER"} local player = game.Players.LocalPlayer if player.name == admins then script.parent.visible = true -- make sure it is a local script and script is inside gui frame end
to make admins make teams you can do
script.Parent.MouseButton1Click:Connect(function() local newteam = Instance.new("Team") newteam.Parent = Teams newteam.Name = " NAME" end)
i wont answer more as this isnt a request site