You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Check if its a R6 type or R15 type.
-
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
-
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.