How to make your character unanimated: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
No edit summary
Scripting Tutorials category, SyntaxHighlight, better code
 
(15 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{CatUp|FAQ}}
{{CatUp|FAQ}}


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. 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. So now you must stay with the animation.
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.
[[Category:Tutorials]]
However, here is a script that can be used to remove all character animation from your place:
<syntaxhighlight lang="lua" line>
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)
</syntaxhighlight>
This can be useful for making retro-style places.
[[Category:Scripting Tutorials]]

Latest revision as of 17:39, 18 April 2023

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.