#i need a animation to play on my charecter when i load into the game
12 messages · Page 1 of 1 (latest)
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)
You're not using the animator @severe cloak .
https://create.roblox.com/docs/reference/engine/classes/Animator
this doesnt work @severe cloak
mb, boss
is there a way to make it r6? @severe cloak
** You are now Level 1! **
no i mean like the animation works on r15 but i want it to work on r6 @severe cloak
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
like the animation only works when my game is set to r15 and my game is based on r6 so i cant use it
and the code also doesnt work @severe cloak