I’m trying to make it so an animation is put on the character as soon as it joins but it isn’t playing. I checked and the event is firing the animation just doesn’t play.
local event = game:GetService("ReplicatedStorage"):WaitForChild("Joined")
event.OnClientEvent:Connect(function()
local player = game.Players.LocalPlayer
local char = player.Character
local hum = char:WaitForChild("Humanoid")
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://11221496428"
Anim.Parent = hum
local animationTrack = hum:LoadAnimation(Anim)
animationTrack:Play()
end)
yes, and I made sure to upload it to the group which the game is made through as I saw another post where someone’s animation wasn’t playing because it wasn’t made by their group.
Has the player’s character loaded in prior to the event being fired? Because if the players character isnt loaded in, the animation wont play, or the animation is being overrided by something