Talk:How to make your character unanimated: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Briguy9876
No edit summary
>Mindraker
Testing
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Isnt there something in settings that allows you to turn off animation?
The script, if this is it,
<pre>
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)
</pre> works.  Stuff it into Workspace; and your arms, legs don't move.  {{User:Mindraker/sig}} 15:10, 23 August 2008 (CDT)

Latest revision as of 20:10, 23 August 2008

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)