Hi all,
I was curious about using Animator:GetPlayingAnimationTracks() to verify a player’s state on the server.
To (hypothetically) illustrate:
local dodgingAnim = ReplicatedStorage.Animations.DodgingAnimation --animation is in a client-accessible area
local animator = playerCharacter.Humanoid.Animator
for index, animationTrack in pairs(animator:GetPlayingAnimationTracks()) do
if animationTrack.Animation.AnimationId == dodgingAnim.AnimationId then
player:DontTakeAnyDamage()
end
end
Could an exploiter loop DodgingAnimation on their character to trick the server into always running player:DontTakeAnyDamage()?
If yes, how beneficial would it be to add animation checking alongside standard sancitity checks?