R6 is not a vaild enum rig type

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Check if its a R6 type or R15 type.

  2. What is the issue? R6 is not a enum type. 10:39:19.012 nil - Server - CharacterSet:16 10:39:19.013 Workspace.IAmBanFor.CharacterSet:19: R6 is not the character type. - Server - CharacterSet:19 10:39:19.013 Stack Begin - Studio 10:39:19.013 Script 'Workspace.IAmBanFor.CharacterSet', Line 19 - function Checker - Studio - CharacterSet:19 10:39:19.013 Script 'Workspace.IAmBanFor.CharacterSet', Line 23 - Studio - CharacterSet:23 10:39:19.013 Stack End - Studio 10:39:25.852 Disconnect from ::ffff:127.0.0.1|62483 - Studio

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Yes I did.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local Character = script.Parent
local Humanoid : Humanoid = Character:FindFirstChildWhichIsA("Humanoid")

local function IsR6()
	if Humanoid.RigType == Enum.RigType.R15 then
		return false
	elseif Humanoid.RigType == "R6" then
		return true
	end
end


local function Checker()
	local rigType = IsR6()
	
	print(rigType)
	
	if not rigType then
		error("R6 is not the character type.")
	end
end

Checker()

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Its in StarterCharacterScripts. Ask me if you need any information.

Doesn’t this already work? The only reason it’s erroring is because in the script you added an error call.

elseif Humanoid.RigType == "R6" then

I think they replaced the R6 rig type with None since, R6 is just a basic avatar.

if Humanoid.RigType == Enum.RigType.None then
  -- stuff
end

If this doesn’t work then I’d suggest filing a bug report or something

You need to use HumanoidRigType instead.

Try this:

local Character = script.Parent
local Humanoid: Humanoid = Character:WaitForChild("Humanoid")

local function IsR6()
	if Humanoid.RigType == 	Enum.HumanoidRigType.R6 then
		return true
	end
	
	return false
end

local function Checker()
	local rigType = IsR6()
	print(rigType)

	if not rigType then
		print("R6 is not the character type.")
	end
end

Checker()