Blacklist animations?

I want to blacklist some certain animations ids that hacker use to be bad like the balloon animation. I don’t know how to do it I looked at this How to check who owns/created an animation and I seen one person linked how to get a creatorsname but I want to know what the blacklisted animations ID is and if it’s playing on the player then kick them . I am not good making this

1 Like

Is it an Animations or Emotes that you want to block? I wrote some code for animations before thinking that it is probably an emote. This code is untested but may give you the idea.

For emotes you can use HumanoidDescription:GetEmotes() to get the emotes the player has active.

The AnimationId should match what you see in the URL when browsing through Roblox’s store, e.g. https://www.roblox.com/catalog/7466047578/Flowing-Breeze. So this would ban the Flowing-Breeze emote.

local blacklist = {7466047578}
local blocked = false
local description = player.Character.Humanoid:GetAppliedDescription()
for name, ids in description:GetEmotes() do
  for _,id in ids do
    if table.find(blacklist,id) then
      blocked = true
      break
    end
  end
end
if blocked then
  ...
end

For animations, each Animation object has an AnimationId property that you can inspect directly. If you have a blacklist of ids then you can scan the player for Animations and see if any ids match.

The AnimationId should match what you see in the URL when browsing through Roblox’s store, e.g. https://www.roblox.com/catalog/973766674/Toy-Run. So this would ban the Toy-Run animation.

local blacklist = {973766674}
local blocked = false
for _,part in player:GetDescendants() do
  if part:IsA("Animation") then
    if table.find(blacklist,part.AnimationId) then
      blocked = true
      break
    end
  end
end
if blocked then
  ...
end

Yes the blacklist animations is what I need and seems to work thank you

1 Like

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