How to make a Admin Loader with Gui Like Kohl's Admin

Wait is that for a Vehicle Gui? Like for Cars?

Well you can change the script to anything, like lists of commands, vehicles, or anything really. vehicle is just a example of what I use it for. But it is a script and it would go in server script storage.

ok thxxxx i have a screenshot on what the Admin Gui looks like

1 Like

its like Kohl’s Admin that has all Different Commands but in my own Version

What is the GUI’s name? I can set the script up for you

ok thank you its name is “Commands”

btw…is it ok if you script the Admin Commands if its ok bc i dont know how to script…you can always say no but if its ok pls do i really need help bc i made my own game by myself no help only me im a solo dev cuz i dont have robux

local players = game:GetService(“Players”)
local server = game:GetService(“ServerStorage”)
local vehicleGui = server.Commands – Make sure the UI is in serverstorage

local groupId = 0 --Change to ID of group.
local groupRank = 0 --Change to required group rank.

players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message:lower():match("^:cmds") then
local success1, result1 = pcall(function()
return player:IsInGroup(groupId)
end)

		if success1 then
			if result1 then
				print(result1)
				local success2, result2 = pcall(function()
					return player:GetRankInGroup(groupId)
				end)
				
				if success2 then
					if result2 then
						print(result2)
						if result2 >= groupRank then
							vehicleGui:Clone().Parent = player.PlayerGui --Clone gui into player's "PlayerGui" folder.
							--Other code here.
						end
					end
				else
					warn(result2)
				end
			end
		else
			warn(result1)
		end
	end
end)

end)

Well not to be rude but isnt this the first script u showed me?

And sorry, I dont know much about scripting, this script was made by forummer for my scripting support post about a /vehicles command. And it works for this also, Also go here and make a post that you need a scripter, someone may come. And yes it is the first script I showed you but I changed some stuff like the UI name and how you get to the UI, So place the UI in serverstorage and place this script in SERVERSCRIPTSTORAGE. And test it and say :cmds should work.

its alright thanks tho…Well even tho you didnt help its ok at least you tried your best

oof i cant go it always saying “Not Qualified”

Alright, well if you need anything feel free to message me on devforum.

yeah sure thank you so much @chrisfs123

1 Like

To execute code when a player chats you can listen for the chatted event that is fired for each player when they send a message.

player.Chatted

Now you need to implement this. Keep in mind that if the gui executes commands it shouldn’t even be replicated to the client (you should put it in playerGui only if the user is an admin).

First get the player

game.Players.PlayerAdded:Connect(function(player)
    
end)

Then connect the event

player.Chatted:Connect(function(message)
    -- the function gets the message sent by the user as parameter so you can check if the message is something like /commands and then show the gui as follows

    if message == "/commands" then
        -- set the gui visible here
    end
end)

You could use my tutorial.

Thank you so much guys for the help

Can the Code Open this Gui with all the Commands?