Can you mark the line in your code with a note or something? It’ll just be a little more helpful.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage.Remotes:WaitForChild("Basic")
remoteEvent.OnServerEvent:Connect(function(player)
print(player.Character.Name)
local character = player.Character
local humanoid = character:FindFirstChild("Humanoid")
local animation = replicatedStorage.Animations.Animation
local animationTrack = humanoid.Animator:LoadAnimation() //this line
animationTrack:Play()
end)
Oh, you didn’t put an animation in the LoadAnimation()
brackets. That’s why you got that error. Use LoadAnimation(animation)
and tell me if it works or not.
Ah good call. Now I get no errors but the animation does not play.
When you print player.Character.Name
, does it successfully print the character’s name or does it print something else?
It prints correctly. Also not sure if it’s important but it is a custom animation.
Just tried a roblox made animation and it still does not play.
Can you send us a screen shot of where everything is? Like the animation, server/local script, as that stuff that might help.
Is this game under your name or under a group?
It is under my group. The animation is also published under my group.
YOu need to make sure the animation can be played, as it may not play if the animation owner is not you.
That’s why your animation isn’t playing. You don’t have access to it.
No, it should still work. I publish animations under my group all the time and they work perfectly.
Sometimes my animation don’t play because it is owned by a group
Even roblox made animations do not work.
I’ve had the same issue with my game, everything worked perfect, no errors, nothing but my animation just wouldn’t play, I searched for hours and found nothing, I think it had to do something with roblox studio, cause I put the exact same animation in my other game and the same script and it worked, but there might be another solution, have you checked if the animation is r6 or r15? in that case you might need to change that
How do I check which one it is?
You can’t really check that, but what you can do however is change your game to r6 and after r15 in the settings menu in roblox studio
I made the animation on an r15 rig.