How to make your character unanimated: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Outofspace
m (Unprotected "How to make your character unanimated": is there really any point in protecting this?)
(Scripting Tutorials category, SyntaxHighlight, better code)
 
(3 intermediate revisions by 2 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. 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.But there is a script you can use for your place that will remove all character's animation. You can find it [http://pastebin.ca/720251 here], or in the [[Toolbox]]. This can be useful for making retro-style places.
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 13: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.