Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make one seat do a animation for r6 and r15?

So, if i want to make one seat do a r6 animation for an r6 character and r15 animation for r15 character, how do i do it?

1 answer

The seat, if you don't have a custom sit animation, will (I think) automatically be r6 or r15 compatible, but if you have a custom sit animation, you can check the rigtype to see if it r6 or r15, like this:

-- Local script, just an example

local player = game:GetService("Players").LocalPlayer
player.CharacterAdded:Wait() -- Wait For the char to load or else it will error
local character = player.Character
local humanoid = character.Humanoid

if humanoid.RigType == Enum.HumanoidRigType.R6 then
	-- R6 Animation
elseif humanoid.RigType == Enum.HumanoidRigType.R15 then
	-- R15 animation
end

This discussion is preserved as it was. New answers, comments, and votes are closed.