Basic Essentials Admin custom command of mod mode won't work

Help! My custom command of Basic Essentials custom command won’t work pictures are below

We need more informations about your issue in order to help you! For example is it giving any errors, If so what are they? What kind of issue this is? (Replated to commands or the mechanism?).

1 Like

Is the script I’ll post the errors in a bit if there’s any, Please wait me for a moment so I can give it to you.

There’s no error’s there but when I say the command it shows me the error, Also is a scripting issue related to basic admin essentials.

1 Like

can you provide me with a screen shot of the error?

It shows this error of the basic admin essentials command mod mode

What is the command you used to get this kind of error?

:ModMode < This is the command of mod but it gives me a error

The issue is here:

Try chaning it to game.Players[b].PlayerGui.StaffMode.Modes.Moderator.ModGui.Login.Visible = true

Still gives me a error of

Hmm, i will try adding Basic admin essentials into roblox studio and letting you know!

Alright! If you want to copy the script below

/\  _`\                    __           
\ \ \L\ \     __      ____/\_\    ___   
 \ \  _ <'  /'__`\   /',__\/\ \  /'___\ 
  \ \ \L\ \/\ \L\.\_/\__, `\ \ \/\ \__/ 
   \ \____/\ \__/.\_\/\____/\ \_\ \____\
    \/___/  \/__/\/_/\/___/  \/_/\/____/
Admin Essentials v2
Plugin Documentation
*coming soon^tm

If you have any questions regarding Plugins, contact TheFurryFish.


local Plugin = function(…)
local Data = {…}

-- Included Functions and Info --
local remoteEvent = Data[1][1]
local remoteFunction = Data[1][2]
local returnPermissions = Data[1][3]
local Commands = Data[1][4]
local Prefix = Data[1][5]
local actionPrefix = Data[1][6]
local returnPlayers = Data[1][7]
local cleanData = Data[1][8] -- cleanData(Sender,Receiver,Data)
-- Practical example, for a gui specifically for a player, from another player
-- cleanData(Sender,Receiver,"hi") -- You need receiver because it's being sent to everyone
-- Or for a broadcast (something everyone sees, from one person, to nobody specific)
-- cleanData(Sender,nil,"hi") -- Receiver is nil because it is a broadcast

-- Plugin Configuration --
local pluginName = 'ModMode'
local pluginPrefix = Prefix
local pluginLevel = 2
local pluginUsage = "<User(s)>" -- leave blank if the command has no arguments
local pluginDescription = "Gives the user a mod mode [WARNING] Abusing this will result in a perm ban."

-- Example Plugin Function --
local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
	local Player = table.remove(Args, 1)
	local Victims = returnPlayers(Player, Args[2] or '') 

	if not Victims then
		return remoteEvent:FireClient(Player, 'Hint', 'Error', 'Please provide a valid username.')

	for a,b in next,Victims do
		remoteEvent:FireClient(Player, 'Hint', '🛡 Official Moderator 🛡', 'Successfully in mod mode.')
		game.Players[b].PlayerGui.StaffMode.Modes.Moderator.ModGui.Login.Visible = true

-- Return Everything to the MainModule --
local descToReturn
if pluginUsage ~= "" then
	descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
	descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription

return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}


return Plugin

Are you there? It been 1 hour and no post

Sorry i had a electricity outage, I think since the error changed into requesting a string instead of an instance, maybe try changing it to:
game.Players[b.Name].PlayerGui.StaffMode.Modes.Moderator.ModGui.Login.Visible = true

Works! Thank you, I hope to see you again! :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.