Battle Royale Console

I was testing around with the battle royale template and came across the console. I wanted to add my user ID in there because I didn’t have permission. I found where the permissions were but it’s in an “external_qa_group_ids” which I’m not sure what that means.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedFirst = game:GetService("ReplicatedFirst")

local Util = require(ReplicatedStorage:WaitForChild("Libraries"):WaitForChild("Util"))
local Conf = require(ReplicatedFirst:WaitForChild("Configurations"):WaitForChild("MainConfiguration"))

return function (registry)
	registry:RegisterHook("BeforeRun",
						  function(context)
							  if not (Util.isPlayerInGroup(context.Executor, Conf.external_qa_group_ids) or Util.isPlayerIDInTable(context.Executor, Conf.reference_games_user_ids)) then
								  return "You don't have permission to run this command"
							  end
	end)
end

I’ve searched everywhere but never found how, thanks!

1 Like

So if you’re unaware of require, it uses a ModuleScript (Dictionary) and from the if statement (said for loop smh), it seems to be checking that module script for the UserIDs/Group to use.

Find Util and Conf in the places where it says they are in the require, and open them. There should likely be some options there for configuration.

2 Likes

Ah okay, this makes more sense. Im also guessing that the console is related to “Cmdr”

Actually unsure, I’m unaware if this is roblox based or free model, so I wouldn’t know.

1 Like