How do i preload animations for the client and play them when the server wants to

I know how to use remote events, but not content provider and these are my questions:

  1. If i preload animations as instances on the client, can exploiters spoof their id and steal them?

  2. Is it efficient to send a remote event back from the server to the client to play the specific animation for a specific attack?

really sorry if these questions are stupid

bump, i really need answers please

  1. Not sure, but maybe
  2. No.
    Can you say more info about your idea and what do u wanna do?

I want to preload animations so they can play flawlessly whenever i load them when the character wants to attack, so they play instantly like theyre supposed to and i dont know how to go about it

To preload animation use this (only LocalScript):

--variables
local TestDummy:Model = workspace.TestDummy --some dummy that players will not see
local Animations = game.ReplicatedStorage.Animations --animations folder

--loading animations in TestDummy
for _,animation in pairs(Animations:GetChildren()) do
	TestDummy:WaitForChild("Humanoid"):WaitForChild("Animator"):LoadAnimation(animation):Play()
end

maybe there is some another method. But I always use this

so my question still remains, are the animations safe?
but thanks for the script

uhh, no, exploiters can use Explorer hack and see everything in explorer (but not ServerScriptService and ServerStore, cuz SSS and SS are server sided)

alright, and that includes the animation id?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.