Hello, i’m working on a sword and i made some animations for it and when i play the animation the body movement replicates on server but not the sword movement and i don’t know why.
Issue video:
I searched in dev forum but i don’t found any topic with my issue.
If you need additional information about the problem let me know
Yes. The animations needs to be played on the server else it won’t replicate to others.
I however couldn’t tell why Roblox’s Animate script is local, maybe because the animations are universal or something.
I tried using remote event before using remote function, with remote event output prints an error because the track is a variable assigned in server, so i made the remote event a remote function and returned the track variable to client.
I’m curious about this error with the RemoteFunction, but I think I figured it out.
You are trying to tell the server to play an animation that is stored locally. Maybe try this, by creating a new Animation by the server and giving it the Id through a RemoteEvent.
Local
RemoteEvent:FireServer(AnimationId,Humanoid)
Server
RemoteEvent.OnServerEvent:Connect(function(player,animationId,Humanoid)
local animation = Instance.new("Animation", Humanoid.Parent)
animation.AnimationId = "rbxassetid://"..animationId
local Track = Humanoid:LoadAnimation(animation)
Track:Play()
end
Actually “AttackAnimation” it’s an animation track but i went back with my old script, i still have the first issue, the tool movement doesn’t replicate in server, just character movement
If the tool doesn’t move, you must animate the tool if you didn’t.
You can do this by adding a dummy, give him the same tool as the players in his character model and if you move his arm it should work.
I’m not an animator, so I’m not really advanced on this subject, you could try looking up on YouTube.