#i need a animation to play on my charecter when i load into the game

12 messages · Page 1 of 1 (latest)

tropic salmon
#

i need a animation to play on my charecter when i load into the game

severe cloak
#
local plrs = game.Players
local animId = Instance.new("Animation")
animId.AnimationId = "rbxassetid://18580045534" --your animarion id
plrs.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        local h = char.Humanoid
        local anim = h:LoadAnimation(animId)
        wait(1)
        anim:Play()
    end)
end)
silk coral
tropic salmon
severe cloak
tropic salmon
queen sentinelBOT
#

studio** You are now Level 1! **studio

tropic salmon
# severe cloak

no i mean like the animation works on r15 but i want it to work on r6 @severe cloak

severe cloak
# tropic salmon no i mean like the animation works on r15 but i want it to work on r6 <@1137339...
local plrs = game.Players
local R6animId = Instance.new("Animation")
local R15animId = Instance.new("Animation")
R6animId.AnimationId = "rbxassetid://18580045534" --your r6 animarion id
R15animId.AnimationId = "rbxassetid://18580045534" --your r15 animarion id
plrs.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        local h = char.Humanoid
        local R6anim = h:LoadAnimation(R6animId)
        local R15anim = h:LoadAnimation(R15animId)
        if h.RigType == Enum.HumanoidRigType.R6 then
            wait(1)
            R6anim:Play()
        else
            wait(1)
            R15anim:Play()
        end
    end)
end)

just do both, bro. idk what do you mean

tropic salmon
#

and the code also doesnt work @severe cloak