Talk:How to make your character unanimated

Add topic
There are no discussions on this page.

The script, if this is it,

function onPlayerRespawned(newPlayer)
        local joints = newPlayer.Character.Torso:GetChildren()
        local animate = newPlayer.Character:FindFirstChild("Animate")
        if animate ~= nil then
                animate.Parent = nil
                for i = 1, #joints do
                        if joints[i].className == "Motor" then
                                joints[i].DesiredAngle = 0
                                joints[i].CurrentAngle = 0
                                joints[i].MaxVelocity = 0
                        end
                end
        end
end
 
function onPlayerEntered(newPlayer)
        newPlayer.Changed:connect(function (property)
                if (property == "Character") then
                        onPlayerRespawned(newPlayer)
                end
        end)
end
 
game.Players.PlayerAdded:connect(onPlayerEntered)

works. Stuff it into Workspace; and your arms, legs don't move. MINDRAKER 15:10, 23 August 2008 (CDT)

Return to "How to make your character unanimated" page.