#Serverside Animations

33 messages · Page 1 of 1 (latest)

tribal spoke
#

I'm trying to make a PVP game where you punch people (pretty cool right), and for some reason. I can't get animations to play for everyone.

real palm
#

just so you’re aware, animations can be played from the client and replicate to the server

#

as long as you play it from the players humanoid

#

but they also added an instance known as an animator inside the humanoid, and you need to play the animation from that now

#

it’s a newer update, and most old tutorials aren’t up to date

craggy stream
#

@tribal spoke

#

use remote events to send over the animation then play it once it gets sent

real palm
#

send it where?

#

you shouldn’t need to use remote events

#

as i said earlier, the animation can be played from the client and still be replicated to the server

deft kindle
real palm
#

that’s a good point

#

i forgot about that

tribal spoke
#

Yea.

#

I also don't know how to do that. How do I send the animation over to the server using remote events?

real palm
#

you don’t want to send it to the server

#

play the animation from a local script

#

the animation will show up for everyone

craggy stream
craggy stream
#

then set the id

#

then play the track

#

if you want the script

#

i can make it

tribal spoke
#

This is what I normally do for playing animations.

local anim = game.players.localplayers.characters.humanoid:LoadAnimation(script.Punch)

anim:Play()

#

Its in a local script

Starter Player > Starter Player Scripts

real palm
#

this will explain it to you

#

the animator is a newer addition to roblox, and you have to play animations from it rather than the humanoid