Overhead GUI commands not working

So the actually overhead gui works.
Says if your on PC/Mobile, says group rank. And I have
KoS(Kill On Sight)/AoS(Arrest on Sight) commands. But they won’t work?

Config for it:

return {
	
	Prefix = "/",
	
	StatusImages = {
		kos="rbxassetid://57046668",
		aos="rbxassetid://6513678501",
		clr="rbxassetid://711219385",
        del="";
	},
	
	PlatformImages = {
		Console="rbxassetid://4728059072",
		Mobile="rbxassetid://4728060256",
		Desktop="rbxassetid://4728059490"
	},
	
	Whitelist = {
		IsPublic = true;
		TeamNames = {"Marine Corps Intelligence"; "Military Police";};
		Groups = {
			{
				GroupID = 14171791;
				MinRank = 16;
				MaxRank = 255
			};

		};
		Gamepasses = {}
	},
		
	CustomNoPermsNotificationEnabled = true,
	CustomNoPermsGUI = nil,
	
}

Actual code:

	player.Chatted:Connect(function(message)
		if checkDoorPerms(Whitelist, player) then
			local args = string.split(message, " ")

			if args[1]==Prefix .. "bp" then
				local overhead = getOverHead(args[3])
				if overhead then
					print("Changed player's status.")
					overhead.Commands.Commands.Visible=true
					overhead.Commands.Commands.Image=Images[args[2]]
				end
			end

I bought this from someone a while ago.

What is this function? Also if you bought scripts from somebody you have to ask them for help.

I can’t find their discord anywhere, is it possible I can give you the full script to maybe fix it?