Ad
Log in to vote
0

This is a server script and this script does not work the script is meant to fix arms help?

Asked by 14 days ago

game.Players.PlayerAdded:connect(function (player) repeat wait() until player.Character function chat (msg) if msg:lower() == "/f" then pn = player.Name char = player.Character

        if char:FindFirstChild("Left Arm") then
            char:FindFirstChild("Left Arm"):remove()
        end
        if char:FindFirstChild("Right Arm") then
            char:FindFirstChild("Right Arm"):remove()
        end
        if char:FindFirstChild("Left Leg") then
            char:FindFirstChild("Left Leg"):remove()
        end
        if char:FindFirstChild("Right Leg") then
            char:FindFirstChild("Right Leg"):remove()
        end
        if char:FindFirstChild("zarm") then
            char:FindFirstChild("zarm"):remove()
        end
        if char:FindFirstChild("zarm") then
            char:FindFirstChild("zarm"):remove()
        end
        if char:FindFirstChild("Left Arm") == nil then
            a = Instance.new("Part")
            a.Size = Vector3.new(1, 2, 1)
            a.FormFactor = "Symmetric"
            a.CanCollide = false
            a.Anchored = false
            a.BottomSurface = "Inlet"
            a.TopSurface = "Studs"
            a.Name = "Left Arm"
            a.Parent = char
            z = tostring(char["Body Colors"].LeftArmColor)
            a.BrickColor = BrickColor.new(z)
            m = Instance.new("Motor6D")
            m.Parent = char.Torso
            m.Name = "Left Shoulder"
            m.Part0 = char.Torso
            m.Part1 = a
            m.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
            m.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
        end
        if char:FindFirstChild("Right Arm") == nil then
            a = Instance.new("Part")
            a.Size = Vector3.new(1, 2, 1)
            a.FormFactor = "Symmetric"
            a.CanCollide = false
            a.Anchored = false
            a.BottomSurface = "Inlet"
            a.TopSurface = "Studs"
            a.Name = "Right Arm"
            a.Parent = char
            z = tostring(char["Body Colors"].RightArmColor)
            a.BrickColor = BrickColor.new(z)
            m = Instance.new("Motor6D")
            m.Parent = char.Torso
            m.Name = "Right Shoulder"
            m.Part0 = char.Torso
            m.Part1 = a
            m.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
            m.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
        end
        if char:FindFirstChild("Left Leg") == nil then
            a = Instance.new("Part")
            a.Size = Vector3.new(1, 2, 1)
            a.FormFactor = "Symmetric"
            a.CanCollide = false
            a.Anchored = false
            a.BottomSurface = "Inlet"
            a.TopSurface = "Studs"
            a.Name = "Left Leg"
            a.Parent = char
            z = tostring(char["Body Colors"].LeftLegColor)
            a.BrickColor = BrickColor.new(z)
            m = Instance.new("Motor6D")
            m.Parent = char.Torso
            m.Name = "Left Hip"
            m.Part0 = char.Torso
            m.Part1 = a
            m.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
            m.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
        end
        if char:FindFirstChild("Right Leg") == nil then
            a = Instance.new("Part")
            a.Size = Vector3.new(1, 2, 1)
            a.FormFactor = "Symmetric"
            a.CanCollide = false
            a.Anchored = false
            a.BottomSurface = "Inlet"
            a.TopSurface = "Studs"
            a.Name = "Right Leg"
            a.Parent = char
            z = tostring(char["Body Colors"].RightLegColor)
            a.BrickColor = BrickColor.new(z)
            m = Instance.new("Motor6D")
            m.Parent = char.Torso
            m.Name = "Right Hip"
            m.Part0 = char.Torso
            m.Part1 = a
            m.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
            m.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
        end
    end
end
player.Chatted:connect(chat)

end)


Answer this question