Advertisement
Dark_Agent

Fe source custom anims r15

Nov 25th, 2024 (edited)
253
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.13 KB | Gaming | 0 1
  1. _G.PlayAnim = function(id, time, speed)
  2.     local Players = game:GetService("Players")
  3.     local plr = Players.LocalPlayer
  4.     -- i used these scripts from System Broken so dont hate pls im still learning lua scripting on solo
  5.     pcall(function()
  6.         plr.Character.Animate.Disabled = false
  7.         local hum = plr.Character.Humanoid
  8.         local animtrack = hum:GetPlayingAnimationTracks()
  9.         for i, track in pairs(animtrack) do
  10.             track:Stop()
  11.         end
  12.         plr.Character.Animate.Disabled = true
  13.         local Anim = Instance.new("Animation")
  14.         Anim.AnimationId = "rbxassetid://"..id
  15.         local loadanim = hum:LoadAnimation(Anim)
  16.         loadanim:Play()
  17.         loadanim.TimePosition = time
  18.         loadanim:AdjustSpeed(speed)
  19.         loadanim.Stopped:Connect(function()
  20.             plr.Character.Animate.Disabled = false
  21.             for i, track in pairs(animtrack) do
  22.                 track:Stop()
  23.             end
  24.         end)
  25.     end)
  26. end
  27.  
  28. -- PlayAnim(id, time, speed)
  29. -- _G.PlayAnim(10714360343, 4, 0)
  30.  
  31. --[[
  32. dragged anim "10714360343"
  33. Superman freezed idle anim "10714347256"
  34. --]]
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement