I've tried this:
if game.Players.LocalPlayer.Character.Humanoid.RigType == "R6" then print("Player is an R6") end
But it just doesn't work.... I tested it on myself and I am indeed R6.
local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() repeat wait() until Character:FindFirstChildOfClass("Humanoid") local Humanoid = Character:FindFirstChildOfClass("Humanoid") if Humanoid.RigType.Value == 0 then -- Humanoid RigType is R6 elseif Humanoid.RigType.Value == 1 then -- Humanoid RigType is R15 end
This is probably the best way.
Try this:
if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then print("Player is an R6") end
Enums should work better.
if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then print("Player is an R6") end