How does One Impliment VIP Server Owners into Kohls?

Howdy.

I’ve found a problem that I can’t fix. How does one add VIP Server Owner commands to the Kohl’s admin infinite settings? Note: Other posts didn’t provide any help.

Settings program:


-- Use usernames or userIds to add a user to a list
-- For example;	Admins={'MyBestFriend','Telamon',261}

local Banned={'someoneyoudislike'} -- For those who have wronged you, & this guy

--------------------------------------------------------------
-- You DO NOT need to add yourself to any of these lists!!! --
--------------------------------------------------------------

local Owners={"Player1",499934325}					-- Can set SuperAdmins, & use all the commands
local SuperAdmins={}			-- Can set permanent admins, & shutdown the game
local Admins={}					-- Can ban, crash, & set Moderators/VIP
local Mods={93632983,90735983,9196076,29808102}					-- Can kick, mute, & use most commands
local VIP={}					-- Can use nonabusive commands only on self

local Settings={
	
-- Style Options

Flat=true;						-- Enables Flat theme / Disables Aero theme
ForcedColor=false;				-- Forces everyone to have set color & transparency
Color=Color3.new(0,0,0);		-- Changes the Color of the user interface
ColorTransparency=.75;			-- Changes the Transparency of the user interface
Chat=false;						-- Enables the custom chat
BubbleChat=false;				-- Enables the custom bubble chat

-- Basic Settings

AdminCredit=true;				-- Enables the credit GUI for that appears in the bottom right
AutoClean=false;				-- Enables automatic cleaning of hats & tools in the Workspace
AutoCleanDelay=60;				-- The delay between each AutoClean routine
CommandBar=true;				-- Enables the Command Bar | GLOBAL KEYBIND: \
FunCommands=true;				-- Enables fun yet unnecessary commands
FreeAdmin=false;				-- Set to 1-5 to grant admin powers to all, otherwise set to false
PublicLogs=false;				-- Allows all users to see the command & chat logs
Prefix=':';						-- Character to begin a command
	

							--[[
	Admin Powers
	
0			Player
1			VIP					Can use nonabusive commands only on self
2			Moderator			Can kick, mute, & use most commands
3			Administrator		Can ban, crash, & set Moderators/VIP
4			SuperAdmin			Can grant permanent powers, & shutdown the game
5			Owner				Can set SuperAdmins, & use all the commands
6			Game Creator		Can set owners & use all the commands

	Group & VIP Admin
	
		You can set multiple Groups & Ranks to grant users admin powers:
		
GroupAdmin={
[12345]={[254]=4,[253]=3};
[GROUPID]={[RANK]=ADMINPOWER}
};

		You can set multiple Assets to grant users admin powers:
		
VIPAdmin={
[12345]=3;
[54321]=4;
[ITEMID]=ADMINPOWER;
};								]]
	

	
GroupAdmin={

};

VIPAdmin={

};

-- Permissions
-- You can set the admin power required to use a command
-- COMMANDNAME=ADMINPOWER;

Permissions={

};

}

return {Settings,{Owners,SuperAdmins,Admins,Mods,VIP,Banned}}

I’m pretty sure if you try using Kohl’s admin in your game, play the game, and click the Kohl’s icon, it will give you a prompt to buy VIP, which gives you a small amount of commands.

If you ask players who have played a FREE ADMIN game, they will probably give you the same response.

No no, I was implying on VIP Server Owners, not if I were to sell VIP admin lol

The correct API to find the right player owning the server:

However, this is merely the UserId, so you have to use another API to get player from UserId.

I’ve implemented this at the start of the script, it doesn’t appear to make any differences, not does it print anything. Do you have any idea why?

-- Use usernames or userIds to add a user to a list
-- For example;	Admins={'MyBestFriend','Telamon',261}

local Banned={'someoneyoudislike'} -- For those who have wronged you, & this guy

--------------------------------------------------------------
-- You DO NOT need to add yourself to any of these lists!!! --
--------------------------------------------------------------

local Owners={"Player1",499934325}					-- Can set SuperAdmins, & use all the commands
local SuperAdmins={}			-- Can set permanent admins, & shutdown the game
local Admins={}					-- Can ban, crash, & set Moderators/VIP
local Mods={93632983,90735983,9196076,29808102}					-- Can kick, mute, & use most commands
local VIP={}					-- Can use nonabusive commands only on self

if game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0 then
	print("yua")
	game.Players.PlayerAdded:Connect(function(plyr)
		if game.PrivateServerOwnerId == plyr.UserId then
			print("server owner detected "..plyr.UserId)
			table.insert(SuperAdmins,plyr.UserId)
		end
	end)
end

Quite unclear if you mentioned that none of the printing functions were actually fired. I can hardly put my finger on it if that was the case.

In the other hand, the settings script appears to populate the list only once and doesn’t quite like PlayerAdded event. Regardless if they were added or not later, directly after the server opens, the event is practically useless, so you’ll have to circumvent that through a different way.

Oh, and the solution is extremely easy. Just do local SuperAdmins = {game.PrivateServerOwnerId}.

4 Likes

Huge thanks, it does work.

Here’s the re-edited script for anyone trying to replicate it:

-- Use usernames or userIds to add a user to a list
-- For example;	Admins={'MyBestFriend','Telamon',261}

local Banned={'someoneyoudislike'} -- For those who have wronged you, & this guy

--------------------------------------------------------------
-- You DO NOT need to add yourself to any of these lists!!! --
--------------------------------------------------------------

local Owners={"Player1",499934325}					-- Can set SuperAdmins, & use all the commands
local SuperAdmins={game.PrivateServerOwnerId}			-- Can set permanent admins, & shutdown the game
local Admins={}					-- Can ban, crash, & set Moderators/VIP
local Mods={93632983,90735983,9196076,29808102}					-- Can kick, mute, & use most commands
local VIP={}					-- Can use nonabusive commands only on self



local Settings={
	
-- Style Options

Flat=true;						-- Enables Flat theme / Disables Aero theme
ForcedColor=false;				-- Forces everyone to have set color & transparency
Color=Color3.new(0,0,0);		-- Changes the Color of the user interface
ColorTransparency=.75;			-- Changes the Transparency of the user interface
Chat=false;						-- Enables the custom chat
BubbleChat=false;				-- Enables the custom bubble chat

-- Basic Settings

AdminCredit=true;				-- Enables the credit GUI for that appears in the bottom right
AutoClean=false;				-- Enables automatic cleaning of hats & tools in the Workspace
AutoCleanDelay=60;				-- The delay between each AutoClean routine
CommandBar=true;				-- Enables the Command Bar | GLOBAL KEYBIND: \
FunCommands=true;				-- Enables fun yet unnecessary commands
FreeAdmin=false;				-- Set to 1-5 to grant admin powers to all, otherwise set to false
PublicLogs=false;				-- Allows all users to see the command & chat logs
Prefix=':';						-- Character to begin a command
	

							--[[
	Admin Powers
	
0			Player
1			VIP					Can use nonabusive commands only on self
2			Moderator			Can kick, mute, & use most commands
3			Administrator		Can ban, crash, & set Moderators/VIP
4			SuperAdmin			Can grant permanent powers, & shutdown the game
5			Owner				Can set SuperAdmins, & use all the commands
6			Game Creator		Can set owners & use all the commands

	Group & VIP Admin
	
		You can set multiple Groups & Ranks to grant users admin powers:
		
GroupAdmin={
[12345]={[254]=4,[253]=3};
[GROUPID]={[RANK]=ADMINPOWER}
};

		You can set multiple Assets to grant users admin powers:
		
VIPAdmin={
[12345]=3;
[54321]=4;
[ITEMID]=ADMINPOWER;
};								]]
	

	
GroupAdmin={

};

VIPAdmin={

};

-- Permissions
-- You can set the admin power required to use a command
-- COMMANDNAME=ADMINPOWER;

Permissions={

};

}

return {Settings,{Owners,SuperAdmins,Admins,Mods,VIP,Banned}}
4 Likes