---
title: "CustomAnimation | Universal Roblox Script - ScriptBlox"
description: "CustomAnimation for any Roblox game: --Change the anims Need change animID to use!"
canonical_url: "https://scriptblox.com/script/Universal-Script-CustomAnimation-51610"
meta:
  "og:description": "CustomAnimation for any Roblox game: --Change the anims Need change animID to use!"
  "og:image": "https://scriptblox.com/images/script/0-1757110329281.png"
  "og:title": "CustomAnimation | Universal Roblox Script - ScriptBlox"
  "twitter:description": "CustomAnimation for any Roblox game: --Change the anims Need change animID to use!"
  "twitter:image": "https://scriptblox.com/images/script/0-1757110329281.png"
  "twitter:title": "CustomAnimation | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1757110329281.png)

# **CustomAnimation**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![zxrealm](https://scriptblox.com/images/photo/6861f639c4d70f2462a2bb08-1757289556360.png) [zxrealm](https://scriptblox.com/u/zxrealm)Published 10**

1 year ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

--Change the anims Need change animID to use!

[View Raw](https://scriptblox.com/raw/Universal-Script-CustomAnimation-51610)

```
local customAnimations = {
	idle = "rbxassetid://109588861949567",
	walk = "rbxassetid://73166283667706",
	run  = "rbxassetid://90262411810193",
	jump = "rbxassetid://123018049917489",
	fall = "rbxassetid://86262606787923",
	climb = "rbxassetid://100220637962728"
}

local Players = game:GetService("Players")

local function safeRun(fn)
	local ok, err = pcall(fn)
	if not ok then warn(err) end
end

local function setupCustomAnimations(character)
	safeRun(function()
		local humanoid = character:WaitForChild("Humanoid", 5)
		if not humanoid then return end

		local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
		local animateScript = character:FindFirstChild("Animate")
		if animateScript then animateScript:Destroy() end

		local animations = {}
		for name, id in pairs(customAnimations) do
			local anim = Instance.new("Animation")
			anim.Name = name
			anim.AnimationId = id
			animations[name] = animator:LoadAnimation(anim)
		end

		local currentTrack = nil
		local function playAnimation(name, looped)
			if currentTrack then currentTrack:Stop() end
			currentTrack = animations[name]
			if currentTrack then
				currentTrack.Looped = looped
				currentTrack:Play()


```

## **Comments **

**1**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-CustomAnimation-51610)

![zxrealm's profile picture](https://scriptblox.com/images/photo/6861f639c4d70f2462a2bb08-1757289556360.png)

[**zxrealm**](https://scriptblox.com/u/zxrealm)**Uploader**1 year ago

You need change animation ID to use.

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610#script","url":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610","name":"CustomAnimation","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"zxrealm","url":"https://scriptblox.com/u/zxrealm"},"datePublished":"2025-09-05T22:12:09.298Z","image":"https://scriptblox.com/images/script/0-1757110329281.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610#webpage","@type":"WebPage","description":"CustomAnimation for any Roblox game: --Change the anims Need change animID to use!","name":"CustomAnimation | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-CustomAnimation-51610"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-CustomAnimation-51610#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"CustomAnimation","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
