this is my lean script and i want to make it back lean and this is a stand game
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Stand = script.Parent
local AnimControl = Stand:WaitForChild("AnimationController")
local AnimTable = {
["Front"] = AnimControl:LoadAnimation(script:WaitForChild("Front"));
}
for i , v in pairs(AnimTable) do
v:Play()
end
local function setweight(anim,weight)
weight = weight + 0.001
anim:AdjustWeight(weight)
end
game:GetService("RunService").RenderStepped:Connect(function()
if Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
setweight(AnimTable.Front,1)
else
setweight(AnimTable.Front,0)
end
end)