How to make your character unanimated

From Legacy Roblox Wiki
Revision as of 17:39, 18 April 2023 by GuestIsJustBest (talk | contribs) (Scripting Tutorials category, SyntaxHighlight, better code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you notice, your character moves its limbs when you walk around. This is called animation. Before January 9th, 2007, characters didn't have animation. But now, a person's character would just move without its limbs moving. This animation was added to make the character appear more life-like. Along with the update, there has been an option that lets you decide whether you want to have your character animated or not. And even more recently, they deleted the non-animation all-together. However, here is a script that can be used to remove all character animation from your place:

local Players = game:GetService("Players")

local function onPlayerAdded(player)
	local character = player.Character

	local function onCharacterAdded(character)
		local animate = character:FindFirstChild("Animate")

		if animate then
			animate:Destroy()
		end
	end

	if character then
		onCharacterAdded(character)
	end

	player.CharacterAdded:connect(onCharacterAdded)
end)

-- This is needed for Play Solo.
for i, v in ipairs(Players:GetPlayers()) do
	onPlayerAdded(v)
end

Players.PlayerAdded:connect(onPlayerAdded)

This can be useful for making retro-style places.