Advertisement
MachineFox

Zombie anim

Feb 18th, 2025
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.93 KB | Source Code | 0 0
  1. local Players = game:GetService("Players")
  2. local plr = Players.LocalPlayer
  3.  
  4. local function isR6(character)
  5.     return character:FindFirstChild("Torso") ~= nil and character:FindFirstChild("Right Leg") ~= nil
  6. end
  7.  
  8. local function runLocalAnimate(character)
  9.     if isR6(character) then
  10.         print("Character is R6, script will not run.")
  11.         return
  12.     end
  13.  
  14.     local Animate = character.Animate
  15.     Animate.Disabled = true
  16.     -- Parando qualquer animação em execução
  17.     local animtrack = character.Humanoid:GetPlayingAnimationTracks()
  18.     for _, track in pairs(animtrack) do
  19.         track:Stop()
  20.     end
  21.     -- Substituindo as animações
  22.     Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=616158929"
  23.     Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=616160636"
  24.     Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=616168032"
  25.     Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616163682"
  26.     Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=616161997"
  27.     Animate.climb.ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=10921070953" -- Nova animação de escalada
  28.     Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=616157476"
  29.     Animate.swim.Swim.AnimationId = "http://www.roblox.com/asset/?id=99384245425157" -- Animação de nadar
  30.     Animate.swimidle.SwimIdle.AnimationId = "http://www.roblox.com/asset/?id=113199415118199"
  31.     Animate.Disabled = false
  32. end
  33.  
  34. local function onCharacterAdded(character)
  35.     print(character.Name .. " spawned!")
  36.     if isR6(character) then
  37.         print("Character is R6, script will not run.")
  38.         return
  39.     end
  40.     wait(0.5)
  41.     runLocalAnimate(character)
  42. end
  43.  
  44. plr.CharacterAdded:Connect(onCharacterAdded)
  45.  
  46. -- Chamando a função para o personagem atual, se já estiver presente
  47. if plr.Character then
  48.     onCharacterAdded(plr.Character)
  49. end
Tags: Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement