Advertisement
Guest User

RTWS Animation Script

a guest
Apr 22nd, 2019
10,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. --Variables--
  2. local set = script.Settings
  3. local sp = set.Speed
  4. local enabled = set.Enabled
  5. local hum = script.Parent:WaitForChild("Humanoid")
  6. if hum then
  7. print("Success")
  8. else
  9. print("No Humanoid")
  10. end
  11. local humanim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
  12.  
  13. --Playing Animation--
  14. if enabled.Value == true then
  15. humanim:Play()
  16. humanim.Looped = true
  17. humanim:AdjustSpeed(sp.Value)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement