Yo im making a tower defense game and im trying to add animations but i don’t know how, the scripts that handle the damaging and stuff are module scripts inside a serverscript thats inside serverscriptservice. So how would i play animations from the module script?
As long as the animation isn’t playing on a client’s character you can play them from the server script.
You just have to load the animation onto the rig’s animation controller or animator object and play the track that is returned after loading.
im not trying to be annoying but i just don’t understand a single word from that documentation,.
You gotta put in some effort to learn it bub. Look up some animation tutorials. Open up a blank place file and practice with animations. Try running the script examples provided in the Docs.
local module = {
PlayAnimation = function(rig)
local animation = Instance.new("Animation")
animation.AnimationId = animIdGoesHere
local track = rig.Humanoid.Animator:LoadAnimation(animation)
animation = nil
track.Looped = true
track:Play()
end
}
return module
thanks ill try that!../kl;l’lpjljo