Am not sure if this is a bug or not, but this error seems to make no sense, i only get this error when actually in the game, i didn’t get it in studio
here is my script
Probably the game didnt detect it as valid, did it appear in autocomplete? that’s what “Enum.HumanoidRigType” is used for
if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
This code should work [Line 402]
yes it did appear on autocomplete, i and i think i saw it on the site too, it’s strange how it didn’t error in studio tho, but problem fixed, thanks
https://developer.roblox.com/en-us/api-reference/property/Humanoid/RigType
“RigType” is a valid property of the “Humanoid” instance (of which the value is the HumanoidRigType itself) which may have been why you weren’t seeing a warning on your end.
Enum.HumanoidRigType.R6
Enum.HumanoidRigType.R15
Currently these are the only 2 valid HumanoidRigType enums.