Effects is a module script inside replicated storage, when for example im doing an ability where i click mouse button one, and want to play an animation i do
ClientEffects:FireClient(plr, “LoadAnim”, {Animation = animation})
ClientEffects is a remote event inside remotes folder in replicated storage, “LoadAnim” is supposed to be a function inside the module script that looks like this:
fx.Animation = function(...)
local info = ...;
local phase,animation = info.Phase,info.Animation
print("animation")
if phase == 1 then
local anim = lp.Character.Humanoid.Animator:LoadAnimation(animation)
anim:Play(info.fadeTime or .1)
anim:AdjustSpeed(info.Speed)
elseif phase == 2 then
for _,v in pairs(lp.Character.Humanoid.Animator:GetPlayingAnimationTracks()) do
if v.Animation == animation then v:Stop(info.fadeTime or .1) end
end
end
end
First of all it’s then instead of LoadAnim, Animation. And Second you should need to require the module an dnot just module[] require it and do module[]